netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
utils.c File Reference
#include "utils.h"
Include dependency graph for utils.c:

Functions

struct rtnl_clsnlt_alloc_cls (void)
 
void parse_dev (struct rtnl_cls *cls, struct nl_cache *link_cache, char *arg)
 
void parse_prio (struct rtnl_cls *cls, char *arg)
 
void parse_parent (struct rtnl_cls *cls, char *arg)
 
void parse_handle (struct rtnl_cls *cls, char *arg)
 
void parse_proto (struct rtnl_cls *cls, char *arg)
 
struct cls_modulelookup_cls_mod (struct rtnl_cls_ops *ops)
 
void register_cls_module (struct cls_module *mod)
 
void unregister_cls_module (struct cls_module *mod)
 

Function Documentation

struct cls_module* lookup_cls_mod ( struct rtnl_cls_ops ops)

References cls_module::list, nl_list_for_each_entry, NULL, and cls_module::ops.

Referenced by main(), and register_cls_module().

Here is the caller graph for this function:

struct rtnl_cls* nlt_alloc_cls ( void  )

References rtnl_cls_alloc().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_dev ( struct rtnl_cls cls,
struct nl_cache link_cache,
char *  arg 
)

References rtnl_cls_set_ifindex(), and rtnl_link_name2i().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_handle ( struct rtnl_cls cls,
char *  arg 
)

References nl_geterror(), rtnl_cls_set_handle(), and rtnl_tc_str2handle().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_parent ( struct rtnl_cls cls,
char *  arg 
)

References nl_geterror(), rtnl_cls_set_parent(), and rtnl_tc_str2handle().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_prio ( struct rtnl_cls cls,
char *  arg 
)

References rtnl_cls_set_prio().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void parse_proto ( struct rtnl_cls cls,
char *  arg 
)

References nl_geterror(), nl_str2ether_proto(), and rtnl_cls_set_protocol().

Referenced by main().

Here is the call graph for this function:

Here is the caller graph for this function:

void register_cls_module ( struct cls_module mod)

References __rtnl_cls_lookup_ops(), cls_module::list, lookup_cls_mod(), cls_module::name, NULL, and cls_module::ops.

Here is the call graph for this function:

void unregister_cls_module ( struct cls_module mod)

References cls_module::list.