netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
evaluate.c File Reference
#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>
Include dependency graph for evaluate.c:

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)
 

Macro Definition Documentation

#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)

Enumeration Type Documentation

anonymous enum
Enumerator
CMD_MONITOR_EVENT_ANY 
CMD_MONITOR_EVENT_NEW 
CMD_MONITOR_EVENT_DEL 
CMD_MONITOR_EVENT_MAX 

Function Documentation

int cmd_evaluate ( struct eval_ctx ctx,
struct cmd cmd 
)
int stmt_evaluate ( struct eval_ctx ctx,
struct stmt stmt 
)