Skip to content

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

@jkoorts

Description

@jkoorts

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions