HelenOS sources
vlan_header 449 uspace/lib/nic/src/nic_rx_control.c vlan_header_t *vlan_header = (vlan_header_t *)
vlan_header 451 uspace/lib/nic/src/nic_rx_control.c if (vlan_header->tpid_upper == VLAN_TPID_UPPER &&
vlan_header 452 uspace/lib/nic/src/nic_rx_control.c vlan_header->tpid_lower == VLAN_TPID_LOWER) {
vlan_header 453 uspace/lib/nic/src/nic_rx_control.c int index = ((int) (vlan_header->vid_upper & 0xF) << 5) |
vlan_header 454 uspace/lib/nic/src/nic_rx_control.c (vlan_header->vid_lower >> 3);
vlan_header 456 uspace/lib/nic/src/nic_rx_control.c (1 << (vlan_header->vid_lower & 0x7))))
HelenOS homepage, sources at GitHub