wrong checksum when receiving ip rr option through raw socket

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

I noticed this strange behavior:

I have a raw socket opened like this:

socket (PF_INET, SOCK_RAW, IPPROTO_ICMP);

When I receive an ICMP Echo Reply with Record Route option set through
this socket, the packet I get fails during the IP header checksum check.
Looking closer into the issue it seems to me that my kernel appends
itself to the end of the Record Route's address list (and increments the
Record Route pointer appropriately) but doesn't recompute the IP header
checksum before it hands the received packet to the socket - thus making
the IP header invalid.

Could someone verify this behavior?  Is it bug or feature?

I'm on linux 2.4.19.

Thanks,

	pvl

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux