diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-08 14:58:17 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-08 14:58:17 +0000 |
commit | 4bcde183a305d0d32681990397c1ccf6579fa35d (patch) | |
tree | 003985ea964b01fec3579b2beedfc9a8f4327814 /userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h | |
parent | 3ebbac4c79c959c0c836d25806788d1aa2fb2602 (diff) |
keep these headers so we don't need to convert things to x_tables
Diffstat (limited to 'userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h')
-rw-r--r-- | userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h b/userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h new file mode 100644 index 0000000..250f502 --- /dev/null +++ b/userspace/arptables/include/linux/netfilter_arp/arpt_mangle.h @@ -0,0 +1,26 @@ +#ifndef _ARPT_MANGLE_H +#define _ARPT_MANGLE_H +#include <linux/netfilter_arp/arp_tables.h> + +#define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) +struct arpt_mangle +{ + char src_devaddr[ARPT_DEV_ADDR_LEN_MAX]; + char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX]; + union { + struct in_addr src_ip; + } u_s; + union { + struct in_addr tgt_ip; + } u_t; + u_int8_t flags; + int target; +}; + +#define ARPT_MANGLE_SDEV 0x01 +#define ARPT_MANGLE_TDEV 0x02 +#define ARPT_MANGLE_SIP 0x04 +#define ARPT_MANGLE_TIP 0x08 +#define ARPT_MANGLE_MASK 0x0f + +#endif /* _ARPT_MANGLE_H */ |