]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When delivering an ICMP packet to the ctlinput function, ensure that
authortuexen <tuexen@FreeBSD.org>
Thu, 14 Apr 2016 19:51:29 +0000 (19:51 +0000)
committertuexen <tuexen@FreeBSD.org>
Thu, 14 Apr 2016 19:51:29 +0000 (19:51 +0000)
commit8ee4ba7504ecae465634f34b8411a8f7a5443c1b
tree7bc7225c78a38bf4c0ba310624777cb6eadc3eed
parent7f8a9706cbac2b31eeb0119cb36704f642b44f9b
When delivering an ICMP packet to the ctlinput function, ensure that
the outer IP header, the ICMP header, the inner IP header and the
first n bytes are stored in contgous memory. The ctlinput functions
currently rely on this for n = 8. This fixes a bug in case the inner IP
header had options.
While there, remove the options from the outer header and provide a
way to increase n to allow improved ICMP handling for SCTP. This will
be added in another commit.

MFC after: 1 week
sys/netinet/ip_icmp.c
sys/netinet/ip_icmp.h