firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
netlink_linearize.c File Reference
#include <linux/netfilter/nf_tables.h>
#include <string.h>
#include <rule.h>
#include <statement.h>
#include <expression.h>
#include <netlink.h>
#include <gmputil.h>
#include <utils.h>
Include dependency graph for netlink_linearize.c:

Data Structures

struct  netlink_linearize_ctx


void netlink_linearize_rule (struct netlink_ctx *ctx, struct nft_rule *nlr, const struct rule *rule)

Function Documentation

void netlink_linearize_rule ( struct netlink_ctx ctx,
struct nft_rule nlr,
const struct rule rule 

References stmt::list, list_for_each_entry, netlink_dump_rule(), NFT_REG_1, netlink_linearize_ctx::nlr, netlink_linearize_ctx::reg_low, and rule::stmts.

Referenced by netlink_add_rule_batch().

Here is the call graph for this function:

Here is the caller graph for this function: