Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Process connector support #1036

Closed
mirfatif opened this issue Oct 2, 2022 · 4 comments
Closed

[Feature Request] Process connector support #1036

mirfatif opened this issue Oct 2, 2022 · 4 comments
Labels

Comments

@mirfatif
Copy link

mirfatif commented Oct 2, 2022

Please add support for creating / binding socket with NETLINK_CONNECTOR family and parsing proc_event. An incomplete implementation is available here

@svinota svinota added the fr label Oct 2, 2022
@svinota
Copy link
Owner

svinota commented Oct 2, 2022

Thanks, I'll take a look tonight!

@svinota
Copy link
Owner

svinota commented Oct 4, 2022

Started to work on that. ETA by the weekend.

@svinota
Copy link
Owner

svinota commented Oct 5, 2022

May I ask you to open a separate ticket for that? Right now NetlinkSocket.get() does that, but not as a part of a normal behaviour, just as a side-effect of another feature, and this definitely should be fixed. The current behaviour is more like a bug.

svinota added a commit that referenced this issue Oct 5, 2022
basic connector family + proc_event implementation

Bug-Url: #1036
Bug-Url: #1038
@svinota
Copy link
Owner

svinota commented Oct 5, 2022

A rather basic implementation merged.

from pyroute2 import ProcEventSocket

ps = ProcEventSocket()
ps.bind()
ps.control(listen=True)
while not enough:
    for event in ps.get():
        print(event)

@svinota svinota closed this as completed Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants