ipfilter + bge strangeness

David Wilhelm dave at milligan.bluefir.org
Thu Feb 2 00:37:29 PST 2006


On Tue, Jan 31, 2006 at 12:09:13PM +0300, Oleg Bulyzhin wrote:
> Could you please test attached patch?

> This patch enables 'full' rxcsum offloading so ipfilter's bug should not be
> triggered.

FYI, the patch works for me; the checksum errors still show in tcpdump,
but ipfilter doesn't choke on them anymore.

Pinging www.freebsd.org with RXCSUM/TXCSUM and ipf enabled, the
reply comes back successfully.

buster# tcpdump -nvi bge0
tcpdump: listening on bge0, link-type EN10MB (Ethernet), capture size 96 bytes
00:20:42.119079 IP (tos 0x0, ttl  64, id 20, offset 0, flags [none], proto: UDP (17), length: 61, bad cksum 0 (->a959)!) 192.168.1.3.64638 > 66.51.205.100.53:	3410+ A? www.freebsd.org. (33)
00:20:42.191639 IP (tos 0x0, ttl  59, id 9827, offset 0, flags [DF], proto: UDP (17), length: 239) 66.51.205.100.53 > 192.168.1.3.64638:  3410 1/5/3 www.freebsd.org. A 216.136.204.117 (211)
00:20:42.191785 IP (tos 0x0, ttl  64, id 21, offset 0, flags [none], proto: ICMP (1), length: 84, bad cksum 0 (->13eb)!) 192.168.1.3 > 216.136.204.117: ICMP echo request, id 9475, seq 0, length 64
00:20:42.255294 IP (tos 0x0, ttl  55, id 23125, offset 0, flags [none], proto: ICMP (1), length: 84) 216.136.204.117 > 192.168.1.3: ICMP echo reply, id 9475, seq 0, length 64
00:20:43.193215 IP (tos 0x0, ttl  64, id 22, offset 0, flags [none], proto: ICMP (1), length: 84, bad cksum 0 (->13ea)!) 192.168.1.3 > 216.136.204.117: ICMP echo request, id 9475, seq 1, length 64
00:20:43.253293 IP (tos 0x0, ttl  55, id 23798, offset 0, flags [none], proto: ICMP (1), length: 84) 216.136.204.117 > 192.168.1.3: ICMP echo reply, id 9475, seq 1, length 64
^C
6 packets captured
6 packets received by filter
0 packets dropped by kernel

Thanks, Oleg.


More information about the freebsd-stable mailing list