Open sm-Fifteen opened 6 years ago
I also have this problem. Did you find a solution?
Instead of letting functions call _nlstub_
, which is the part that initializes the netlink socket, you can just call nl_socket_alloc
with your own values for rx
and tx
, and pass it to functions that require a netlink socket from then on.
When creating a new socket to claim an interface, pyric uses a default value for tx and rx
BUFSZ
of 32768 bytes. It also checks that the selected value is smaller than the configured maximum socket buffer size, but sinceBUFSZ
is hardcoded, said default value may cause socket initialization to fail. I'm currently working on an embedded system wherermem_max
is 163840, which puts the output of_maxbufsz_
at 8192.Out of the box, this is what I get :
It's also not very helpful how
_nlstub_
swallows any errors thrown by libnl and replaces them with this not very descriptive message and stack-trace instead.