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

LinkByName: using IFLA_ALT_IFNAME incorrectly and thus without effect #988

Open
thediveo opened this issue Jul 1, 2024 · 0 comments
Open

Comments

@thediveo
Copy link
Contributor

thediveo commented Jul 1, 2024

The Linux kernel's rtnl_dev_get implementation prefers IFLA_IFNAME over IFLA_ALT_IFNAME (6.1, but probably for a long time). LinkByName(name) always produces an IFLA_IFNAME in its query, and adds an IFLA_ALT_IFNAME in case the specified name is longer than 15 bytes. However, based on the kernel's rtnl_dev_get implementation, this is without effect.

LinkByName needs to produce IFLA_ALT_IFNAME in lieu of IFLA_IFNAME when the specified name is longer than 15 bytes.

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

1 participant