xt_osf.h revision d7db594b8d1dab36b711bd887a9dd21675c87243
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_OSF_H
20#define _XT_OSF_H
21#include <linux/types.h>
22#define MAXGENRELEN 32
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define XT_OSF_GENRE (1 << 0)
25#define XT_OSF_TTL (1 << 1)
26#define XT_OSF_LOG (1 << 2)
27#define XT_OSF_INVERT (1 << 3)
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define XT_OSF_LOGLEVEL_ALL 0
30#define XT_OSF_LOGLEVEL_FIRST 1
31#define XT_OSF_LOGLEVEL_ALL_KNOWN 2
32#define XT_OSF_TTL_TRUE 0
33/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define XT_OSF_TTL_LESS 1
35#define XT_OSF_TTL_NOCHECK 2
36struct xt_osf_info {
37  char genre[MAXGENRELEN];
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39  __u32 len;
40  __u32 flags;
41  __u32 loglevel;
42  __u32 ttl;
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
45struct xt_osf_wc {
46  __u32 wc;
47  __u32 val;
48/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49};
50struct xt_osf_opt {
51  __u16 kind, length;
52  struct xt_osf_wc wc;
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54};
55struct xt_osf_user_finger {
56  struct xt_osf_wc wss;
57  __u8 ttl, df;
58/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __u16 ss, mss;
60  __u16 opt_num;
61  char genre[MAXGENRELEN];
62  char version[MAXGENRELEN];
63/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64  char subtype[MAXGENRELEN];
65  struct xt_osf_opt opt[MAX_IPOPTLEN];
66};
67struct xt_osf_nlmsg {
68/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69  struct xt_osf_user_finger f;
70  struct iphdr ip;
71  struct tcphdr tcp;
72};
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
74enum iana_options {
75  OSFOPT_EOL = 0,
76  OSFOPT_NOP,
77  OSFOPT_MSS,
78/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
79  OSFOPT_WSO,
80  OSFOPT_SACKP,
81  OSFOPT_SACK,
82  OSFOPT_ECHO,
83/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
84  OSFOPT_ECHOREPLY,
85  OSFOPT_TS,
86  OSFOPT_POCP,
87  OSFOPT_POSP,
88/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
89  OSFOPT_EMPTY = 255,
90};
91enum xt_osf_window_size_options {
92  OSF_WSS_PLAIN = 0,
93/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
94  OSF_WSS_MSS,
95  OSF_WSS_MTU,
96  OSF_WSS_MODULO,
97  OSF_WSS_MAX,
98/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
99};
100enum xt_osf_msg_types {
101  OSF_MSG_ADD,
102  OSF_MSG_REMOVE,
103/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
104  OSF_MSG_MAX,
105};
106enum xt_osf_attr_type {
107  OSF_ATTR_UNSPEC,
108/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
109  OSF_ATTR_FINGER,
110  OSF_ATTR_MAX,
111};
112#endif
113/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
114