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>
15 lines
295 B
C
15 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
|