Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
vlan.c File Reference
#include <linux/capability.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/rculist.h>
#include <net/p8022.h>
#include <net/arp.h>
#include <linux/rtnetlink.h>
#include <linux/notifier.h>
#include <net/rtnetlink.h>
#include <net/net_namespace.h>
#include <net/netns/generic.h>
#include <asm/uaccess.h>
#include <linux/if_vlan.h>
#include "vlan.h"
#include "vlanproc.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define DRV_VERSION   "1.8"
 

Functions

void unregister_vlan_dev (struct net_device *dev, struct list_head *head)
 
int vlan_check_real_dev (struct net_device *real_dev, u16 vlan_id)
 
int register_vlan_dev (struct net_device *dev)
 
 module_init (vlan_proto_init)
 
 module_exit (vlan_cleanup_module)
 
 MODULE_LICENSE ("GPL")
 
 MODULE_VERSION (DRV_VERSION)
 

Variables

int vlan_net_id __read_mostly
 
const char vlan_fullname [] = "802.1Q VLAN Support"
 
const char vlan_version [] = DRV_VERSION
 

Macro Definition Documentation

#define DRV_VERSION   "1.8"

Definition at line 43 of file vlan.c.

#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 21 of file vlan.c.

Function Documentation

module_exit ( vlan_cleanup_module  )
module_init ( vlan_proto_init  )
MODULE_LICENSE ( "GPL"  )
MODULE_VERSION ( DRV_VERSION  )
int register_vlan_dev ( struct net_device dev)

Definition at line 137 of file vlan.c.

void unregister_vlan_dev ( struct net_device dev,
struct list_head head 
)

Definition at line 74 of file vlan.c.

int vlan_check_real_dev ( struct net_device real_dev,
u16  vlan_id 
)

Definition at line 115 of file vlan.c.

Variable Documentation

struct notifier_block vlan_notifier_block __read_mostly
Initial value:
= {
.notifier_call = vlan_device_event,
}

Definition at line 47 of file vlan.c.

const char vlan_fullname[] = "802.1Q VLAN Support"

Definition at line 49 of file vlan.c.

const char vlan_version[] = DRV_VERSION

Definition at line 50 of file vlan.c.