#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <arpa/inet.h>
#include <linux/netfilter.h>
#include <linux/netfilter_arp.h>
#include <linux/netfilter/nf_tables.h>
#include <netinet/ip_icmp.h>
#include <netinet/icmp6.h>
#include <net/ethernet.h>
#include <expression.h>
#include <statement.h>
#include <rule.h>
#include <erec.h>
#include <gmputil.h>
#include <utils.h>
#include <netlink.h>
Macros | |
#define | stmt_error(ctx, s1, fmt, args...) __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
#define | stmt_binary_error(ctx, s1, s2, fmt, args...) __stmt_binary_error(ctx, &(s1)->location, &(s2)->location, fmt, ## args) |
#define | chain_error(ctx, s1, fmt, args...) __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
#define | monitor_error(ctx, s1, fmt, args...) __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
Enumerations | |
enum | { CMD_MONITOR_EVENT_ANY, CMD_MONITOR_EVENT_NEW, CMD_MONITOR_EVENT_DEL, CMD_MONITOR_EVENT_MAX } |
Functions | |
int | stmt_evaluate (struct eval_ctx *ctx, struct stmt *stmt) |
int | cmd_evaluate (struct eval_ctx *ctx, struct cmd *cmd) |
#define chain_error | ( | ctx, | |
s1, | |||
fmt, | |||
args... | |||
) | __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
#define monitor_error | ( | ctx, | |
s1, | |||
fmt, | |||
args... | |||
) | __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
#define stmt_binary_error | ( | ctx, | |
s1, | |||
s2, | |||
fmt, | |||
args... | |||
) | __stmt_binary_error(ctx, &(s1)->location, &(s2)->location, fmt, ## args) |
#define stmt_error | ( | ctx, | |
s1, | |||
fmt, | |||
args... | |||
) | __stmt_binary_error(ctx, &(s1)->location, NULL, fmt, ## args) |
anonymous enum |
References BUG, eval_ctx::cmd, CMD_ADD, CMD_CREATE, CMD_DELETE, CMD_DESCRIBE, CMD_EXPORT, CMD_FLUSH, CMD_INSERT, CMD_LIST, CMD_MONITOR, CMD_RENAME, erec_create(), EREC_INFORMATIONAL, erec_print(), cmd::location, and cmd::op.
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().