On Sat, Aug 19, 2023 at 11:46:06AM +1000, Duncan Roe wrote: > On Fri, Aug 18, 2023 at 12:56:38PM +0200, Alessandro Vesely wrote: [...] > There are 2 separate APIs in libnetfilter_queue, examplified by > utils/nfqnl_test.c (your program) and examples/nf-queue.c (newer, has functions > for packet mangling). > > DEPRECATED was an unfortunate choice of label for the older API: the functions > are not deprecated but the underlying library that they currently use is > deprecated. In answer to your questions: > > 1a Can I keep using these functions?: Certainly. No. For new applications, the new libmnl-based API is the way to go. Old API depends on libnfnetlink and it will go away sooner or later if there is not a way to make it work behind the scenes with libmnl. We are steadly removing all users of libnfnetlink in favour of libmnl.