Data Structures | |
struct | counter_stmt |
struct | meta_stmt |
struct | log_stmt |
struct | limit_stmt |
struct | reject_stmt |
struct | nat_stmt |
struct | masq_stmt |
struct | redir_stmt |
struct | queue_stmt |
struct | ct_stmt |
struct | stmt_ops |
struct | stmt |
Enumerations | |
enum | { STMT_LOG_PREFIX = (1 << 0), STMT_LOG_SNAPLEN = (1 << 1), STMT_LOG_GROUP = (1 << 2), STMT_LOG_QTHRESHOLD = (1 << 3), STMT_LOG_LEVEL = (1 << 4) } |
enum | stmt_types { STMT_INVALID, STMT_EXPRESSION, STMT_VERDICT, STMT_COUNTER, STMT_META, STMT_LIMIT, STMT_LOG, STMT_REJECT, STMT_NAT, STMT_MASQ, STMT_REDIR, STMT_QUEUE, STMT_CT } |
enum stmt_types - statement types More... | |
Functions | |
struct stmt * | expr_stmt_alloc (const struct location *loc, struct expr *expr) |
struct stmt * | verdict_stmt_alloc (const struct location *loc, struct expr *expr) |
struct stmt * | counter_stmt_alloc (const struct location *loc) |
struct stmt * | meta_stmt_alloc (const struct location *loc, enum nft_meta_keys key, struct expr *expr) |
struct stmt * | log_stmt_alloc (const struct location *loc) |
struct stmt * | limit_stmt_alloc (const struct location *loc) |
struct stmt * | reject_stmt_alloc (const struct location *loc) |
struct stmt * | nat_stmt_alloc (const struct location *loc) |
struct stmt * | masq_stmt_alloc (const struct location *loc) |
struct stmt * | redir_stmt_alloc (const struct location *loc) |
struct stmt * | queue_stmt_alloc (const struct location *loc) |
struct stmt * | ct_stmt_alloc (const struct location *loc, enum nft_ct_keys key, struct expr *expr) |
: name | |
struct stmt_ops : statement type : destructor : function to print statement | |
enum | stmt_flags { STMT_F_TERMINAL = 0x1 } |
struct stmt * | stmt_alloc (const struct location *loc, const struct stmt_ops *ops) |
int | stmt_evaluate (struct eval_ctx *ctx, struct stmt *stmt) |
void | stmt_free (struct stmt *stmt) |
void | stmt_list_free (struct list_head *list) |
void | stmt_print (const struct stmt *stmt) |
anonymous enum |
enum stmt_flags |
enum stmt_types |
enum stmt_types - statement types
: uninitialised : expression statement (relational) : verdict statement : counters : meta statement : limit statement : log statement : REJECT statement : NAT statement : masquerade statement : redirect statement : QUEUE statement : conntrack statement
Enumerator | |
---|---|
STMT_INVALID | |
STMT_EXPRESSION | |
STMT_VERDICT | |
STMT_COUNTER | |
STMT_META | |
STMT_LIMIT | |
STMT_LOG | |
STMT_REJECT | |
STMT_NAT | |
STMT_MASQ | |
STMT_REDIR | |
STMT_QUEUE | |
STMT_CT |
struct stmt* ct_stmt_alloc | ( | const struct location * | loc, |
enum nft_ct_keys | key, | ||
struct expr * | expr | ||
) |
References stmt::ct, ct_stmt::expr, stmt::expr, ct_stmt::key, stmt_alloc(), and ct_stmt::tmpl.
References stmt::expr, and stmt_alloc().
Referenced by payload_gen_dependency().
struct stmt* meta_stmt_alloc | ( | const struct location * | loc, |
enum nft_meta_keys | key, | ||
struct expr * | expr | ||
) |
References meta_stmt::expr, stmt::expr, meta_stmt::key, stmt::meta, stmt_alloc(), and meta_stmt::tmpl.
References stmt::list, stmt::location, stmt::ops, and xzalloc().
Referenced by counter_stmt_alloc(), ct_stmt_alloc(), expr_stmt_alloc(), limit_stmt_alloc(), log_stmt_alloc(), masq_stmt_alloc(), meta_stmt_alloc(), nat_stmt_alloc(), queue_stmt_alloc(), redir_stmt_alloc(), reject_stmt_alloc(), and verdict_stmt_alloc().
References BUG, erec_create(), EREC_INFORMATIONAL, erec_print(), stmt::location, stmt_ops::name, stmt::ops, STMT_COUNTER, STMT_CT, STMT_EXPRESSION, STMT_LIMIT, STMT_LOG, STMT_MASQ, STMT_META, STMT_NAT, stmt_print(), STMT_QUEUE, STMT_REDIR, STMT_REJECT, STMT_VERDICT, and stmt_ops::type.
Referenced by payload_gen_dependency().
References stmt_ops::destroy, stmt::ops, and xfree.
Referenced by stmt_list_free().
References stmt::list, list_for_each_entry_safe, and stmt_free().
Referenced by rule_free().
References stmt::ops, and stmt_ops::print.
Referenced by stmt_evaluate().