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

Go to the source code of this file.

Data Structures

struct  ebt_match
struct  ebt_watcher
struct  ebt_target
struct  ebt_chainstack
struct  ebt_table_info
struct  ebt_table


#define EBT_MATCH   0
#define EBT_NOMATCH   1
#define EBT_ALIGN(s)
#define FWINV(bool, invflg)   ((bool) ^ !!(info->invflags & invflg))
#define BASE_CHAIN   (par->hook_mask & (1 << NF_BR_NUMHOOKS))
#define CLEAR_BASE_CHAIN_BIT   (par->hook_mask &= ~(1 << NF_BR_NUMHOOKS))
#define INVALID_TARGET   (info->target < -NUM_STANDARD_TARGETS || info->target >= 0)


struct ebt_tableebt_register_table (struct net *net, const struct ebt_table *table)
void ebt_unregister_table (struct net *net, struct ebt_table *table)
unsigned int ebt_do_table (unsigned int hook, struct sk_buff *skb, const struct net_device *in, const struct net_device *out, struct ebt_table *table)

Macro Definition Documentation

#define BASE_CHAIN   (par->hook_mask & (1 << NF_BR_NUMHOOKS))

Definition at line 121 of file ebtables.h.

#define CLEAR_BASE_CHAIN_BIT   (par->hook_mask &= ~(1 << NF_BR_NUMHOOKS))

Definition at line 123 of file ebtables.h.

#define EBT_ALIGN (   s)
(((s) + (__alignof__(struct _xt_align)-1)) & \
~(__alignof__(struct _xt_align)-1))

Definition at line 108 of file ebtables.h.

#define EBT_MATCH   0

Definition at line 19 of file ebtables.h.

#define EBT_NOMATCH   1

Definition at line 20 of file ebtables.h.

#define FWINV (   bool,
)    ((bool) ^ !!(info->invflags & invflg))

Definition at line 118 of file ebtables.h.

#define INVALID_TARGET   (info->target < -NUM_STANDARD_TARGETS || info->target >= 0)

Definition at line 125 of file ebtables.h.

Function Documentation

unsigned int ebt_do_table ( unsigned int  hook,
struct sk_buff skb,
const struct net_device in,
const struct net_device out,
struct ebt_table table 

Definition at line 185 of file ebtables.c.

struct ebt_table* ebt_register_table ( struct net net,
const struct ebt_table table 

Definition at line 1143 of file ebtables.c.

void ebt_unregister_table ( struct net net,
struct ebt_table table 

Definition at line 1244 of file ebtables.c.