netif_utils: correctly close fd on read error
Fix Coverity Scan CID
1521069 reporting leaking fd on read error.
Refactor the read error handling and correctly close fd on read error.
Signed-off-by: Christian Marangi <[email protected]>
build: use pthread cflags/ldflags
Fixes build on glibc
Signed-off-by: Felix Fietkau <[email protected]>
libnetlink: turn rtnetlink error answers into debug msgs
They should not be logged by default
Signed-off-by: Felix Fietkau <[email protected]>
bridge: check port bpdu filter status and apply it to the config
Signed-off-by: Felix Fietkau <[email protected]>
libnetlink: fix netlink buffer space handling
Significantly increaese buffer size in order to avoid missing events
Do not stop polling socket after running out of buffer space
Signed-off-by: Felix Fietkau <[email protected]>
brmon: continue polling the socket after an error occured
Fixes a corner case with edge-trigger epoll
Signed-off-by: Felix Fietkau <[email protected]>