Skip to content

net: use correct sizes for ipvlan mode & flags#118

Merged
Snaipe merged 1 commit intoaristanetworks:mainfrom
Snaipe:fix/netlink-ipvlan-invalid
Oct 28, 2025
Merged

net: use correct sizes for ipvlan mode & flags#118
Snaipe merged 1 commit intoaristanetworks:mainfrom
Snaipe:fix/netlink-ipvlan-invalid

Conversation

@Snaipe
Copy link
Member

@Snaipe Snaipe commented Oct 28, 2025

We were getting error messages like these in the kernel ring:

[  +0,646319] netlink: 'bst': attribute type 1 has an invalid length.
[  +0,000012] netlink: 'bst': attribute type 2 has an invalid length.

While benign (because the kernel still accepts the values and downcasts them), reading of the kernel code indicates that the ipvlan driver expects u16 instead of u32 for the mode and flags attributes, so this commit adjusts them to the right type.

We were getting error messages like these in the kernel ring:

    [  +0,646319] netlink: 'bst': attribute type 1 has an invalid length.
    [  +0,000012] netlink: 'bst': attribute type 2 has an invalid length.

While benign (because the kernel still accepts the values and downcasts
them), reading of the kernel code indicates that the ipvlan driver
expects u16 instead of u32 for the mode and flags attributes, so this
commit adjusts them to the right type.
@Snaipe Snaipe force-pushed the fix/netlink-ipvlan-invalid branch from 093fb34 to 093bf22 Compare October 28, 2025 18:27
@Snaipe Snaipe merged commit 713e22c into aristanetworks:main Oct 28, 2025
2 of 3 checks passed
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