[NETFILTER]: ebtables: add --snap-arp option
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>
This commit is contained in:
parent
baf7b1e112
commit
d12cdc3ccf
4 changed files with 32 additions and 6 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#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];
|
||||
|
|
|
|||
|
|
@ -26,6 +26,10 @@
|
|||
#define EBT_CONTINUE -3
|
||||
#define EBT_RETURN -4
|
||||
#define NUM_STANDARD_TARGETS 4
|
||||
/* ebtables target modules store the verdict inside an int. We can
|
||||
* reclaim a part of this int for backwards compatible extensions.
|
||||
* The 4 lsb are more than enough to store the verdict. */
|
||||
#define EBT_VERDICT_BITS 0x0000000F
|
||||
|
||||
struct ebt_counter
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue