#include <netlink/netlink.h>
Variables | |
struct nl_object_ops | queue_msg_obj_ops |
struct nfnl_queue_msg* nfnl_queue_msg_alloc | ( | void | ) |
References nl_object_alloc(), and queue_msg_obj_ops.
Referenced by nfnlmsg_queue_msg_parse().
struct nl_msg* nfnl_queue_msg_build_verdict | ( | const struct nfnl_queue_msg * | ) |
References nfqnl_msg_verdict_hdr::id, nfnl_queue_msg_get_family(), nfnl_queue_msg_get_group(), nfnl_queue_msg_get_mark(), nfnl_queue_msg_get_packetid(), nfnl_queue_msg_get_verdict(), nfnl_queue_msg_test_mark(), NFNL_SUBSYS_QUEUE, nfnlmsg_alloc_simple(), NFQA_MARK, NFQA_VERDICT_HDR, NFQNL_MSG_VERDICT, nla_put(), nla_put_u32(), nlmsg_free(), NULL, and nfqnl_msg_verdict_hdr::verdict.
Referenced by nfnl_queue_msg_send_verdict(), and nfnl_queue_msg_send_verdict_payload().
void nfnl_queue_msg_get | ( | struct nfnl_queue_msg * | ) |
uint8_t nfnl_queue_msg_get_family | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_family.
Referenced by nfnl_queue_msg_build_verdict().
uint16_t nfnl_queue_msg_get_group | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_group.
Referenced by nfnl_queue_msg_build_verdict().
uint8_t nfnl_queue_msg_get_hook | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_hook.
const uint8_t* nfnl_queue_msg_get_hwaddr | ( | const struct nfnl_queue_msg * | , |
int * | |||
) |
References NULL, nfnl_queue_msg::queue_msg_hwaddr, and nfnl_queue_msg::queue_msg_hwaddr_len.
uint16_t nfnl_queue_msg_get_hwproto | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_hwproto.
uint32_t nfnl_queue_msg_get_indev | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_indev.
uint32_t nfnl_queue_msg_get_mark | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_mark.
Referenced by nfnl_queue_msg_build_verdict().
uint32_t nfnl_queue_msg_get_outdev | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_outdev.
uint32_t nfnl_queue_msg_get_packetid | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_packetid.
Referenced by nfnl_queue_msg_build_verdict().
const void* nfnl_queue_msg_get_payload | ( | const struct nfnl_queue_msg * | , |
int * | |||
) |
References NULL, nfnl_queue_msg::queue_msg_payload, and nfnl_queue_msg::queue_msg_payload_len.
uint32_t nfnl_queue_msg_get_physindev | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_physindev.
uint32_t nfnl_queue_msg_get_physoutdev | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_physoutdev.
const struct timeval* nfnl_queue_msg_get_timestamp | ( | const struct nfnl_queue_msg * | ) |
References NULL, and nfnl_queue_msg::queue_msg_timestamp.
unsigned int nfnl_queue_msg_get_verdict | ( | const struct nfnl_queue_msg * | ) |
References nfnl_queue_msg::queue_msg_verdict.
Referenced by nfnl_queue_msg_build_verdict().
void nfnl_queue_msg_put | ( | struct nfnl_queue_msg * | ) |
References nl_object_put().
Referenced by nfnlmsg_queue_msg_parse().
int nfnl_queue_msg_send_verdict | ( | struct nl_sock * | nlh, |
const struct nfnl_queue_msg * | msg | ||
) |
Send a message verdict/mark.
References nfnl_queue_msg_build_verdict(), nl_send_auto_complete(), NLE_NOMEM, nlmsg_free(), and NULL.
int nfnl_queue_msg_send_verdict_payload | ( | struct nl_sock * | nlh, |
const struct nfnl_queue_msg * | msg, | ||
const void * | payload_data, | ||
unsigned | payload_len | ||
) |
Send a message verdict including the payload.
References nfnl_queue_msg_build_verdict(), NFQA_PAYLOAD, nl_auto_complete(), nl_send_iovec(), NLA_ALIGN, nlattr::nla_len, nlattr::nla_type, NLE_NOMEM, nlmsg_free(), nlmsg_hdr(), nlmsghdr::nlmsg_len, and NULL.
void nfnl_queue_msg_set_family | ( | struct nfnl_queue_msg * | msg, |
uint8_t | family | ||
) |
Set the protocol family.
References nfnl_queue_msg::queue_msg_family.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_group | ( | struct nfnl_queue_msg * | , |
uint16_t | |||
) |
References nfnl_queue_msg::queue_msg_group.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_hook | ( | struct nfnl_queue_msg * | , |
uint8_t | |||
) |
References hook, and nfnl_queue_msg::queue_msg_hook.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_hwaddr | ( | struct nfnl_queue_msg * | , |
uint8_t * | , | ||
int | |||
) |
References len, nfnl_queue_msg::queue_msg_hwaddr, and nfnl_queue_msg::queue_msg_hwaddr_len.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_hwproto | ( | struct nfnl_queue_msg * | , |
uint16_t | |||
) |
References nfnl_queue_msg::queue_msg_hwproto.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_indev | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References nfnl_queue_msg::queue_msg_indev.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_mark | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References mark, and nfnl_queue_msg::queue_msg_mark.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_outdev | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References nfnl_queue_msg::queue_msg_outdev.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_packetid | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References nfnl_queue_msg::queue_msg_packetid.
Referenced by nfnlmsg_queue_msg_parse().
int nfnl_queue_msg_set_payload | ( | struct nfnl_queue_msg * | , |
uint8_t * | , | ||
int | |||
) |
References len, NLE_NOMEM, nfnl_queue_msg::queue_msg_payload, and nfnl_queue_msg::queue_msg_payload_len.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_physindev | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References nfnl_queue_msg::queue_msg_physindev.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_physoutdev | ( | struct nfnl_queue_msg * | , |
uint32_t | |||
) |
References nfnl_queue_msg::queue_msg_physoutdev.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_timestamp | ( | struct nfnl_queue_msg * | , |
struct timeval * | |||
) |
References nfnl_queue_msg::queue_msg_timestamp.
Referenced by nfnlmsg_queue_msg_parse().
void nfnl_queue_msg_set_verdict | ( | struct nfnl_queue_msg * | msg, |
unsigned int | verdict | ||
) |
Return the number of items matching a filter in the cache.
References nfnl_queue_msg::queue_msg_verdict, and verdict.
int nfnl_queue_msg_test_family | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_group | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_hook | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_hwaddr | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_hwproto | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_indev | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_mark | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_outdev | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_packetid | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_payload | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_physindev | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_physoutdev | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_timestamp | ( | const struct nfnl_queue_msg * | ) |
int nfnl_queue_msg_test_verdict | ( | const struct nfnl_queue_msg * | ) |
struct nl_object_ops queue_msg_obj_ops |
Referenced by nfnl_queue_msg_alloc().