summaryrefslogtreecommitdiffstats
path: root/sys/net/ethernet.h
diff options
context:
space:
mode:
authorthompsa <thompsa@FreeBSD.org>2007-10-18 21:22:15 +0000
committerthompsa <thompsa@FreeBSD.org>2007-10-18 21:22:15 +0000
commit8b39a1522c63f12ff9988be210b762ecc4329b2a (patch)
tree5b7095247627b13df1aa1b8f90b31a0c91b5b994 /sys/net/ethernet.h
parentefafc844b62072341308ddebfc66a3e112f7a2b9 (diff)
downloadFreeBSD-src-8b39a1522c63f12ff9988be210b762ecc4329b2a.zip
FreeBSD-src-8b39a1522c63f12ff9988be210b762ecc4329b2a.tar.gz
The bridging output function puts the mbuf directly on the interfaces send
queue so the output network card must support the same tagging mechanism as how the frame was input (prepended Ethernet header tag or stripped HW mflag). Now the vlan Ethernet header is _always_ stripped in ether_input and the mbuf flagged, only only network cards with VLAN_HWTAGGING enabled would properly re-tag any outgoing vlan frames. If the outgoing interface does not support hardware tagging then readd the vlan header to the front of the frame. Move the common vlan encapsulation in to ether_vlanencap(). Reported by: Erik Osterholm, Jon Otterholm MFC after: 1 week
Diffstat (limited to 'sys/net/ethernet.h')
-rw-r--r--sys/net/ethernet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/net/ethernet.h b/sys/net/ethernet.h
index 29a5316..c5b6118 100644
--- a/sys/net/ethernet.h
+++ b/sys/net/ethernet.h
@@ -386,6 +386,7 @@ extern int ether_output_frame(struct ifnet *, struct mbuf *);
extern char *ether_sprintf(const u_int8_t *);
void ether_vlan_mtap(struct bpf_if *, struct mbuf *,
void *, u_int);
+struct mbuf *ether_vlanencap(struct mbuf *, int);
#else /* _KERNEL */
OpenPOWER on IntegriCloud