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:
Bjoern A. Zeeb 2010-12-05 01:09:48 +00:00
parent a39dc31fca
commit 08291968f2

View File

@ -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) {