|
Linux Kernel
3.7.1
|
#include <linux/netdevice.h>#include <linux/etherdevice.h>#include <linux/rtnetlink.h>#include <linux/bug.h>#include <uapi/linux/if_vlan.h>#include <linux/skbuff.h>Go to the source code of this file.
Data Structures | |
| struct | vlan_hdr |
| struct | vlan_ethhdr |
Macros | |
| #define | VLAN_HLEN |
| #define | VLAN_ETH_HLEN 18 /* Total octets in header. */ |
| #define | VLAN_ETH_ZLEN 64 /* Min. octets in frame sans FCS */ |
| #define | VLAN_ETH_DATA_LEN 1500 /* Max. octets in payload */ |
| #define | VLAN_ETH_FRAME_LEN 1518 /* Max. octets in frame sans FCS */ |
| #define | VLAN_PRIO_MASK 0xe000 /* Priority Code Point */ |
| #define | VLAN_PRIO_SHIFT 13 |
| #define | VLAN_CFI_MASK 0x1000 /* Canonical Format Indicator */ |
| #define | VLAN_TAG_PRESENT VLAN_CFI_MASK |
| #define | VLAN_VID_MASK 0x0fff /* VLAN Identifier */ |
| #define | VLAN_N_VID 4096 |
| #define | vlan_tx_tag_present(__skb) ((__skb)->vlan_tci & VLAN_TAG_PRESENT) |
| #define | vlan_tx_nonzero_tag_present(__skb) (vlan_tx_tag_present(__skb) && ((__skb)->vlan_tci & VLAN_VID_MASK)) |
| #define | vlan_tx_tag_get(__skb) ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT) |
| #define | HAVE_VLAN_PUT_TAG |
| #define | HAVE_VLAN_GET_TAG |
Functions | |
| void | vlan_ioctl_set (int(*hook)(struct net *, void __user *)) |
| #define VLAN_CFI_MASK 0x1000 /* Canonical Format Indicator */ |
| #define VLAN_HLEN |
| #define VLAN_TAG_PRESENT VLAN_CFI_MASK |
| #define vlan_tx_nonzero_tag_present | ( | __skb | ) | (vlan_tx_tag_present(__skb) && ((__skb)->vlan_tci & VLAN_VID_MASK)) |
| #define vlan_tx_tag_get | ( | __skb | ) | ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT) |
| #define vlan_tx_tag_present | ( | __skb | ) | ((__skb)->vlan_tci & VLAN_TAG_PRESENT) |
1.8.2