History

netfilter: nf_osf: add missing definitions to header file

Add missing definitions from nf_osf.h in order to extract Passive OS fingerprint infrastructure from xt_osf.

Fernando Fernandez Mancera committed 8 years ago

Commit 24c458c1 parent 70b095c2 files · +13 −8Browse files

Showing the changes to include/uapi/linux (2 of 2 files). Show all

Unified · Split

2 files
  1. include/uapi/linux/netfilter/nf_osf.h +11 −0
  2. include/uapi/linux/netfilter/xt_osf.h +2 −8
include/uapi/linux/netfilter/nf_osf.h+11−0
@@ -16,9 +16,14 @@ · 15 unmodified lines
1616
1717 #define NF_OSF_TTL_TRUE 0 /* True ip and fingerprint TTL comparison */
1818
19+/* Check if ip TTL is less than fingerprint one */
20+#define NF_OSF_TTL_LESS 1
21+
1922 /* Do not compare ip and fingerprint TTL at all */
2023 #define NF_OSF_TTL_NOCHECK 2
2124
25+#define NF_OSF_FLAGMASK (NF_OSF_GENRE | NF_OSF_TTL | \
26+ NF_OSF_LOG | NF_OSF_INVERT)
2227 /* Wildcard MSS (kind of).
2328 * It is used to implement a state machine for the different wildcard values
2429 * of the MSS and window sizes.
@@ -83,4 +88,10 @@ enum iana_options { · 58 unmodified lines
8388 OSFOPT_EMPTY = 255,
8489 };
8590
91+enum nf_osf_attr_type {
92+ OSF_ATTR_UNSPEC,
93+ OSF_ATTR_FINGER,
94+ OSF_ATTR_MAX,
95+};
96+
8697 #endif /* _NF_OSF_H */
include/uapi/linux/netfilter/xt_osf.h+2−8
@@ -37,8 +37,7 @@ · 36 unmodified lines
3737
3838 #define XT_OSF_TTL_TRUE NF_OSF_TTL_TRUE
3939 #define XT_OSF_TTL_NOCHECK NF_OSF_TTL_NOCHECK
40−
41−#define XT_OSF_TTL_LESS 1 /* Check if ip TTL is less than fingerprint one */
40+#define XT_OSF_TTL_LESS NF_OSF_TTL_LESS
4241
4342 #define xt_osf_wc nf_osf_wc
4443 #define xt_osf_opt nf_osf_opt
@@ -47,6 +46,7 @@ · 2 unmodified lines
4746 #define xt_osf_finger nf_osf_finger
4847 #define xt_osf_nlmsg nf_osf_nlmsg
4948
49+#define xt_osf_attr_type nf_osf_attr_type
5050 /*
5151 * Add/remove fingerprint from the kernel.
5252 */
@@ -56,10 +56,4 @@ enum xt_osf_msg_types { · 3 unmodified lines
5656 OSF_MSG_MAX,
5757 };
5858
59−enum xt_osf_attr_type {
60− OSF_ATTR_UNSPEC,
61− OSF_ATTR_FINGER,
62− OSF_ATTR_MAX,
63−};
64−
6559 #endif /* _XT_OSF_H */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t