pyroute2 icon indicating copy to clipboard operation
pyroute2 copied to clipboard

rule add dont work, fails on socket issue, ubuntu 18. tests fails as well

Open jkoorts opened this issue 6 months ago • 2 comments

I run my python app from command line as 'sudo python3 myapp' and I get (logged in with su gives same results):

[Errno 9] Bad file descriptor

at:

File "/usr/local/lib/python3.11/site-packages/pyroute2/netlink/rtnl/iprsocket.py", line 71, in sendto_gate return self._sendto(msg.data, addr)

from:

ipr.rule('add', table=self.table_id, priority=priority, src='100.66.2.224', src_len=29, action='FR_ACT_TO_TBL')

a lot of Pyroute2 tests fails with 'sudo make test'. Test report attached.

testreport.txt

jkoorts avatar Aug 08 '24 10:08 jkoorts