summaryrefslogtreecommitdiffstats
path: root/sys/net/if_vlan_var.h
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1999-12-13 01:57:00 +0000
committerjkh <jkh@FreeBSD.org>1999-12-13 01:57:00 +0000
commitce079123e3550908356dfbaf3f42672876a55777 (patch)
tree123e328319b9797e7b713b3769a9cd2f8d41deed /sys/net/if_vlan_var.h
parent72de1aee50403c65a63d9fd52176203f003a5441 (diff)
downloadFreeBSD-src-ce079123e3550908356dfbaf3f42672876a55777.zip
FreeBSD-src-ce079123e3550908356dfbaf3f42672876a55777.tar.gz
The current code incorrectly assumes that all vlans
are configured, and/or associated with a parent device. If you receive a frame for a VLAN that's not in the list, you walk off the end of the list. Boom. Submitted by: C. Stephen Gunn <csg@waterspout.com> PR: 15291
Diffstat (limited to 'sys/net/if_vlan_var.h')
-rw-r--r--sys/net/if_vlan_var.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/if_vlan_var.h b/sys/net/if_vlan_var.h
index a9679ea..1427b34 100644
--- a/sys/net/if_vlan_var.h
+++ b/sys/net/if_vlan_var.h
@@ -85,7 +85,7 @@ struct vlanreq {
/* shared with if_ethersubr.c: */
extern u_int vlan_proto;
extern int vlan_input(struct ether_header *eh, struct mbuf *m);
-extern void vlan_input_tag(struct ether_header *eh,
+extern int vlan_input_tag(struct ether_header *eh,
struct mbuf *m, u_int16_t t);
#endif
OpenPOWER on IntegriCloud