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

Cache Operations. More...

#include <cache-api.h>

Collaboration diagram for nl_cache_ops:

Data Fields

char * co_name
 
int co_hdrsize
 
int co_protocol
 
struct nl_af_groupco_groups
 
int(* co_request_update )(struct nl_cache *, struct nl_sock *)
 Called whenever an update of the cache is required. More...
 
int(* co_msg_parser )(struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *)
 Called whenever a message was received that needs to be parsed. More...
 
struct nl_object_opsco_obj_ops
 
struct nl_cache_opsco_next
 
struct nl_cacheco_major_cache
 
struct genl_opsco_genl
 
struct nl_msgtype co_msgtypes []
 

Detailed Description

Cache Operations.

Field Documentation

struct genl_ops* nl_cache_ops::co_genl

Referenced by genl_register(), and genl_unregister().

struct nl_af_group* nl_cache_ops::co_groups

Referenced by nl_cache_mngr_add().

int nl_cache_ops::co_hdrsize

Referenced by genl_register(), and nl_msg_dump().

struct nl_cache* nl_cache_ops::co_major_cache
int(* nl_cache_ops::co_msg_parser)(struct nl_cache_ops *, struct sockaddr_nl *, struct nlmsghdr *, struct nl_parser_param *)

Called whenever a message was received that needs to be parsed.

Must parse the message and call the paser callback function (nl_parser_param) provided via the argument.

Referenced by genl_register().

char* nl_cache_ops::co_name
int nl_cache_ops::co_protocol
int(* nl_cache_ops::co_request_update)(struct nl_cache *, struct nl_sock *)

Called whenever an update of the cache is required.

Must send a request message to the kernel requesting a complete dump.

Referenced by nl_cache_request_full_dump().


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