blob: cbf4843b6b0f771ca8392287a0c6ce665e308ec0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef __LINUX_BRIDGE_EBT_ARP_H
2#define __LINUX_BRIDGE_EBT_ARP_H
3
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
Bart De Schuymerc15bf6e2007-04-12 22:15:06 -070011#define EBT_ARP_GRAT 0x80
Linus Torvalds1da177e2005-04-16 15:20:36 -070012#define EBT_ARP_MASK (EBT_ARP_OPCODE | EBT_ARP_HTYPE | EBT_ARP_PTYPE | \
Bart De Schuymerc15bf6e2007-04-12 22:15:06 -070013 EBT_ARP_SRC_IP | EBT_ARP_DST_IP | EBT_ARP_SRC_MAC | EBT_ARP_DST_MAC | \
14 EBT_ARP_GRAT)
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#define EBT_ARP_MATCH "arp"
16
17struct ebt_arp_info
18{
Al Viro47c183f2006-11-14 21:11:51 -080019 __be16 htype;
20 __be16 ptype;
21 __be16 opcode;
22 __be32 saddr;
23 __be32 smsk;
24 __be32 daddr;
25 __be32 dmsk;
Linus Torvalds1da177e2005-04-16 15:20:36 -070026 unsigned char smaddr[ETH_ALEN];
27 unsigned char smmsk[ETH_ALEN];
28 unsigned char dmaddr[ETH_ALEN];
29 unsigned char dmmsk[ETH_ALEN];
30 uint8_t bitmask;
31 uint8_t invflags;
32};
33
34#endif