netfilter
firewalling, NAT, and packet mangling for linux
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
nft-arp.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <netdb.h>
#include <net/if_arp.h>
#include <xtables.h>
#include <libiptc/libxtc.h>
#include <netinet/if_ether.h>
#include <linux/netfilter_arp/arp_tables.h>
#include <linux/netfilter/nf_tables.h>
#include "nft-shared.h"
#include "nft-arp.h"
#include "nft.h"
Include dependency graph for nft-arp.c:

Functions

void nft_rule_to_arptables_command_state (struct nft_rule *r, struct arptables_command_state *cs)
 

Variables

char * opcodes []
 
struct nft_family_ops nft_family_ops_arp
 

Function Documentation

Variable Documentation

struct nft_family_ops nft_family_ops_arp
Initial value:
= {
.add = nft_arp_add,
.is_same = nft_arp_is_same,
.print_payload = NULL,
.parse_meta = nft_arp_parse_meta,
.parse_payload = nft_arp_parse_payload,
.parse_immediate = nft_arp_parse_immediate,
.print_header = nft_arp_print_header,
.print_firewall = nft_arp_print_firewall,
.save_firewall = NULL,
.save_counters = NULL,
.post_parse = NULL,
.rule_find = nft_arp_rule_find,
.parse_target = nft_arp_parse_target,
}
#define NULL
Definition: linux_stddef.h:8

Referenced by nft_family_ops_lookup().

char* opcodes[]
Initial value:
=
{
"Request",
"Reply",
"Request_Reverse",
"Reply_Reverse",
"DRARP_Request",
"DRARP_Reply",
"DRARP_Error",
"InARP_Request",
"ARP_NAK",
}

Referenced by do_commandarp().