summaryrefslogtreecommitdiffstats
path: root/kernel/linux/include
diff options
context:
space:
mode:
authorBart De Schuymer <bdschuym@pandora.be>2003-05-01 20:21:52 +0000
committerBart De Schuymer <bdschuym@pandora.be>2003-05-01 20:21:52 +0000
commit6caf621b0d616a03f1b698ed3dab0c5d29348620 (patch)
tree066dac5a983abeb7f1c939de5bb9610b0da0abf0 /kernel/linux/include
parent265fa6126245f9285c9bf2da535a798afa8242b5 (diff)
add arp mac address matching
Diffstat (limited to 'kernel/linux/include')
-rw-r--r--kernel/linux/include/linux/netfilter_bridge/ebt_arp.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/kernel/linux/include/linux/netfilter_bridge/ebt_arp.h b/kernel/linux/include/linux/netfilter_bridge/ebt_arp.h
index 8967dda..f733b4c 100644
--- a/kernel/linux/include/linux/netfilter_bridge/ebt_arp.h
+++ b/kernel/linux/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;
};