Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
arpt_mangle.h
Go to the documentation of this file.
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 {
10  union {
11  struct in_addr src_ip;
12  } u_s;
13  union {
14  struct in_addr tgt_ip;
15  } u_t;
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 */