]> git.ipfire.org Git - thirdparty/iptables.git/commit
utils: nfbpf_compile: Replace pcap_compile_nopcap()
authorPhil Sutter <phil@nwl.cc>
Fri, 21 Apr 2023 13:53:43 +0000 (15:53 +0200)
committerPhil Sutter <phil@nwl.cc>
Fri, 21 Apr 2023 16:03:13 +0000 (18:03 +0200)
commita591f48302e459d079e052b423885ae5eef4fa63
tree0a081c72756c877965c9d84503af88e3f5d09f24
parent0c2dcbf984939d8473e0b429b41e41a36c8a64da
utils: nfbpf_compile: Replace pcap_compile_nopcap()

The function is deprecated. Eliminate the warning by use of
pcap_open_dead(), pcap_compile() and pcap_close() just how
pcap_compile_nopcap() is implemented internally in libpcap.

Signed-off-by: Phil Sutter <phil@nwl.cc>
utils/nfbpf_compile.c