nlmsg(3) | Library Functions Manual | nlmsg(3) |
nflog_nlmsg_put_header, nflog_attr_put_cfg_mode, nflog_attr_put_cfg_cmd, nflog_nlmsg_parse, nflog_nlmsg_snprintf - Netlink message helper functions
#include <netinet/in.h> #include <libnetfilter_log/libnetfilter_log.h>
struct nlmsghdr * nflog_nlmsg_put_header (char *buf, uint8_t type, uint8_t family, uint16_t gnum)
int nflog_attr_put_cfg_mode (struct nlmsghdr *nlh, uint8_t mode, uint32_t range)
int nflog_attr_put_cfg_cmd (struct nlmsghdr *nlh, uint8_t cmd)
int nflog_nlmsg_parse (const struct nlmsghdr *nlh, struct nlattr **attr)
int nflog_nlmsg_snprintf (char *buf, size_t bufsiz, const struct nlmsghdr *nlh, struct nlattr **attr, enum nflog_output_type type, uint32_t flags)
nflog_attr_put_cfg_cmd - add a command attribute to nflog netlink message
Parameters
Returns
Definition at line 84 of file nlmsg.c.
nflog_attr_put_cfg_mode - add a mode attribute to nflog netlink message
Parameters
Returns
Definition at line 64 of file nlmsg.c.
nflog_nlmsg_parse - set nlattrs from netlink message
Parameters
Returns
Definition at line 162 of file nlmsg.c.
nflog_nlmsg_put_header - populate memory buffer with nflog Netlink headers
Parameters
Initialises buf to start with a netlink header for the log subsystem followed by an nfnetlink header with the log group
Returns
Definition at line 39 of file nlmsg.c.
nflog_nlmsg_snprintf - print a nflog nlattrs to a buffer
Parameters
This function supports the following types / flags:
type: NFLOG_OUTPUT_XML
You can combine these flags with a bitwise OR.
Returns
Errors
See also
Definition at line 196 of file nlmsg.c.
Generated automatically by Doxygen for libnetfilter_log from the source code.
Version 1.0.2 | libnetfilter_log |