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

Implement the route stuff #4

Open
judu opened this issue May 11, 2017 · 1 comment
Open

Implement the route stuff #4

judu opened this issue May 11, 2017 · 1 comment

Comments

@judu
Copy link

judu commented May 11, 2017

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 :)

@carrotsrc
Copy link
Owner

carrotsrc commented Oct 9, 2017

Hey Jodu
Just wanted to say I wasn't ignoring you in the.... what? 5 months since you posted this. I've been doing training and that took all my focus and been working through another account. I've only just logged back in here.

I'm sure you've gone off and done some interesting things with rust since then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants