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