We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
IFLA_ALT_IFNAME is not used.
rtnl_link_get_by_name with altname will return not exits.
The text was updated successfully, but these errors were encountered:
@thom311
Can you give some tips about how to do it?
Sorry, something went wrong.
First, libnl3 needs to learn about altnames and the struct rtnl_link needs to expose those (an rtnl_link_get_altnames() akin to rtnl_link_get_name())
struct rtnl_link
rtnl_link_get_altnames()
rtnl_link_get_name()
The netlink attribute is called IFLA_ALT_IFNAME. In sense, it is similar to IFLA_IFNAME. Search libnl3 for IFLA_IFNAME.
IFLA_ALT_IFNAME
IFLA_IFNAME
The major difference is that the IFLA_ALT_IFNAME attribute can appear multiple times and there can be any number of altnames.
I'd look at IFLA_ALT_IFNAME in kernel, iproute2 and systemd projects, to see how they handle that.
No branches or pull requests
IFLA_ALT_IFNAME is not used.
rtnl_link_get_by_name with altname will return not exits.
The text was updated successfully, but these errors were encountered: