]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft-shared: Introduce port_match_single_to_range()
authorPhil Sutter <phil@nwl.cc>
Thu, 6 Oct 2022 16:20:14 +0000 (18:20 +0200)
committerPhil Sutter <phil@nwl.cc>
Tue, 15 Nov 2022 15:58:16 +0000 (16:58 +0100)
commitd9813e31f7e616b2e0dfea841aecfe40dd51a697
treecad536cc69c3255ad2a2f8aeae0201186f3387ab
parenteb2546a8467764de357598e6a54ddbc23ca5ee7d
nft-shared: Introduce port_match_single_to_range()

The same algorithm was present four times, outsource it. Also use
max()/min() macros for a more readable boundary notation.

Signed-off-by: Phil Sutter <phil@nwl.cc>
iptables/nft-shared.c