I've been investigating how to use netlink sockets from Python, but it's quite a nightmare. I hope I won't finally give up :)
What I'd like to do is reimplement the behaviour of "ip monitor link" using Python. I already looked at the source code of "ip monitor" and "iotop" (the first one for the proper implementation, the second one because it uses netlink within Py).
However, the code is quite complex, and I haven't yet been able to make a simple status monitor listening to a netlink socket.
Be assured that this is what WICD is heading to though ;)
Exactly.
I've been investigating how to use netlink sockets from Python, but it's quite a nightmare. I hope I won't finally give up :)
What I'd like to do is reimplement the behaviour of "ip monitor link" using Python. I already looked at the source code of "ip monitor" and "iotop" (the first one for the proper implementation, the second one because it uses netlink within Py).
However, the code is quite complex, and I haven't yet been able to make a simple status monitor listening to a netlink socket.
Be assured that this is what WICD is heading to though ;)
David