libnetfilter_cthelper
1.0.0
|
Functions | |
struct nlmsghdr * | nfct_helper_nlmsg_build_hdr (char *buf, uint8_t cmd, uint16_t flags, uint32_t seq) |
void | nfct_helper_nlmsg_build_payload (struct nlmsghdr *nlh, struct nfct_helper *h) |
int | nfct_helper_nlmsg_parse_payload (const struct nlmsghdr *nlh, struct nfct_helper *h) |
struct nlmsghdr* 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 494 of file libnetfilter_cthelper.c.
void 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 534 of file libnetfilter_cthelper.c.
int 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 799 of file libnetfilter_cthelper.c.