Skip to content

Commit f6b7b5f

Browse files
ffmanceraummakynes
authored andcommitted
netfilter: nf_osf: rename nf_osf.c to nfnetlink_osf.c
Rename nf_osf.c to nfnetlink_osf.c as we introduce nfnetlink_osf which is the OSF infraestructure. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 33b78aa commit f6b7b5f

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

‎net/netfilter/Kconfig‎

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ config NETFILTER_NETLINK_LOG
4646
and is also scheduled to replace the old syslog-based ipt_LOG
4747
and ip6t_LOG modules.
4848

49+
config NETFILTER_NETLINK_OSF
50+
tristate "Netfilter OSF over NFNETLINK interface"
51+
depends on NETFILTER_ADVANCED
52+
select NETFILTER_NETLINK
53+
help
54+
If this option is enabled, the kernel will include support
55+
for passive OS fingerprint via NFNETLINK.
56+
4957
config NF_CONNTRACK
5058
tristate "Netfilter connection tracking support"
5159
default m if NETFILTER_ADVANCED=n
@@ -442,9 +450,6 @@ config NETFILTER_SYNPROXY
442450

443451
endif # NF_CONNTRACK
444452

445-
config NF_OSF
446-
tristate
447-
448453
config NF_TABLES
449454
select NETFILTER_NETLINK
450455
tristate "Netfilter nf_tables support"
@@ -1368,8 +1373,8 @@ config NETFILTER_XT_MATCH_NFACCT
13681373

13691374
config NETFILTER_XT_MATCH_OSF
13701375
tristate '"osf" Passive OS fingerprint match'
1371-
depends on NETFILTER_ADVANCED && NETFILTER_NETLINK
1372-
select NF_OSF
1376+
depends on NETFILTER_ADVANCED
1377+
select NETFILTER_NETLINK_OSF
13731378
help
13741379
This option selects the Passive OS Fingerprinting match module
13751380
that allows to passively match the remote operating system by

‎net/netfilter/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ obj-$(CONFIG_NETFILTER_NETLINK) += nfnetlink.o
2020
obj-$(CONFIG_NETFILTER_NETLINK_ACCT) += nfnetlink_acct.o
2121
obj-$(CONFIG_NETFILTER_NETLINK_QUEUE) += nfnetlink_queue.o
2222
obj-$(CONFIG_NETFILTER_NETLINK_LOG) += nfnetlink_log.o
23+
obj-$(CONFIG_NETFILTER_NETLINK_OSF) += nfnetlink_osf.o
2324

2425
# connection tracking
2526
obj-$(CONFIG_NF_CONNTRACK) += nf_conntrack.o
@@ -108,7 +109,6 @@ obj-$(CONFIG_NFT_HASH) += nft_hash.o
108109
obj-$(CONFIG_NFT_FIB) += nft_fib.o
109110
obj-$(CONFIG_NFT_FIB_INET) += nft_fib_inet.o
110111
obj-$(CONFIG_NFT_FIB_NETDEV) += nft_fib_netdev.o
111-
obj-$(CONFIG_NF_OSF) += nf_osf.o
112112
obj-$(CONFIG_NFT_SOCKET) += nft_socket.o
113113

114114
# nf_tables netdev

0 commit comments

Comments
 (0)