initial commit with v2.6.9
[linux-2.6.9-moxart.git] / include / linux / netfilter_bridge / ebt_arp.h
blob537ec6b487a2ce1f39cdbb8fc9ce9b089309d6d2
1 #ifndef __LINUX_BRIDGE_EBT_ARP_H
2 #define __LINUX_BRIDGE_EBT_ARP_H
4 #define EBT_ARP_OPCODE 0x01
5 #define EBT_ARP_HTYPE 0x02
6 #define EBT_ARP_PTYPE 0x04
7 #define EBT_ARP_SRC_IP 0x08
8 #define EBT_ARP_DST_IP 0x10
9 #define EBT_ARP_SRC_MAC 0x20
10 #define EBT_ARP_DST_MAC 0x40
11 #define EBT_ARP_MASK (EBT_ARP_OPCODE | EBT_ARP_HTYPE | EBT_ARP_PTYPE | \
12 EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC)
13 #define EBT_ARP_MATCH "arp"
15 struct ebt_arp_info
17 uint16_t htype;
18 uint16_t ptype;
19 uint16_t opcode;
20 uint32_t saddr;
21 uint32_t smsk;
22 uint32_t daddr;
23 uint32_t dmsk;
24 unsigned char smaddr[ETH_ALEN];
25 unsigned char smmsk[ETH_ALEN];
26 unsigned char dmaddr[ETH_ALEN];
27 unsigned char dmmsk[ETH_ALEN];
28 uint8_t bitmask;
29 uint8_t invflags;
32 #endif