summaryrefslogtreecommitdiffstats
path: root/src/evaluate.c
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@netfilter.org>2015-09-04 18:29:00 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2015-09-07 20:34:32 +0200
commit0663bfe7ece4fcb57bd78c7eab2001345527b74c (patch)
tree5bfd022e9aac9ee49f4dc659b666080c49cb150e /src/evaluate.c
parent34a37d5aedd33cf3ca00b8eb856438f793a82f8f (diff)
mnl: rework netlink socket receive path for events
This patch reworks two aspects of the netlink socket event receive path: 1) In case of ENOBUFS, stay in the loop to keep receiving messages. The tool displays a message so the user knows that we got lost event messages. 2) Rise the default size of the receive socket buffer up to 16 MBytes to reduce chances of hitting ENOBUFS. Asumming that the netlink event message size is ~150 bytes, we can bear with ~111848 rules without message loss. Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/evaluate.c')
0 files changed, 0 insertions, 0 deletions