4 #include <linux/types.h>
8 #define NF_OSF_GENRE (1 << 0)
9 #define NF_OSF_TTL (1 << 1)
10 #define NF_OSF_LOG (1 << 2)
11 #define NF_OSF_INVERT (1 << 3)
13 #define NF_OSF_LOGLEVEL_ALL 0 /* log all matched fingerprints */
14 #define NF_OSF_LOGLEVEL_FIRST 1 /* log only the first matced fingerprint */
15 #define NF_OSF_LOGLEVEL_ALL_KNOWN 2 /* do not log unknown packets */
17 #define NF_OSF_TTL_TRUE 0 /* True ip and fingerprint TTL comparison */
19 /* Do not compare ip and fingerprint TTL at all */
20 #define NF_OSF_TTL_NOCHECK 2
22 /* Wildcard MSS (kind of).
23 * It is used to implement a state machine for the different wildcard values
24 * of the MSS and window sizes.
31 /* This struct represents IANA options
32 * http://www.iana.org/assignments/tcp-parameters
40 char genre[MAXGENRELEN];
47 struct nf_osf_user_finger {
54 char genre[MAXGENRELEN];
55 char version[MAXGENRELEN];
56 char subtype[MAXGENRELEN];
58 /* MAX_IPOPTLEN is maximum if all options are NOPs or EOLs */
59 struct nf_osf_opt opt[MAX_IPOPTLEN];
63 struct nf_osf_user_finger f;
68 /* Defines for IANA option kinds */
70 OSFOPT_EOL = 0, /* End of options */
72 OSFOPT_MSS, /* Maximum segment size */
73 OSFOPT_WSO, /* Window scale option */
74 OSFOPT_SACKP, /* SACK permitted */
75 OSFOPT_SACK, /* SACK */
78 OSFOPT_TS, /* Timestamp option */
79 OSFOPT_POCP, /* Partial Order Connection Permitted */
80 OSFOPT_POSP, /* Partial Order Service Profile */
82 /* Others are not used in the current OSF */
86 #endif /* _NF_OSF_H */