]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
check that we have an ipv4 packet before swapping ip_len and ip_off.
authorluigi <luigi@FreeBSD.org>
Thu, 7 Jan 2010 12:00:54 +0000 (12:00 +0000)
committerluigi <luigi@FreeBSD.org>
Thu, 7 Jan 2010 12:00:54 +0000 (12:00 +0000)
commit057d16827d4666da5bfe192ec0bcf74d83f3c571
treef3c9ebe408991917551620c4e33883c8a3790d52
parente41443f1570bfd10eb2029f31493350ceab48cc2
check that we have an ipv4 packet before swapping ip_len and ip_off.
This should fix the handling of ipv6 packets which i broke when i
made ipfw operate on packets in network format.

Reported by: Hajimu UMEMOTO
sys/netinet/ipfw/ip_fw_pfil.c