From 8e38c2e0360cb1c96dec928389b21d799014f17e Mon Sep 17 00:00:00 2001 From: Jason Wright Date: Fri, 30 Mar 2001 16:02:14 +0000 Subject: increase ierrors if m_pullup fails in vlan_input(); pointed out by chris@ --- sys/net/if_vlan.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index d2ff658e528..abfc5db3136 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.15 2001/03/28 00:16:28 jason Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.16 2001/03/30 16:02:13 jason Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -347,8 +347,10 @@ vlan_input(eh, m) u_int tag; if (m->m_len < EVL_ENCAPLEN && - (m = m_pullup(m, EVL_ENCAPLEN)) == NULL) - return (-1); + (m = m_pullup(m, EVL_ENCAPLEN)) == NULL) { + m->m_pkthdr.rcvif->if_ierrors++; + return (0); + } tag = EVL_VLANOFTAG(ntohs(*mtod(m, u_int16_t *))); -- cgit v1.2.3