Main Page | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

cls_api.c File Reference

#include <asm/uaccess.h>
#include <asm/system.h>
#include <asm/bitops.h>
#include <linux/config.h>
#include <linux/types.h>
#include <linux/kernel.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/socket.h>
#include <linux/sockios.h>
#include <linux/in.h>
#include <linux/errno.h>
#include <linux/interrupt.h>
#include <linux/netdevice.h>
#include <linux/skbuff.h>
#include <linux/rtnetlink.h>
#include <linux/init.h>
#include <linux/kmod.h>
#include <net/sock.h>
#include <net/pkt_sched.h>

Include dependency graph for cls_api.c:

Go to the source code of this file.

Defines

#define INIT_TC_FILTER(name)

Functions

tcf_proto_opstcf_proto_lookup_ops (struct rtattr *kind)
int register_tcf_proto_ops (struct tcf_proto_ops *ops)
int unregister_tcf_proto_ops (struct tcf_proto_ops *ops)
 __initfunc (int tc_filter_init(void))

Variables

static struct tcf_proto_opstcf_proto_base


Define Documentation

#define INIT_TC_FILTER name   ) 
 

Value:

{ \
          extern struct tcf_proto_ops cls_##name##_ops; \
          register_tcf_proto_ops(&cls_##name##_ops); \
        }

Referenced by __initfunc().


Function Documentation

__initfunc int   tc_filter_init(void)  ) 
 

Definition at line 409 of file cls_api.c.

References INIT_TC_FILTER, PF_UNSPEC, RTM_BASE, RTM_DELTFILTER, RTM_GETTFILTER, RTM_NEWTFILTER, and u32.

int register_tcf_proto_ops struct tcf_proto_ops ops  ) 
 

Definition at line 60 of file cls_api.c.

References EEXIST, tcf_proto_ops::kind, tcf_proto_ops::next, NULL, strcmp, t, and tp.

struct tcf_proto_ops* tcf_proto_lookup_ops struct rtattr kind  ) 
 

Definition at line 45 of file cls_api.c.

References tcf_proto_ops::kind, tcf_proto_ops::next, NULL, and t.

int unregister_tcf_proto_ops struct tcf_proto_ops ops  ) 
 

Definition at line 73 of file cls_api.c.

References ENOENT, tcf_proto_ops::next, NULL, t, and tp.


Variable Documentation

struct tcf_proto_ops* tcf_proto_base [static]
 

Definition at line 40 of file cls_api.c.