mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-05 02:19:51 +00:00
d12cdc3ccf
The attached patch adds --snat-arp support, which makes it possible to change the source mac address in both the mac header and the arp header with one rule. Signed-off-by: Bart De Schuymer <bdschuym@pandora.be> Signed-off-by: Patrick McHardy <kaber@trash.net>
14 lines
295 B
C
14 lines
295 B
C
#ifndef __LINUX_BRIDGE_EBT_NAT_H
|
|
#define __LINUX_BRIDGE_EBT_NAT_H
|
|
|
|
#define NAT_ARP_BIT (0x00000010)
|
|
struct ebt_nat_info
|
|
{
|
|
unsigned char mac[ETH_ALEN];
|
|
/* EBT_ACCEPT, EBT_DROP, EBT_CONTINUE or EBT_RETURN */
|
|
int target;
|
|
};
|
|
#define EBT_SNAT_TARGET "snat"
|
|
#define EBT_DNAT_TARGET "dnat"
|
|
|
|
#endif
|