]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
correct pkthdr length calculation for ipv6 echo packets; after moving a packet
authorSam Leffler <sam@FreeBSD.org>
Sun, 5 Jan 2003 22:37:36 +0000 (22:37 +0000)
committerSam Leffler <sam@FreeBSD.org>
Sun, 5 Jan 2003 22:37:36 +0000 (22:37 +0000)
commit2268ca475bd99075c11f45d435125a26fd24e337
treeae3e61ec7188504ff591b5931a189c4d9785b40a
parent54a701f52e7ac31fda5ace861b1d4ef3298d69d4
correct pkthdr length calculation for ipv6 echo packets; after moving a packet
header with M_MOVE_PKTHDR one should not reference the packet header in the
original packet; in this case the code was assuming that m_adj would alter
m_pkthdr.len which stopped happening because M_MOVE_PKTHDR removes the
M_PKTHDR bit from m_flags

Submitted by: Bill Fenner <fenner@research.att.com>
sys/netinet6/icmp6.c