cvs commit: src/sys/netinet ip_fw2.c
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Jun 22 14:05:29 UTC 2006
On Thu, 22 Jun 2006, Hajimu UMEMOTO wrote:
> ume 2006-06-22 13:22:54 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/netinet ip_fw2.c
> Log:
> - Pullup even when the extention header is unknown, to prevent
> infinite loop with net.inet6.ip6.fw.deny_unknown_exthdrs=0.
> - Teach ipv6 and ipencap as they appear in an IPv4/IPv6 over IPv6
> tunnel.
> - Test the next extention header even when the routing header type
> is unknown with net.inet6.ip6.fw.deny_unknown_exthdrs=0.
@@ -2189,7 +2189,10 @@ do { \
case IPPROTO_ROUTING: /* RFC 2460 */
PULLUP_TO(hlen, ulp, struct ip6_rthdr);
- if (((struct ip6_rthdr *)ulp)->ip6r_type != 0) {
+ switch (((struct ip6_rthdr *)ulp)->ip6r_type) {
+ case 0:
I think you are missing a
ulp = NULL;
here?
+ break;
+ default:
printf("IPFW2: IPV6 - Unknown Routing "
"Header type(%d)\n",
((struct ip6_rthdr *)ulp)->ip6r_type);
--
Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT
More information about the cvs-src
mailing list