libnl 3.10.0

Macros

#define NFNLMSG_EXP_TYPE(type)   NFNLMSG_TYPE(NFNL_SUBSYS_CTNETLINK_EXP, (type))
 

Functions

int nfnlmsg_exp_group (struct nlmsghdr *nlh)
 
int nfnlmsg_exp_parse (struct nlmsghdr *nlh, struct nfnl_exp **result)
 
int nfnl_exp_dump_request (struct nl_sock *sk)
 Send nfnl exp dump request.
 
int nfnl_exp_build_add_request (const struct nfnl_exp *exp, int flags, struct nl_msg **result)
 
int nfnl_exp_add (struct nl_sock *sk, const struct nfnl_exp *exp, int flags)
 
int nfnl_exp_build_delete_request (const struct nfnl_exp *exp, int flags, struct nl_msg **result)
 
int nfnl_exp_del (struct nl_sock *sk, const struct nfnl_exp *exp, int flags)
 
int nfnl_exp_build_query_request (const struct nfnl_exp *exp, int flags, struct nl_msg **result)
 
int nfnl_exp_query (struct nl_sock *sk, const struct nfnl_exp *exp, int flags)
 

Cache Management

int nfnl_exp_alloc_cache (struct nl_sock *sk, struct nl_cache **result)
 Build a expectation cache holding all expectations currently in the kernel.
 

Detailed Description

Macro Definition Documentation

◆ NFNLMSG_EXP_TYPE

#define NFNLMSG_EXP_TYPE ( type)    NFNLMSG_TYPE(NFNL_SUBSYS_CTNETLINK_EXP, (type))

Definition at line 601 of file exp.c.

Function Documentation

◆ nfnlmsg_exp_group()

int nfnlmsg_exp_group ( struct nlmsghdr * nlh)

Definition at line 208 of file exp.c.

◆ nfnlmsg_exp_parse()

int nfnlmsg_exp_parse ( struct nlmsghdr * nlh,
struct nfnl_exp ** result )

Definition at line 223 of file exp.c.

◆ nfnl_exp_dump_request()

int nfnl_exp_dump_request ( struct nl_sock * sk)

Send nfnl exp dump request.

Parameters
skNetlink socket.
Returns
0 on success or a negative error code. Due to a bug, this function returns the number of bytes sent. Treat any non-negative number as success.

Definition at line 314 of file exp.c.

References nfnl_send_simple().

+ Here is the call graph for this function:

◆ nfnl_exp_build_add_request()

int nfnl_exp_build_add_request ( const struct nfnl_exp * exp,
int flags,
struct nl_msg ** result )

Definition at line 499 of file exp.c.

◆ nfnl_exp_add()

int nfnl_exp_add ( struct nl_sock * sk,
const struct nfnl_exp * exp,
int flags )

Definition at line 505 of file exp.c.

◆ nfnl_exp_build_delete_request()

int nfnl_exp_build_delete_request ( const struct nfnl_exp * exp,
int flags,
struct nl_msg ** result )

Definition at line 521 of file exp.c.

◆ nfnl_exp_del()

int nfnl_exp_del ( struct nl_sock * sk,
const struct nfnl_exp * exp,
int flags )

Definition at line 527 of file exp.c.

◆ nfnl_exp_build_query_request()

int nfnl_exp_build_query_request ( const struct nfnl_exp * exp,
int flags,
struct nl_msg ** result )

Definition at line 543 of file exp.c.

◆ nfnl_exp_query()

int nfnl_exp_query ( struct nl_sock * sk,
const struct nfnl_exp * exp,
int flags )

Definition at line 549 of file exp.c.

◆ nfnl_exp_alloc_cache()

int nfnl_exp_alloc_cache ( struct nl_sock * sk,
struct nl_cache ** result )

Build a expectation cache holding all expectations currently in the kernel.

Parameters
skNetlink socket.
resultPointer to store resulting cache.

Allocates a new cache, initializes it properly and updates it to contain all expectations currently in the kernel.

Returns
0 on success or a negative error code.

Definition at line 580 of file exp.c.

References nl_cache_alloc_and_fill().

+ Here is the call graph for this function: