Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
if_vlan.h File Reference
#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 *))
 

Macro Definition Documentation

#define HAVE_VLAN_GET_TAG

Definition at line 284 of file if_vlan.h.

#define HAVE_VLAN_PUT_TAG

Definition at line 227 of file if_vlan.h.

#define VLAN_CFI_MASK   0x1000 /* Canonical Format Indicator */

Definition at line 66 of file if_vlan.h.

#define VLAN_ETH_DATA_LEN   1500 /* Max. octets in payload */

Definition at line 28 of file if_vlan.h.

#define VLAN_ETH_FRAME_LEN   1518 /* Max. octets in frame sans FCS */

Definition at line 29 of file if_vlan.h.

#define VLAN_ETH_HLEN   18 /* Total octets in header. */

Definition at line 22 of file if_vlan.h.

#define VLAN_ETH_ZLEN   64 /* Min. octets in frame sans FCS */

Definition at line 23 of file if_vlan.h.

#define VLAN_HLEN
Value:
4 /* The additional bytes required by VLAN
* (in addition to the Ethernet header)
*/

Definition at line 21 of file if_vlan.h.

#define VLAN_N_VID   4096

Definition at line 69 of file if_vlan.h.

#define VLAN_PRIO_MASK   0xe000 /* Priority Code Point */

Definition at line 64 of file if_vlan.h.

#define VLAN_PRIO_SHIFT   13

Definition at line 65 of file if_vlan.h.

#define VLAN_TAG_PRESENT   VLAN_CFI_MASK

Definition at line 67 of file if_vlan.h.

#define vlan_tx_nonzero_tag_present (   __skb)    (vlan_tx_tag_present(__skb) && ((__skb)->vlan_tci & VLAN_VID_MASK))

Definition at line 80 of file if_vlan.h.

#define vlan_tx_tag_get (   __skb)    ((__skb)->vlan_tci & ~VLAN_TAG_PRESENT)

Definition at line 82 of file if_vlan.h.

#define vlan_tx_tag_present (   __skb)    ((__skb)->vlan_tci & VLAN_TAG_PRESENT)

Definition at line 79 of file if_vlan.h.

#define VLAN_VID_MASK   0x0fff /* VLAN Identifier */

Definition at line 68 of file if_vlan.h.

Function Documentation

void vlan_ioctl_set ( int(*)(struct net *, void __user *)  hook)

Definition at line 1017 of file socket.c.