netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
rtnl_cls_ops Struct Reference

Classifier operations. More...

#include <classifier-modules.h>

Collaboration diagram for rtnl_cls_ops:

Data Fields

char co_kind [32]
 Name of classifier module. More...
 
size_t co_size
 Size of private classifier data. More...
 
void(* co_dump [NL_DUMP_MAX+1])(struct rtnl_cls *, struct nl_dump_params *)
 Dump callbacks. More...
 
int(* co_get_opts )(struct rtnl_cls *, struct nl_msg *)
 Must return the contents supposed to be in TCA_OPTIONS. More...
 
int(* co_msg_parser )(struct rtnl_cls *)
 TCA_OPTIONS message parser. More...
 
void(* co_free_data )(struct rtnl_cls *)
 Called before a class object gets destroyed. More...
 
int(* co_clone )(struct rtnl_cls *, struct rtnl_cls *)
 Called whenever a classifier object needs to be cloned. More...
 
struct rtnl_cls_opsco_next
 INTERNAL (Do not use) More...
 

Detailed Description

Classifier operations.

Field Documentation

int(* rtnl_cls_ops::co_clone)(struct rtnl_cls *, struct rtnl_cls *)

Called whenever a classifier object needs to be cloned.

void(* rtnl_cls_ops::co_dump[NL_DUMP_MAX+1])(struct rtnl_cls *, struct nl_dump_params *)

Dump callbacks.

void(* rtnl_cls_ops::co_free_data)(struct rtnl_cls *)

Called before a class object gets destroyed.

int(* rtnl_cls_ops::co_get_opts)(struct rtnl_cls *, struct nl_msg *)

Must return the contents supposed to be in TCA_OPTIONS.

char rtnl_cls_ops::co_kind[32]

Name of classifier module.

Referenced by __rtnl_cls_lookup_ops(), rtnl_cls_register(), and rtnl_cls_unregister().

int(* rtnl_cls_ops::co_msg_parser)(struct rtnl_cls *)

TCA_OPTIONS message parser.

struct rtnl_cls_ops* rtnl_cls_ops::co_next

INTERNAL (Do not use)

Referenced by __rtnl_cls_lookup_ops(), rtnl_cls_register(), and rtnl_cls_unregister().

size_t rtnl_cls_ops::co_size

Size of private classifier data.

Referenced by rtnl_cls_data().


The documentation for this struct was generated from the following file: