Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
xt_policy.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/init.h>
#include <net/xfrm.h>
#include <linux/netfilter.h>
#include <linux/netfilter/xt_policy.h>
#include <linux/netfilter/x_tables.h>

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   KBUILD_MODNAME ": " fmt
 
#define MATCH_ADDR(x, y, z)
 
#define MATCH(x, y)   (!e->match.x || ((e->x == (y)) ^ e->invert.x))
 

Functions

 MODULE_AUTHOR ("Patrick McHardy <[email protected]>")
 
 MODULE_DESCRIPTION ("Xtables: IPsec policy match")
 
 MODULE_LICENSE ("GPL")
 
 module_init (policy_mt_init)
 
 module_exit (policy_mt_exit)
 
 MODULE_ALIAS ("ipt_policy")
 
 MODULE_ALIAS ("ip6t_policy")
 

Macro Definition Documentation

#define MATCH (   x,
  y 
)    (!e->match.x || ((e->x == (y)) ^ e->invert.x))
#define MATCH_ADDR (   x,
  y,
 
)
Value:
(!e->match.x || \
(xt_addr_cmp(&e->x, &e->y, (const union nf_inet_addr *)(z), family) \
^ e->invert.x))
#define pr_fmt (   fmt)    KBUILD_MODNAME ": " fmt

Definition at line 9 of file xt_policy.c.

Function Documentation

MODULE_ALIAS ( "ipt_policy"  )
MODULE_ALIAS ( "ip6t_policy"  )
MODULE_AUTHOR ( "Patrick McHardy <[email protected]>"  )
MODULE_DESCRIPTION ( "Xtables: IPsec policy match )
module_exit ( policy_mt_exit  )
module_init ( policy_mt_init  )
MODULE_LICENSE ( "GPL"  )