Lines Matching defs:vlan
266 uint16_t brt_vlan; /* vlan id */
1666 int vlan = req->ifba_vlan;
1668 /* Userspace uses '0' to mean 'any vlan' */
1669 if (vlan == 0)
1670 vlan = DOT1Q_VID_RSVD_IMPL;
1672 return (bridge_rtdaddr(sc, req->ifba_dst, vlan));
2180 uint16_t vlan;
2192 vlan = VLANTAGOF(m);
2213 dst_if = bridge_rtlookup(sc, eh->ether_dhost, vlan);
2359 uint16_t vlan;
2370 vlan = VLANTAGOF(m);
2381 error = bridge_rtupdate(sc, eh->ether_shost, vlan,
2418 dst_if = bridge_rtlookup(sc, dst, vlan);
2511 uint16_t vlan;
2517 vlan = VLANTAGOF(m);
2530 ifp = bridge_rtlookup(sc, eh->ether_shost, vlan);
2660 vlan, bif, 0, IFBAF_DYNAMIC); \
2876 bridge_rtupdate(struct bridge_softc *sc, const uint8_t *dst, uint16_t vlan,
2895 if ((brt = bridge_rtnode_lookup(sc, dst, vlan)) == NULL) {
2900 if (bridge_rtnode_lookup(sc, dst, vlan) != NULL) {
2935 brt->brt_vlan = vlan;
2961 "%s: mac address %6D vlan %d moved from %s to %s\n",
2984 bridge_rtlookup(struct bridge_softc *sc, const uint8_t *addr, uint16_t vlan)
2990 if ((brt = bridge_rtnode_lookup(sc, addr, vlan)) == NULL)
3095 bridge_rtdaddr(struct bridge_softc *sc, const uint8_t *addr, uint16_t vlan)
3103 * If vlan is DOT1Q_VID_RSVD_IMPL then we want to delete for all vlans
3106 while ((brt = bridge_rtnode_lookup(sc, addr, vlan)) != NULL) {
3221 * vlan id or if zero then just return the first match.
3224 bridge_rtnode_lookup(struct bridge_softc *sc, const uint8_t *addr, uint16_t vlan)
3235 if (dir == 0 && (brt->brt_vlan == vlan || vlan == DOT1Q_VID_RSVD_IMPL))