I can do it, but I'm starting with rust, and I'm a bit lost in libnl.
What I'm looking for is a way to delete a link.
So, on in libnl documentation I found this:
struct rtnl_link *link;
if (!(link = rtnl_link_alloc()))
/* error */
rtnl_link_set_name(link, "my_vlan");
if (rtnl_link_delete(sock, link) < 0)
/* error */
rtnl_link_put(link);
Since I'm not in a hurry (it's for a side project), I might as well to the right thing and contribute to this project.
So I have a few newbie questions: you just wrap the C libnl, that's it?
So if I want the "route" part (or at least the rtnl_link_* stuff, I just write the wrappers around the C lib using your style, in a "route" mod?
Also, are you ok with me just doing the part I need? (I can work on a bit more, to at least provide a whole API for the "route" module, not just half of the functions.)
Thanks for your time answering this, and thanks for this lib :)
I can do it, but I'm starting with rust, and I'm a bit lost in libnl.
What I'm looking for is a way to delete a link.
So, on in libnl documentation I found this:
Since I'm not in a hurry (it's for a side project), I might as well to the right thing and contribute to this project.
So I have a few newbie questions: you just wrap the C libnl, that's it?
So if I want the "route" part (or at least the
rtnl_link_*stuff, I just write the wrappers around the C lib using your style, in a "route" mod?Also, are you ok with me just doing the part I need? (I can work on a bit more, to at least provide a whole API for the "route" module, not just half of the functions.)
Thanks for your time answering this, and thanks for this lib :)