#include <stdint.h>
Enumerations | |
enum | { NFT_PARSE_EBADINPUT = 0, NFT_PARSE_EMISSINGNODE, NFT_PARSE_EBADTYPE } |
enum | nft_output_type { NFT_OUTPUT_DEFAULT = 0, NFT_OUTPUT_XML, NFT_OUTPUT_JSON } |
enum | nft_output_flags { NFT_OF_EVENT_NEW = (1 << 0), NFT_OF_EVENT_DEL = (1 << 1), NFT_OF_EVENT_ANY = (NFT_OF_EVENT_NEW | NFT_OF_EVENT_DEL) } |
enum | nft_parse_type { NFT_PARSE_NONE = 0, NFT_PARSE_XML, NFT_PARSE_JSON, NFT_PARSE_MAX } |
Functions | |
struct nlmsghdr * | nft_nlmsg_build_hdr (char *buf, uint16_t cmd, uint16_t family, uint16_t type, uint32_t seq) |
struct nft_parse_err * | nft_parse_err_alloc (void) |
void | nft_parse_err_free (struct nft_parse_err *) |
int | nft_parse_perror (const char *str, struct nft_parse_err *err) |
int | nft_batch_is_supported (void) |
void | nft_batch_begin (char *buf, uint32_t seq) |
void | nft_batch_end (char *buf, uint32_t seq) |
enum nft_output_flags |
enum nft_output_type |
enum nft_parse_type |
void nft_batch_begin | ( | char * | buf, |
uint32_t | seq | ||
) |
References NFNL_MSG_BATCH_BEGIN.
Referenced by mnl_batch_begin(), and nft_batch_is_supported().
void nft_batch_end | ( | char * | buf, |
uint32_t | seq | ||
) |
References NFNL_MSG_BATCH_END.
Referenced by mnl_batch_end(), and nft_batch_is_supported().
int nft_batch_is_supported | ( | void | ) |
References mnl_cb_run(), mnl_nlmsg_batch_current(), mnl_nlmsg_batch_head(), mnl_nlmsg_batch_next(), mnl_nlmsg_batch_size(), mnl_nlmsg_batch_start(), mnl_nlmsg_batch_stop(), MNL_SOCKET_AUTOPID, mnl_socket_bind(), MNL_SOCKET_BUFFER_SIZE, mnl_socket_close(), mnl_socket_get_portid(), mnl_socket_open(), mnl_socket_recvfrom(), mnl_socket_sendto(), NETLINK_NETFILTER, nft_batch_begin(), nft_batch_end(), NFT_MSG_NEWSET, nft_set_nlmsg_build_hdr, NLM_F_ACK, and NULL.
struct nlmsghdr* nft_nlmsg_build_hdr | ( | char * | buf, |
uint16_t | cmd, | ||
uint16_t | family, | ||
uint16_t | type, | ||
uint32_t | seq | ||
) |
References mnl_nlmsg_put_extra_header(), mnl_nlmsg_put_header(), nfgenmsg::nfgen_family, NFNETLINK_V0, NFNL_SUBSYS_NFTABLES, nlh, NLM_F_REQUEST, nlmsghdr::nlmsg_flags, nlmsghdr::nlmsg_seq, nlmsghdr::nlmsg_type, nfgenmsg::res_id, type, and nfgenmsg::version.
Referenced by mnl_genid_get().
struct nft_parse_err* nft_parse_err_alloc | ( | void | ) |
void nft_parse_err_free | ( | struct nft_parse_err * | ) |
References xfree.
int nft_parse_perror | ( | const char * | str, |
struct nft_parse_err * | err | ||
) |