netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ct.c File Reference
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include <arpa/inet.h>
#include <errno.h>
#include <linux/netfilter/nf_tables.h>
#include "internal.h"
#include <libmnl/libmnl.h>
#include <libnftnl/expr.h>
#include <libnftnl/rule.h>
#include "expr_ops.h"
#include <buffer.h>
Include dependency graph for ct.c:

Data Structures

struct  nft_expr_ct
 

Macros

#define IP_CT_DIR_ORIGINAL   0
 
#define IP_CT_DIR_REPLY   1
 
#define NFT_CT_MAX   (NFT_CT_LABELS + 1)
 

Variables

const char * ctkey2str_array [NFT_CT_MAX]
 
struct expr_ops expr_ops_ct
 

Macro Definition Documentation

#define IP_CT_DIR_ORIGINAL   0
#define IP_CT_DIR_REPLY   1
#define NFT_CT_MAX   (NFT_CT_LABELS + 1)

Variable Documentation

const char* ctkey2str_array[NFT_CT_MAX]
Initial value:
= {
[NFT_CT_STATE] = "state",
[NFT_CT_DIRECTION] = "direction",
[NFT_CT_STATUS] = "status",
[NFT_CT_MARK] = "mark",
[NFT_CT_SECMARK] = "secmark",
[NFT_CT_EXPIRATION] = "expiration",
[NFT_CT_HELPER] = "helper",
[NFT_CT_L3PROTOCOL] = "l3protocol",
[NFT_CT_PROTOCOL] = "protocol",
[NFT_CT_SRC] = "src",
[NFT_CT_DST] = "dst",
[NFT_CT_PROTO_SRC] = "proto_src",
[NFT_CT_PROTO_DST] = "proto_dst",
[NFT_CT_LABELS] = "label",
}
Definition: nf_tables.h:632
Definition: nf_tables.h:643
Definition: nf_tables.h:634
Definition: nf_tables.h:637
Definition: nf_tables.h:639
Definition: nf_tables.h:644
Definition: nf_tables.h:638
Definition: nf_tables.h:636
Definition: nf_tables.h:631
Definition: nf_tables.h:633
Definition: nf_tables.h:635
Definition: nf_tables.h:642
Definition: nf_tables.h:640
Definition: nf_tables.h:641
struct expr_ops expr_ops_ct
Initial value:
= {
.name = "ct",
.alloc_len = sizeof(struct nft_expr_ct),
.max_attr = NFTA_CT_MAX,
.set = nft_rule_expr_ct_set,
.get = nft_rule_expr_ct_get,
.parse = nft_rule_expr_ct_parse,
.build = nft_rule_expr_ct_build,
.snprintf = nft_rule_expr_ct_snprintf,
.xml_parse = nft_rule_expr_ct_xml_parse,
.json_parse = nft_rule_expr_ct_json_parse,
}
#define NFTA_CT_MAX
Definition: nf_tables.h:663
Definition: ct.c:26