1
0
mirror of https://github.com/CumulusNetworks/ifupdown2.git synced 2024-05-06 15:54:50 +00:00

nllistener: increase netlink buffer to 64k

Currently 4k buffer is too small to handle some netlink messages

(Like bridge vlans for example, with 32k messages detected).
This commit is contained in:
Alexandre Derumier
2020-05-27 15:49:49 +02:00
parent 05e825a486
commit 523b347ad4

View File

@@ -44,7 +44,7 @@ class NetlinkListener(Thread):
# As defined in asm/socket.h
_SO_ATTACH_FILTER = 26
RECV_BUFFER = 4096 # 1024 * 1024
RECV_BUFFER = 65536 # 1024 * 1024
def __init__(self, manager, groups, pid_offset=1, error_notification=False, rcvbuf_sz=10000000, bpf_filter=None):
"""