netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Collaboration diagram for Classifier Object:

Variables

struct nl_object_ops cls_obj_ops
 

Allocation/Freeing

struct rtnl_clsrtnl_cls_alloc (void)
 
void rtnl_cls_put (struct rtnl_cls *cls)
 

Attributes

void rtnl_cls_set_ifindex (struct rtnl_cls *f, int ifindex)
 
int rtnl_cls_get_ifindex (struct rtnl_cls *cls)
 
void rtnl_cls_set_handle (struct rtnl_cls *f, uint32_t handle)
 
void rtnl_cls_set_parent (struct rtnl_cls *f, uint32_t parent)
 
uint32_t rtnl_cls_get_parent (struct rtnl_cls *cls)
 
int rtnl_cls_set_kind (struct rtnl_cls *cls, const char *kind)
 
struct rtnl_cls_opsrtnl_cls_get_ops (struct rtnl_cls *cls)
 
void rtnl_cls_set_prio (struct rtnl_cls *cls, uint16_t prio)
 
uint16_t rtnl_cls_get_prio (struct rtnl_cls *cls)
 
void rtnl_cls_set_protocol (struct rtnl_cls *cls, uint16_t protocol)
 
uint16_t rtnl_cls_get_protocol (struct rtnl_cls *cls)
 
void * rtnl_cls_data (struct rtnl_cls *cls)
 

Detailed Description

Function Documentation

struct rtnl_cls* rtnl_cls_alloc ( void  )

References cls_obj_ops, and nl_object_alloc().

Referenced by nlt_alloc_cls(), rtnl_class_foreach_cls(), and rtnl_qdisc_foreach_cls().

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_cls_get_ifindex ( struct rtnl_cls cls)

Referenced by main().

Here is the caller graph for this function:

struct rtnl_cls_ops* rtnl_cls_get_ops ( struct rtnl_cls cls)

References rtnl_cls::c_ops.

Referenced by main().

Here is the caller graph for this function:

uint32_t rtnl_cls_get_parent ( struct rtnl_cls cls)

Referenced by main().

Here is the caller graph for this function:

uint16_t rtnl_cls_get_prio ( struct rtnl_cls cls)

References rtnl_cls::c_prio.

uint16_t rtnl_cls_get_protocol ( struct rtnl_cls cls)

References rtnl_cls::c_protocol, and ETH_P_ALL.

void rtnl_cls_put ( struct rtnl_cls cls)

References nl_object_put().

Referenced by rtnl_class_foreach_cls(), and rtnl_qdisc_foreach_cls().

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_cls_set_handle ( struct rtnl_cls f,
uint32_t  handle 
)

References tca_set_handle().

Referenced by parse_handle().

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_cls_set_ifindex ( struct rtnl_cls f,
int  ifindex 
)

References tca_set_ifindex().

Referenced by parse_dev(), rtnl_class_foreach_cls(), and rtnl_qdisc_foreach_cls().

Here is the call graph for this function:

Here is the caller graph for this function:

int rtnl_cls_set_kind ( struct rtnl_cls cls,
const char *  kind 
)

References NLE_EXIST, rtnl_cls_data(), TCA_ATTR_KIND, and tca_set_kind().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_cls_set_parent ( struct rtnl_cls f,
uint32_t  parent 
)

References tca_set_parent().

Referenced by parse_parent(), rtnl_class_foreach_cls(), and rtnl_qdisc_foreach_cls().

Here is the call graph for this function:

Here is the caller graph for this function:

void rtnl_cls_set_prio ( struct rtnl_cls cls,
uint16_t  prio 
)

References rtnl_cls::c_prio.

Referenced by parse_prio().

Here is the caller graph for this function:

void rtnl_cls_set_protocol ( struct rtnl_cls cls,
uint16_t  protocol 
)

References rtnl_cls::c_protocol.

Referenced by parse_proto().

Here is the caller graph for this function:

Variable Documentation

struct nl_object_ops cls_obj_ops
Initial value:
= {
.oo_name = "route/cls",
.oo_size = sizeof(struct rtnl_cls),
.oo_free_data = cls_free_data,
.oo_clone = cls_clone,
.oo_dump = {
[NL_DUMP_LINE] = cls_dump_line,
[NL_DUMP_DETAILS] = cls_dump_details,
[NL_DUMP_STATS] = cls_dump_stats,
},
.oo_compare = tca_compare,
.oo_id_attrs = (TCA_ATTR_IFINDEX | TCA_ATTR_HANDLE),
}
Dump object briefly on one line.
Definition: types.h:22
Dump all attributes but no statistics.
Definition: types.h:23
Definition: netlink-types.h:477
Dump all attributes including statistics.
Definition: types.h:24

Referenced by rtnl_cls_alloc().