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
Parents
rS324097: Convert sysctl sbuf usage to use a fully dynaic sbuf. This is strictly
Branches
Unknown
Tags
Unknown