libnl  3.2.3
Conntrack

Defines

#define NFNLMSG_CT_TYPE(type)   NFNLMSG_TYPE(NFNL_SUBSYS_CTNETLINK, (type))

Functions

int nfnlmsg_ct_group (struct nlmsghdr *nlh)
int nfnlmsg_ct_parse (struct nlmsghdr *nlh, struct nfnl_ct **result)
int nfnl_ct_dump_request (struct nl_sock *sk)
int nfnl_ct_build_add_request (const struct nfnl_ct *ct, int flags, struct nl_msg **result)
int nfnl_ct_add (struct nl_sock *sk, const struct nfnl_ct *ct, int flags)
int nfnl_ct_build_delete_request (const struct nfnl_ct *ct, int flags, struct nl_msg **result)
int nfnl_ct_del (struct nl_sock *sk, const struct nfnl_ct *ct, int flags)
int nfnl_ct_build_query_request (const struct nfnl_ct *ct, int flags, struct nl_msg **result)
int nfnl_ct_query (struct nl_sock *sk, const struct nfnl_ct *ct, int flags)

Cache Management

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

Function Documentation

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

Build a conntrack cache holding all conntrack 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 conntracks currently in the kernel.

Returns:
0 on success or a negative error code.

Definition at line 553 of file ct.c.

References nl_cache_alloc_and_fill().

+ Here is the call graph for this function: