From 98bb04a7c39470931cdfd6817d64211f1278a88f Mon Sep 17 00:00:00 2001 From: Pablo Neira Ayuso Date: Wed, 5 Jun 2019 19:34:51 +0200 Subject: mnl: bogus error when running monitor mode Fix bogus error message: # nft monitor Cannot set up netlink socket buffer size to 16777216 bytes, falling back to 16777216 bytes Fixes: bcf60fb819bf ("mnl: add mnl_set_rcvbuffer() and use it") Signed-off-by: Pablo Neira Ayuso --- src/mnl.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/mnl.c') diff --git a/src/mnl.c b/src/mnl.c index 5c76f7f6..83dfb9d2 100644 --- a/src/mnl.c +++ b/src/mnl.c @@ -1438,9 +1438,7 @@ int mnl_nft_event_listener(struct mnl_socket *nf_sock, unsigned int debug_mask, ret = mnl_set_rcvbuffer(nf_sock, bufsiz); if (ret < 0) - nft_print(octx, "# Cannot increase netlink socket buffer size, expect message loss\n"); - else - nft_print(octx, "# Cannot set up netlink socket buffer size to %u bytes, falling back to %u bytes\n", + nft_print(octx, "# Cannot set up netlink receive socket buffer size to %u bytes, falling back to %u bytes\n", NFTABLES_NLEVENT_BUFSIZ, bufsiz); while (1) { -- cgit v1.2.3