netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
statement.c File Reference
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
#include <string.h>
#include <syslog.h>
#include <arpa/inet.h>
#include <linux/netfilter.h>
#include <netinet/ip_icmp.h>
#include <netinet/icmp6.h>
#include <statement.h>
#include <utils.h>
#include <list.h>
#include <netinet/in.h>
#include <linux/netfilter/nf_nat.h>
Include dependency graph for statement.c:

Functions

struct stmtstmt_alloc (const struct location *loc, const struct stmt_ops *ops)
 
void stmt_free (struct stmt *stmt)
 
void stmt_list_free (struct list_head *list)
 
void stmt_print (const struct stmt *stmt)
 
struct stmtexpr_stmt_alloc (const struct location *loc, struct expr *expr)
 
struct stmtverdict_stmt_alloc (const struct location *loc, struct expr *expr)
 
struct stmtcounter_stmt_alloc (const struct location *loc)
 
struct stmtlog_stmt_alloc (const struct location *loc)
 
struct stmtlimit_stmt_alloc (const struct location *loc)
 
struct stmtqueue_stmt_alloc (const struct location *loc)
 
struct stmtreject_stmt_alloc (const struct location *loc)
 
struct stmtnat_stmt_alloc (const struct location *loc)
 
struct stmtmasq_stmt_alloc (const struct location *loc)
 
struct stmtredir_stmt_alloc (const struct location *loc)
 

Function Documentation

struct stmt* counter_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* expr_stmt_alloc ( const struct location loc,
struct expr expr 
)

References stmt::expr, and stmt_alloc().

Referenced by payload_gen_dependency().

Here is the call graph for this function:

Here is the caller graph for this function:

struct stmt* limit_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* log_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* masq_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* nat_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* queue_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* redir_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* reject_stmt_alloc ( const struct location loc)

References stmt_alloc().

Here is the call graph for this function:

struct stmt* stmt_alloc ( const struct location loc,
const struct stmt_ops ops 
)
void stmt_free ( struct stmt stmt)

References stmt_ops::destroy, stmt::ops, and xfree.

Referenced by stmt_list_free().

Here is the caller graph for this function:

void stmt_list_free ( struct list_head list)

References stmt::list, list_for_each_entry_safe, and stmt_free().

Referenced by rule_free().

Here is the call graph for this function:

Here is the caller graph for this function:

void stmt_print ( const struct stmt stmt)

References stmt::ops, and stmt_ops::print.

Referenced by stmt_evaluate().

Here is the caller graph for this function:

struct stmt* verdict_stmt_alloc ( const struct location loc,
struct expr expr 
)

References stmt::expr, and stmt_alloc().

Here is the call graph for this function: