nfq_nlmsg_parse(3)

nfq_nlmsg_parse3

Netlink message helper functions

Usage

Functions

int nfq_nlmsg_parse (const struct nlmsghdr *nlh, struct nlattr **attr)
struct nlmsghdr * nfq_nlmsg_put (char *buf, int type, uint32_t queue_num)

Detailed Description

Function Documentation

int nfq_nlmsg_parse (const struct nlmsghdr * nlh, struct nlattr ** attr)

nfq_nlmsg_parse - set packet attributes from netlink message

Parameters

nlh Pointer to netlink message
attr Pointer to array of attributes to set

Returns

MNL_CB_OK on success or MNL_CB_ERROR if any error occurs

Definition at line 269 of file nlmsg.c.

struct nlmsghdr * nfq_nlmsg_put (char * buf, int type, uint32_t queue_num)

nfq_nlmsg_put - Convert memory buffer into a Netlink buffer

Parameters

*buf Pointer to memory buffer
type Either NFQNL_MSG_CONFIG or NFQNL_MSG_VERDICT
queue_num Queue number

Returns

Pointer to netlink message

Definition at line 283 of file nlmsg.c.

Releases

3 releases since Debian 11 (Bullseye); the text changed 2 times.

  1. 11
  2. 12
  3. 13

Author

Generated automatically by Doxygen for libnetfilter_queue from the source code.

From libnetfilter-queue-doc 1.0.5-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.