HomeFreeBSD

Some mbuf related fixes in icmp_error()

Description

Some mbuf related fixes in icmp_error()

  • check mbuf length before doing mtod() and accessing to IP header;
  • update oip pointer and all depending pointers after m_pullup();
  • remove extra checks and extra parentheses, wrap long lines;

PR: 222670
Reported by: Prabhakar Lakhera
MFC after: 1 week

Details

Provenance
aeAuthored on Sep 29 2017, 6:24 AM
Parents
rGcb242d7cd9ad: Convert sysctl sbuf usage to use a fully dynaic sbuf. This is strictly
Branches
Unknown
Tags
Unknown

Event Timeline