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

#include <netlink-types.h>

Collaboration diagram for nl_cb:

Data Fields

nl_recvmsg_msg_cb_t cb_set [NL_CB_TYPE_MAX+1]
 
void * cb_args [NL_CB_TYPE_MAX+1]
 
nl_recvmsg_err_cb_t cb_err
 
void * cb_err_arg
 
int(* cb_recvmsgs_ow )(struct nl_sock *, struct nl_cb *)
 May be used to replace nl_recvmsgs with your own implementation in all internal calls to nl_recvmsgs. More...
 
int(* cb_recv_ow )(struct nl_sock *, struct sockaddr_nl *, unsigned char **, struct ucred **)
 Overwrite internal calls to nl_recv, must return the number of octets read and allocate a buffer for the received data. More...
 
int(* cb_send_ow )(struct nl_sock *, struct nl_msg *)
 Overwrites internal calls to nl_send, must send the netlink message. More...
 
int cb_refcnt
 

Field Documentation

void* nl_cb::cb_args[NL_CB_TYPE_MAX+1]

Referenced by nl_cb_set().

nl_recvmsg_err_cb_t nl_cb::cb_err

Referenced by nl_cb_err().

void* nl_cb::cb_err_arg

Referenced by nl_cb_err().

int(* nl_cb::cb_recv_ow)(struct nl_sock *, struct sockaddr_nl *, unsigned char **, struct ucred **)

Overwrite internal calls to nl_recv, must return the number of octets read and allocate a buffer for the received data.

Referenced by nl_cb_overwrite_recv().

int(* nl_cb::cb_recvmsgs_ow)(struct nl_sock *, struct nl_cb *)

May be used to replace nl_recvmsgs with your own implementation in all internal calls to nl_recvmsgs.

Referenced by nl_cb_overwrite_recvmsgs(), and nl_recvmsgs().

int nl_cb::cb_refcnt
int(* nl_cb::cb_send_ow)(struct nl_sock *, struct nl_msg *)

Overwrites internal calls to nl_send, must send the netlink message.

Referenced by nl_cb_overwrite_send(), and nl_send_auto_complete().

Referenced by nl_cb_set(), and nl_sendmsg().


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