]> git.ipfire.org Git - thirdparty/nftables.git/commit
files: pf.os: merge the signatures splitted by version
authorFernando Fernandez Mancera <ffmancera@riseup.net>
Wed, 27 Mar 2019 10:38:01 +0000 (11:38 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Mon, 8 Apr 2019 21:52:03 +0000 (23:52 +0200)
commit16ee51d84e0879b2bdc1135b75455f0cde3ed226
treeaaf444e8d4fa2b5f77a5eabd26e5df6838e4a7be
parentc2b712f03882d66b3bee9dee4709e596b0c4993d
files: pf.os: merge the signatures splitted by version

In order to be able to identify the OS version we need to merge the signatures
split by version. eg.

65535:64:1:60:M*,N,W1,N,N,T: FreeBSD:4.7-4.11::FreeBSD 4.7-5.2
65535:64:1:60:M*,N,W1,N,N,T: FreeBSD:5.0-5.2::FreeBSD 4.7-5.2

65535:64:1:60:M*,N,W1,N,N,T: FreeBSD:4.7-5.2::FreeBSD 4.7-5.2

Fingerprints need to be unique to make this fit into the set/map
infrastructure for exact matches. Having multiples fingerprints with
same signature is a problem, since it forces users to add multiple
rules.

Signed-off-by: Fernando Fernandez Mancera <ffmancera@riseup.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
files/osf/pf.os