netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
utils.h File Reference
#include "../utils.h"
#include <netlink/route/classifier-modules.h>
#include <netlink/route/cls/ematch.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Data Structures

struct  cls_module
 
struct  ematch_module
 

Functions

struct cls_modulelookup_cls_mod (struct rtnl_cls_ops *)
 
void register_cls_module (struct cls_module *)
 
void unregister_cls_module (struct cls_module *)
 
struct ematch_modulelookup_ematch_mod (struct rtnl_ematch_ops *)
 
void register_ematch_module (struct ematch_module *)
 
void unregister_ematch_module (struct ematch_module *)
 
struct rtnl_clsnlt_alloc_cls (void)
 
void parse_dev (struct rtnl_cls *, struct nl_cache *, char *)
 
void parse_prio (struct rtnl_cls *, char *)
 
void parse_parent (struct rtnl_cls *, char *)
 
void parse_handle (struct rtnl_cls *, char *)
 
void parse_proto (struct rtnl_cls *, char *)
 
int parse_ematch_syntax (const char *, struct rtnl_ematch_tree **)
 

Function Documentation

struct cls_module* lookup_cls_mod ( struct rtnl_cls_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 ematch_module* lookup_ematch_mod ( struct rtnl_ematch_ops )
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 ,
struct nl_cache ,
char *   
)

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:

int parse_ematch_syntax ( const char *  ,
struct rtnl_ematch_tree **   
)
void parse_handle ( struct rtnl_cls ,
char *   
)

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 ,
char *   
)

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 ,
char *   
)

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 ,
char *   
)

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 )

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 register_ematch_module ( struct ematch_module )
void unregister_cls_module ( struct cls_module )

References cls_module::list.

void unregister_ematch_module ( struct ematch_module )