summaryrefslogtreecommitdiffstats
path: root/kernel/linux/include/linux/netfilter_bridge/ebt_inat.h
blob: d370d7b8a515e3424f14f6e709678903005a7253 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef __LINUX_BRIDGE_EBT_NAT_H
#define __LINUX_BRIDGE_EBT_NAT_H

struct ebt_inat_tuple
{
	int enabled;
	unsigned char mac[ETH_ALEN];
	// EBT_ACCEPT, EBT_DROP or EBT_CONTINUE
	int target;
};

struct ebt_inat_info
{
	uint32_t ip_subnet;
	struct ebt_inat_tuple a[256];
	// EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN
	int target;
};

#define EBT_ISNAT_TARGET "isnat"
#define EBT_IDNAT_TARGET "idnat"

#endif