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

Committed
aeSep 29 2017, 6:24 AM
Parents
rS324097: Convert sysctl sbuf usage to use a fully dynaic sbuf. This is strictly
Branches
Unknown
Tags
Unknown