CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected] 2018/11/05 14:50:39

Modified files:
        sys/netinet    : ip_icmp.c ip_icmp.h 

Log message:
In icmp_input_if() m_pullup up the maximum size of required data at the start.
The maximum is ICMP_MINLEN (8) + max IPv4 header size (60) + IPv6 header (40)
for the IPv6 over IPv4 transition case. By having up to this amount of data
consequtive in an mbuf makes the rest of the code simpler and no more extra
m_pullup calls are needed. Only length checks are now required.The maximum
size is also big enough for all other ICMP types that don't embed the IP
heaader. This ensures that all data has been m_pullup-ed before calling the
ctlinput function which can look that deep into the header.
OK bluhm@ markus@

Reply via email to