Skip to content

Commit 212dfd9

Browse files
ffmanceraummakynes
authored andcommitted
netfilter: nfnetlink_osf: add missing enum in nfnetlink_osf uapi header
xt_osf_window_size_options was originally part of include/uapi/linux/netfilter/xt_osf.h, restore it. Fixes: bfb15f2 ("netfilter: extract Passive OS fingerprint infrastructure from xt_osf") Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent f699edb commit 212dfd9

3 files changed

Lines changed: 13 additions & 12 deletions

File tree

‎include/linux/netfilter/nfnetlink_osf.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@
44

55
#include <uapi/linux/netfilter/nfnetlink_osf.h>
66

7-
/* Initial window size option state machine: multiple of mss, mtu or
8-
* plain numeric value. Can also be made as plain numeric value which
9-
* is not a multiple of specified value.
10-
*/
11-
enum nf_osf_window_size_options {
12-
OSF_WSS_PLAIN = 0,
13-
OSF_WSS_MSS,
14-
OSF_WSS_MTU,
15-
OSF_WSS_MODULO,
16-
OSF_WSS_MAX,
17-
};
18-
197
enum osf_fmatch_states {
208
/* Packet does not match the fingerprint */
219
FMATCH_WRONG = 0,

‎include/uapi/linux/netfilter/nfnetlink_osf.h‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,18 @@ enum iana_options {
8888
OSFOPT_EMPTY = 255,
8989
};
9090

91+
/* Initial window size option state machine: multiple of mss, mtu or
92+
* plain numeric value. Can also be made as plain numeric value which
93+
* is not a multiple of specified value.
94+
*/
95+
enum nf_osf_window_size_options {
96+
OSF_WSS_PLAIN = 0,
97+
OSF_WSS_MSS,
98+
OSF_WSS_MTU,
99+
OSF_WSS_MODULO,
100+
OSF_WSS_MAX,
101+
};
102+
91103
enum nf_osf_attr_type {
92104
OSF_ATTR_UNSPEC,
93105
OSF_ATTR_FINGER,

‎include/uapi/linux/netfilter/xt_osf.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
#define xt_osf_finger nf_osf_finger
4747
#define xt_osf_nlmsg nf_osf_nlmsg
4848

49+
#define xt_osf_window_size_options nf_osf_window_size_options
4950
#define xt_osf_attr_type nf_osf_attr_type
5051
#define xt_osf_msg_types nf_osf_msg_types
5152

0 commit comments

Comments
 (0)