Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
423 | giacomo | 1 | #ifndef _ARPT_MANGLE_H |
2 | #define _ARPT_MANGLE_H |
||
3 | #include <linux/netfilter_arp/arp_tables.h> |
||
4 | |||
5 | #define ARPT_MANGLE_ADDR_LEN_MAX sizeof(struct in_addr) |
||
6 | struct arpt_mangle |
||
7 | { |
||
8 | char src_devaddr[ARPT_DEV_ADDR_LEN_MAX]; |
||
9 | 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 /* _ARPT_MANGLE_H */ |