Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
ebt_stp.c File Reference
#include <linux/etherdevice.h>
#include <linux/module.h>
#include <linux/netfilter/x_tables.h>
#include <linux/netfilter_bridge/ebtables.h>
#include <linux/netfilter_bridge/ebt_stp.h>

Go to the source code of this file.

Data Structures

struct  stp_header
 
struct  stp_config_pdu
 

Macros

#define BPDU_TYPE_CONFIG   0
 
#define BPDU_TYPE_TCN   0x80
 
#define NR16(p)   (p[0] << 8 | p[1])
 
#define NR32(p)   ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3])
 

Functions

 module_init (ebt_stp_init)
 
 module_exit (ebt_stp_fini)
 
 MODULE_DESCRIPTION ("Ebtables: Spanning Tree Protocol packet match")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BPDU_TYPE_CONFIG   0

Definition at line 16 of file ebt_stp.c.

#define BPDU_TYPE_TCN   0x80

Definition at line 17 of file ebt_stp.c.

#define NR16 (   p)    (p[0] << 8 | p[1])

Definition at line 40 of file ebt_stp.c.

#define NR32 (   p)    ((p[0] << 24) | (p[1] << 16) | (p[2] << 8) | p[3])

Definition at line 41 of file ebt_stp.c.

Function Documentation

MODULE_DESCRIPTION ( "Ebtables: Spanning Tree Protocol packet match )
module_exit ( ebt_stp_fini  )
module_init ( ebt_stp_init  )
MODULE_LICENSE ( "GPL"  )