mac_address icon indicating copy to clipboard operation
mac_address copied to clipboard

Nl trait

Open AiyionPrime opened this issue 2 years ago • 3 comments

I'm not too deep into rust yet, but thought it might be possible to have an optional feature, that implements the Nl trait of neli? The two crates appear to have overlapping use-cases.

AiyionPrime avatar Sep 20 '21 15:09 AiyionPrime

Hi, thanks for the issue! I'm absolutely open to having features for interop, however, I've never heard of netlink nor neli before this and from the small bit of reading I've done, its unclear to me what the purpose is -- would you mind expanding on how you think my crate fits in with it and what you mean by "The two crates appear to have overlapping use-cases"?

repnop avatar Sep 20 '21 17:09 repnop

Netlink allows userspace programs to talk to kernel modules. There are not many potent netlink crates in rust; neli being one of few good ones.

Often such kernel interaction is needed to modify routing tables, interfaces, ... which all tend to have mac adresses in some of their attributes.

Maybe I'm wrong about this, but it might be nice to able to get mac-addresses out of generic netlink message-attributes.

AiyionPrime avatar Sep 20 '21 18:09 AiyionPrime

Oh, if its mainly around de/serializing for the type, then sure I'd accept that as an optional feature flag :) do you have any examples where I could see what it would be like so I can make sure I properly implement it when I get time? Or, if you'd like, I'd also accept a PR if you feel doing it yourself.

repnop avatar Sep 20 '21 18:09 repnop