You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.
Currently, netlink-packet::rtnl::link::inet6::dev_conf::LinkInet6DevConfBuffer is trying to mirror the kernel's ipv6_devconf struct as defined in /lib/modules/$(uname -r)/build/include/linux/ipv6.h. Since certain fields in ipv6_devconf are dependent on the kernel config, it'll be hard to ensure that this crate is ever 100% compatible with the machine it's running on. For instance, the dump_links example will not work on Debian 9. I'm unsure if there are any other structs that are kernel config dependent, but there might be.
Whilst I cannot envision nice and fluffy solution to this issue immediately, treating the device config (or any structure that can change from kernel to kernel) NLA as an opaque byte buffer would be a solution. Then a different crate can be used to try and deal with the multiplicity of different ipv6_devconf definitions.
For anyone looking for a patchy solution, there's this branch which hacks around the expectation of a specific length of ipv6_devconf, but there might be other kernel-dependent structs.
The text was updated successfully, but these errors were encountered:
I'd been toying around with my own netlink library (though it's high time I gave it up and switched to this), and I pulled these in with bindgen. While binaries won't work cross-platform, it does fix local compilation...
The Debian 9 is not supported any more as stated by https://www.debian.org/releases/stretch/
I don't see a point of support its kernel. Something not working in Debian 9 is not a good reason here.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently,
netlink-packet::rtnl::link::inet6::dev_conf::LinkInet6DevConfBuffer
is trying to mirror the kernel'sipv6_devconf
struct as defined in/lib/modules/$(uname -r)/build/include/linux/ipv6.h
. Since certain fields inipv6_devconf
are dependent on the kernel config, it'll be hard to ensure that this crate is ever 100% compatible with the machine it's running on. For instance, thedump_links
example will not work on Debian 9. I'm unsure if there are any other structs that are kernel config dependent, but there might be.Whilst I cannot envision nice and fluffy solution to this issue immediately, treating the device config (or any structure that can change from kernel to kernel) NLA as an opaque byte buffer would be a solution. Then a different crate can be used to try and deal with the multiplicity of different
ipv6_devconf
definitions.For anyone looking for a patchy solution, there's this branch which hacks around the expectation of a specific length of
ipv6_devconf
, but there might be other kernel-dependent structs.The text was updated successfully, but these errors were encountered: