]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add back the IP header length to the total packet length field on
authorAndre Oppermann <andre@FreeBSD.org>
Fri, 7 Oct 2011 13:43:01 +0000 (13:43 +0000)
committerAndre Oppermann <andre@FreeBSD.org>
Fri, 7 Oct 2011 13:43:01 +0000 (13:43 +0000)
commit50b1479e65c23114ac9e33772beb7688d83308f1
treeb627299eb989d4fbb9731dd210a54db884f7b072
parentcbf06947ebae65573f045e2b046b97efb37bd3a9
Add back the IP header length to the total packet length field on
raw IP sockets.  It was deducted in ip_input() in preparation for
protocols interested only in the payload.

On raw sockets the IP header should be delivered as it at came in
from the network except for the byte order swaps in some fields.

This brings us in line with all other OS'es that provide raw
IP sockets.

Reported by: Matthew Cini Sarreo <mcins1-at-gmail.com>
MFC after: 3 days
sys/netinet/raw_ip.c