#include <sys/types.h>
#include <linux/netfilter/nfnetlink_conntrack.h>
#include <linux/netfilter/nf_conntrack_common.h>
#include <linux/netfilter/nf_conntrack_tcp.h>
#include <netlink-local.h>
#include <netlink/netfilter/nfnl.h>
#include <netlink/netfilter/ct.h>
Macros | |
#define | PRINT_FLAG(str) { nl_dump(p, "%s%s", fp++ ? "," : "", (str)); } |
#define | CT_DIFF(ATTR, EXPR) ATTR_DIFF(attrs, CT_ATTR_##ATTR, a, b, EXPR) |
#define | CT_DIFF_VAL(ATTR, FIELD) CT_DIFF(ATTR, a->FIELD != b->FIELD) |
#define | CT_DIFF_ADDR(ATTR, FIELD) |
Functions | |
Allocation/Freeing | |
struct nfnl_ct * | nfnl_ct_alloc (void) |
void | nfnl_ct_get (struct nfnl_ct *ct) |
void | nfnl_ct_put (struct nfnl_ct *ct) |
Variables | |
struct nl_object_ops | ct_obj_ops |
#define CT_DIFF | ( | ATTR, | |
EXPR | |||
) | ATTR_DIFF(attrs, CT_ATTR_##ATTR, a, b, EXPR) |
#define CT_DIFF_ADDR | ( | ATTR, | |
FIELD | |||
) |
#define CT_DIFF_VAL | ( | ATTR, | |
FIELD | |||
) | CT_DIFF(ATTR, a->FIELD != b->FIELD) |
References ct_obj_ops, and nl_object_alloc().
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_alloc().
References nfnl_ct_dir::bytes, nfnl_ct::ct_orig, and nfnl_ct::ct_repl.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_dir::dst, and NULL.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::dst, nfnl_ct_proto::port, and nfnl_ct_dir::proto.
References nfnl_ct::ct_family.
Referenced by nl_cli_ct_parse_dst(), and nl_cli_ct_parse_src().
References nfnl_ct_proto::code, nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, and nfnl_ct_dir::proto.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, nfnl_ct_proto::id, and nfnl_ct_dir::proto.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, nfnl_ct_dir::proto, and nfnl_ct_proto::type.
References nfnl_ct::ct_id.
References nfnl_ct::ct_mark.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, and nfnl_ct_dir::packets.
References nfnl_ct::ct_proto.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, NULL, and nfnl_ct_dir::src.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::port, nfnl_ct_dir::proto, and nfnl_ct_proto::src.
References nfnl_ct::ct_status.
References nfnl_ct::ct_protoinfo, nfnl_ct_protoinfo::state, and nfnl_ct_protoinfo::tcp.
References nfnl_ct::ct_timeout.
References nfnl_ct::ct_use.
References nl_object_put().
Referenced by nfnlmsg_ct_parse().
References bytes, nfnl_ct_dir::bytes, nfnl_ct::ct_orig, and nfnl_ct::ct_repl.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, and nfnl_ct_dir::dst.
Referenced by nl_cli_ct_parse_dst().
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::dst, nfnl_ct_proto::port, and nfnl_ct_dir::proto.
Referenced by nl_cli_ct_parse_dst_port().
References nfnl_ct::ct_family.
Referenced by main(), nfnlmsg_ct_parse(), and nl_cli_ct_parse_family().
References nfnl_ct_proto::code, nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, and nfnl_ct_dir::proto.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, id, nfnl_ct_proto::id, and nfnl_ct_dir::proto.
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::icmp, nfnl_ct_dir::proto, type, and nfnl_ct_proto::type.
References nfnl_ct::ct_id, and id.
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_parse_id().
References nfnl_ct::ct_mark, and mark.
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_parse_mark().
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, and nfnl_ct_dir::packets.
References nfnl_ct::ct_proto.
Referenced by nl_cli_ct_parse_protocol().
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, and nfnl_ct_dir::src.
Referenced by nl_cli_ct_parse_src().
References nfnl_ct::ct_orig, nfnl_ct::ct_repl, nfnl_ct_proto::port, nfnl_ct_dir::proto, and nfnl_ct_proto::src.
Referenced by nl_cli_ct_parse_src_port().
References nfnl_ct::ct_status, and nfnl_ct::ct_status_mask.
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_parse_status().
References nfnl_ct::ct_protoinfo, state, nfnl_ct_protoinfo::state, and nfnl_ct_protoinfo::tcp.
Referenced by nl_cli_ct_parse_tcp_state().
References nfnl_ct::ct_timeout, and timeout.
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_parse_timeout().
References nfnl_ct::ct_use.
Referenced by nfnlmsg_ct_parse(), and nl_cli_ct_parse_use().
char* nfnl_ct_status2str | ( | int | flags, |
char * | buf, | ||
size_t | len | ||
) |
int nfnl_ct_str2status | ( | const char * | name | ) |
References __str2flags(), and ARRAY_SIZE.
Referenced by nl_cli_ct_parse_status().
int nfnl_ct_str2tcp_state | ( | const char * | name | ) |
References __str2type(), and ARRAY_SIZE.
Referenced by nl_cli_ct_parse_tcp_state().
char* nfnl_ct_tcp_state2str | ( | uint8_t | state, |
char * | buf, | ||
size_t | len | ||
) |
References nfnl_ct::ct_status, and nfnl_ct::ct_status_mask.
struct nl_object_ops ct_obj_ops |
Referenced by nfnl_ct_alloc().