Lines Matching refs:tag
211 u_int16_t ifvm_tag; /* tag to apply on packets leaving if */
369 static int vlan_config(struct ifnet * ifp, struct ifnet * p, int tag);
645 vlan_parent_lookup_tag(vlan_parent_ref vlp, int tag)
650 if (tag == ifv->ifv_tag) {
658 vlan_lookup_parent_and_tag(struct ifnet * p, int tag)
664 return (vlan_parent_lookup_tag(vlp, tag));
758 vlan_parent_add_vlan(vlan_parent_ref vlp, ifvlan_ref ifv, int tag)
762 ifv->ifv_tag = tag;
935 u_short tag;
963 tag = ifv->ifv_tag;
975 * If underlying interface can do VLAN tag insertion itself,
978 * knows how to find the VLAN tag to use. We use a field in
979 * the mbuf header to store the VLAN tag, and a bit in the
984 m->m_pkthdr.vlan_tag = tag;
1013 evl->evl_tag = htons(tag);
1026 u_int tag = 0;
1031 * Ethernet frame; the tag is stored out-of-band.
1034 tag = EVL_VLANOFTAG(m->m_pkthdr.vlan_tag);
1050 tag = EVL_VLANOFTAG(ntohs(evl->evl_tag));
1055 * interface corresponding to the tag.
1067 if (tag != 0) {
1076 ifv = vlan_lookup_parent_and_tag(p, tag);
1101 if (tag != 0) {
1122 vlan_config(struct ifnet * ifp, struct ifnet * p, int tag)
1148 if (vlan_parent_lookup_tag(vlp, tag) != NULL) {
1149 /* already a VLAN with that tag on this interface */
1177 if (vlan_parent_lookup_tag(vlp, tag) != NULL) {
1178 /* already a VLAN with that tag on this interface */
1186 vlan_parent_add_vlan(vlp, ifv, tag);
1558 u_short tag;
1660 * Don't let the caller set up a VLAN tag with
1712 tag = ifv->ifv_tag;
1717 vlr.vlr_tag = tag;