summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2019-06-05 19:34:51 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2019-06-07 14:11:28 +0200
commit98bb04a7c39470931cdfd6817d64211f1278a88f (patch)
tree49b204f88259987e0ada0bdcb18f76382963ddab
parentdf2f746fb4cfc68d178dcfcf1fe9db08bd56b660 (diff)
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 <pablo@netfilter.org>
-rw-r--r--src/mnl.c4
1 files changed, 1 insertions, 3 deletions
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) {