Searched refs:VLAN_IDMASK (Results 1 – 2 of 2) sorted by relevance
1121 if ((ntohs(net_our_vlan) & VLAN_IDMASK) == VLAN_NONE in net_process_received_packet()1129 vlanid = cti & VLAN_IDMASK; in net_process_received_packet()1145 if ((myvlanid & VLAN_IDMASK) != VLAN_NONE) { in net_process_received_packet()1147 vlanid = (mynvlanid & VLAN_IDMASK); in net_process_received_packet()1149 if (vlanid != (myvlanid & VLAN_IDMASK)) in net_process_received_packet()1406 return ((myvlanid & VLAN_IDMASK) == VLAN_NONE) ? ETHER_HDR_SIZE : in net_eth_hdr_size()1421 if ((myvlanid & VLAN_IDMASK) == VLAN_NONE) { in net_set_ether()1429 vet->vet_tag = htons((0 << 5) | (myvlanid & VLAN_IDMASK)); in net_set_ether()1550 sprintf(s, "%d", x & VLAN_IDMASK); in vlan_to_string()
531 #define VLAN_IDMASK 0x0fff /* mask of valid vlan id */ macro