xt_HMARK.h revision 38062f954c637861348dd8078cefb73554e6f12c
1/****************************************************************************
2 ****************************************************************************
3 ***
4 ***   This header was automatically generated from a Linux kernel header
5 ***   of the same name, to make information necessary for userspace to
6 ***   call into the kernel available to libc.  It contains only constants,
7 ***   structures, and macros generated from the original header, and thus,
8 ***   contains no copyrightable information.
9 ***
10 ***   To edit the content of this header, modify the corresponding
11 ***   source file (e.g. under external/kernel-headers/original/) then
12 ***   run bionic/libc/kernel/tools/update_all.py
13 ***
14 ***   Any manual change here will be lost the next time this script will
15 ***   be run. You've been warned!
16 ***
17 ****************************************************************************
18 ****************************************************************************/
19#ifndef XT_HMARK_H_
20#define XT_HMARK_H_
21#include <linux/types.h>
22enum {
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 XT_HMARK_SADDR_MASK,
25 XT_HMARK_DADDR_MASK,
26 XT_HMARK_SPI,
27 XT_HMARK_SPI_MASK,
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 XT_HMARK_SPORT,
30 XT_HMARK_DPORT,
31 XT_HMARK_SPORT_MASK,
32 XT_HMARK_DPORT_MASK,
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 XT_HMARK_PROTO_MASK,
35 XT_HMARK_RND,
36 XT_HMARK_MODULUS,
37 XT_HMARK_OFFSET,
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 XT_HMARK_CT,
40 XT_HMARK_METHOD_L3,
41 XT_HMARK_METHOD_L3_4,
42};
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44#define XT_HMARK_FLAG(flag) (1 << flag)
45union hmark_ports {
46 struct {
47 __u16 src;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 __u16 dst;
50 } p16;
51 struct {
52 __be16 src;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54 __be16 dst;
55 } b16;
56 __u32 v32;
57 __be32 b32;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59};
60struct xt_hmark_info {
61 union nf_inet_addr src_mask;
62 union nf_inet_addr dst_mask;
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 union hmark_ports port_mask;
65 union hmark_ports port_set;
66 __u32 flags;
67 __u16 proto_mask;
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69 __u32 hashrnd;
70 __u32 hmodulus;
71 __u32 hoffset;
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74#endif
75