View | Details | Raw Unified | Return to bug 139268
Collapse All | Expand All

(-)sys/net/if_bridge.c (+10 lines)
Lines 2109-2114 Link Here
2109
		return (m);
2109
		return (m);
2110
2110
2111
	bifp = sc->sc_ifp;
2111
	bifp = sc->sc_ifp;
2112
2113
	if (m->m_flags & M_VLANTAG) {	/* packet has a valid VLAN tag */
2114
		if (bifp->if_flags & IFF_LINK0)
2115
			/* LINK0 == only bridge untagged packets. skip VLANs. */
2116
			return (m);
2117
	}
2118
	else if (bifp->if_flags & IFF_LINK1) {
2119
		/* LINK1 == only bridge VLAN-tagged packets. skip untagged. */
2120
		return (m);
2121
	}
2112
	vlan = VLANTAGOF(m);
2122
	vlan = VLANTAGOF(m);
2113
2123
2114
	/*
2124
	/*
(-)share/man/man4/if_bridge.4 (+17 lines)
Lines 126-131 Link Here
126
stream.
126
stream.
127
This is useful for reconstructing the traffic for network taps
127
This is useful for reconstructing the traffic for network taps
128
that transmit the RX/TX signals out through two separate interfaces.
128
that transmit the RX/TX signals out through two separate interfaces.
129
.Pp
130
The
131
.Nm
132
driver also supports two special link options:
133
.Bl -tag -width link0
134
.It Cm link0
135
Forward only those packets that do
136
.Cm not
137
contain valid VLAN tags (ie. packets in vlan 0).
138
This allows VLAN-tagged packets to be bridged or processed separately.
139
.El
140
.Bl -tag -width link1
141
.It Cm link1
142
Forward only those packets that do contain valid VLAN tags.
143
This is the complement of
144
.Cm link0.
145
.El
129
.Sh SPANNING TREE
146
.Sh SPANNING TREE
130
The
147
The
131
.Nm
148
.Nm

Return to bug 139268