From 3885d68d8bfe0f830c4a00fef82911f8964a40b5 Mon Sep 17 00:00:00 2001 From: Duncan Roe Date: Sun, 26 Nov 2023 12:53:52 +1100 Subject: src: Add nfq_nlmsg_put2() - user specifies header flags Enable mnl programs to get an explicit acknowledgement of whether a configuration request has been accepted. (nfnl programs do this already). Signed-off-by: Duncan Roe Signed-off-by: Pablo Neira Ayuso --- include/libnetfilter_queue/libnetfilter_queue.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/libnetfilter_queue') diff --git a/include/libnetfilter_queue/libnetfilter_queue.h b/include/libnetfilter_queue/libnetfilter_queue.h index 3d8e444..f254984 100644 --- a/include/libnetfilter_queue/libnetfilter_queue.h +++ b/include/libnetfilter_queue/libnetfilter_queue.h @@ -151,6 +151,7 @@ void nfq_nlmsg_verdict_put_pkt(struct nlmsghdr *nlh, const void *pkt, uint32_t p int nfq_nlmsg_parse(const struct nlmsghdr *nlh, struct nlattr **attr); struct nlmsghdr *nfq_nlmsg_put(char *buf, int type, uint32_t queue_num); +struct nlmsghdr *nfq_nlmsg_put2(char *buf, int type, uint32_t queue_num, uint16_t flags); #ifdef __cplusplus } /* extern "C" */ -- cgit v1.2.3