summaryrefslogtreecommitdiffstats
path: root/src/osf.c
diff options
context:
space:
mode:
authorFernando Fernandez Mancera <ffmancera@riseup.net>2018-08-22 17:03:46 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2018-08-24 09:44:44 +0200
commitaf00174af3ef478d7d8d96d15647ad1bbb0bc919 (patch)
tree20e2cd8b7719c9bd0f9ae9b6f1ca5d6cf7162e7d /src/osf.c
parent1ecfaa2a9f5191823a3c3cd19b760fcb69f7d38d (diff)
src: osf: import nfnl_osf.c to load osf fingerprints
Import iptables/utils/nfnl_osf.c into nftables tree with some changes in order to load OS fingerprints automatically from pf.os file. Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/osf.c')
-rw-r--r--src/osf.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/osf.c b/src/osf.c
index 131d54e4..b8457cc4 100644
--- a/src/osf.c
+++ b/src/osf.c
@@ -26,6 +26,7 @@ struct expr *osf_expr_alloc(const struct location *loc)
const struct datatype *type = &string_type;
struct expr *expr;
+ osf_init = true;
expr = expr_alloc(loc, &osf_expr_ops, type,
BYTEORDER_HOST_ENDIAN, len);