arpt_mangle.h
01: #ifndef _ARPT_MANGLE_H
02: #define _ARPT_MANGLE_H
03: #include <linux/netfilter_arp/arp_tables.h>
04:
05: #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr)
06: struct arpt_mangle
07: {
08: char src_devaddr[ARPT_DEV_ADDR_LEN_MAX];
09: char tgt_devaddr[ARPT_DEV_ADDR_LEN_MAX];
10: union {
11: struct in_addr src_ip;
12: } u_s;
13: union {
14: struct in_addr tgt_ip;
15: } u_t;
16: u_int8_t flags;
17: int target;
18: };
19:
20: #define ARPT_MANGLE_SDEV 0x01
21: #define ARPT_MANGLE_TDEV 0x02
22: #define ARPT_MANGLE_SIP 0x04
23: #define ARPT_MANGLE_TIP 0x08
24: #define ARPT_MANGLE_MASK 0x0f
25:
26: #endif
27:
© Andrew Scott 2006 -
2025,
All Rights Reserved