Skip to content

Conversation

julianwiedmann
Copy link
Contributor

This requirement limits the usefulness of labels (given the total label length can only be 15 characters).

This requirement limits the usefulness of labels (given the total label
length can only be 15 characters).

Signed-off-by: Julian Wiedmann <jwi@isovalent.com>
@aboch
Copy link
Collaborator

aboch commented Apr 8, 2025

LGTM

But can you pelase check why this test expects the Label to be set to the iface name when the Label was not programmed

&Addr{IPNet: address, Label: "lo", Scope: unix.RT_SCOPE_UNIVERSE, Flags: unix.IFA_F_PERMANENT},

@julianwiedmann
Copy link
Contributor Author

LGTM

But can you pelase check why this test expects the Label to be set to the iface name when the Label was not programmed

&Addr{IPNet: address, Label: "lo", Scope: unix.RT_SCOPE_UNIVERSE, Flags: unix.IFA_F_PERMANENT},

That seems to be default behavior by the kernel if no label is set:
https://github.com/torvalds/linux/blob/a24588245776dafc227243a01bfbeb8a59bafba9/net/ipv4/devinet.c#L932

@aboch aboch merged commit 5a4ec4b into vishvananda:main Apr 9, 2025
3 of 4 checks passed
@julianwiedmann julianwiedmann deleted the addr-label branch April 10, 2025 10:05
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

Successfully merging this pull request may close these issues.

2 participants