netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
bsf.c File Reference
#include "internal/internal.h"
#include "internal/stack.h"
#include <linux/filter.h>
#include <stddef.h>
Include dependency graph for bsf.c:

Data Structures

struct  jump
 

Macros

#define SKF_AD_NLATTR   12
 
#define SKF_AD_NLATTR_NEST   16
 
#define NFCT_FILTER_REJECT   0U
 
#define NFCT_FILTER_ACCEPT   ~0U
 
#define NEW_POS(x)   (sizeof(x)/sizeof(struct sock_filter))
 
#define BSF_BUFFER_SIZE   2048
 

Functions

int __setup_netlink_socket_filter (int fd, struct nfct_filter *f)
 

Macro Definition Documentation

#define BSF_BUFFER_SIZE   2048
#define NEW_POS (   x)    (sizeof(x)/sizeof(struct sock_filter))
#define NFCT_FILTER_ACCEPT   ~0U
#define NFCT_FILTER_REJECT   0U
#define SKF_AD_NLATTR   12
#define SKF_AD_NLATTR_NEST   16

Function Documentation

int __setup_netlink_socket_filter ( int  fd,
struct nfct_filter f 
)

References sock_fprog::filter, sock_fprog::len, NFCT_FILTER_ACCEPT, and NFNL_SUBSYS_CTNETLINK.

Referenced by nfct_filter_attach().

Here is the caller graph for this function: