diff options
| author | Bart De Schuymer <bdschuym@pandora.be> | 2003-05-03 16:22:27 -0700 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-05-03 16:22:27 -0700 |
| commit | fbbcf1fed6fc0097eb24a20e35bbc4659c9aa3f0 (patch) | |
| tree | ab31e65734c18edbde9f9b73f19f908f3cbd4d9f /include/linux | |
| parent | c6a8dbb549f2caceedb6781203f69f60102b2759 (diff) | |
[EBTABLES]: Add ARP MAC address filtering.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netfilter_bridge/ebt_arp.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/netfilter_bridge/ebt_arp.h b/include/linux/netfilter_bridge/ebt_arp.h index 8967ddae114d..537ec6b487a2 100644 --- a/include/linux/netfilter_bridge/ebt_arp.h +++ b/include/linux/netfilter_bridge/ebt_arp.h @@ -6,8 +6,10 @@ #define EBT_ARP_PTYPE 0x04 #define EBT_ARP_SRC_IP 0x08 #define EBT_ARP_DST_IP 0x10 +#define EBT_ARP_SRC_MAC 0x20 +#define EBT_ARP_DST_MAC 0x40 #define EBT_ARP_MASK (EBT_ARP_OPCODE | EBT_ARP_HTYPE | EBT_ARP_PTYPE | \ - EBT_ARP_SRC_IP | EBT_ARP_DST_IP) + EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC) #define EBT_ARP_MATCH "arp" struct ebt_arp_info @@ -19,6 +21,10 @@ struct ebt_arp_info uint32_t smsk; uint32_t daddr; uint32_t dmsk; + unsigned char smaddr[ETH_ALEN]; + unsigned char smmsk[ETH_ALEN]; + unsigned char dmaddr[ETH_ALEN]; + unsigned char dmmsk[ETH_ALEN]; uint8_t bitmask; uint8_t invflags; }; |
