libnetfilter_cthelper 1.0.1
|
Functions | |
struct nlmsghdr __EXPORTED * | nfct_helper_nlmsg_build_hdr (char *buf, uint8_t cmd, uint16_t flags, uint32_t seq) |
void __EXPORTED | nfct_helper_nlmsg_build_payload (struct nlmsghdr *nlh, struct nfct_helper *h) |
int __EXPORTED | nfct_helper_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfct_helper *h) |
struct nlmsghdr __EXPORTED * nfct_helper_nlmsg_build_hdr | ( | char * | buf, |
uint8_t | cmd, | ||
uint16_t | flags, | ||
uint32_t | seq ) |
nfct_helper_nlmsg_build_hdr - build netlink message header for nfct_helper subsystem
buf | buffer where this function outputs the netlink message. |
cmd | nfct_helper nfnetlink command. |
flags | netlink flags. |
seq | sequence number for this message. |
Possible commands:
Examples:
Definition at line 480 of file libnetfilter_cthelper.c.
void __EXPORTED nfct_helper_nlmsg_build_payload | ( | struct nlmsghdr * | nlh, |
struct nfct_helper * | h ) |
nfct_helper_nlmsg_build_payload - build payload from helper object
nlh | netlink message that you want to use to add the payload. |
nfct_helper | pointer to a helper object |
Definition at line 519 of file libnetfilter_cthelper.c.
int __EXPORTED nfct_helper_nlmsg_parse_payload | ( | const struct nlmsghdr * | nlh, |
struct nfct_helper * | h ) |
nfct_helper_nlmsg_parse_payload - set helper object attributes from message
nlh | netlink message that you want to use to add the payload. |
nfct_helper | pointer to a helper object |
This function returns -1 in case that some mandatory attributes are missing. On sucess, it returns 0.
Definition at line 782 of file libnetfilter_cthelper.c.