Use correct field to track statistics counting error as bad header length.
This assimilates the code to what ip_input has been doing since r1.1 in this case. Submitted by: Rozhuk Ivan (rozhuk.im gmail.com) MFC after: 4 days
This commit is contained in:
parent
a39dc31fca
commit
08291968f2
@ -218,7 +218,7 @@ ip_fastforward(struct mbuf *m)
|
||||
*/
|
||||
hlen = ip->ip_hl << 2;
|
||||
if (hlen < sizeof(struct ip)) { /* minimum header length */
|
||||
IPSTAT_INC(ips_badlen);
|
||||
IPSTAT_INC(ips_badhlen);
|
||||
goto drop;
|
||||
}
|
||||
if (hlen > m->m_len) {
|
||||
|
Loading…
Reference in New Issue
Block a user