Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

netlink: specs: add big-endian byte-order for u32 IPv4 addresses

The fix commit converted several IPv4 address attributes from binary
to u32, but forgot to specify byte-order: big-endian. Without this,
YNL tools display IPv4 addresses incorrectly due to host-endian
interpretation.

Add the missing byte-order: big-endian to all affected u32 IPv4
address fields to ensure correct parsing and display.

Fixes: 1064d521d177 ("netlink: specs: support ipv4-or-v6 for dual-stack fields")
Reported-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: Hangbin Liu <liuhangbin@gmail.com>
Reviewed-by: Asbjørn Sloth Tønnesen <ast@fiberby.net>
Link: https://patch.msgid.link/20251125112048.37631-1-liuhangbin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Hangbin Liu and committed by
Jakub Kicinski
651765e8 a8080c2f

+3
+1
Documentation/netlink/specs/rt-addr.yaml
··· 97 97 - 98 98 name: broadcast 99 99 type: u32 100 + byte-order: big-endian 100 101 display-hint: ipv4 101 102 - 102 103 name: anycast
+2
Documentation/netlink/specs/rt-link.yaml
··· 1869 1869 - 1870 1870 name: remote 1871 1871 type: u32 1872 + byte-order: big-endian 1872 1873 display-hint: ipv4 1873 1874 - 1874 1875 name: ttl ··· 1988 1987 - 1989 1988 name: 6rd-relay-prefix 1990 1989 type: u32 1990 + byte-order: big-endian 1991 1991 display-hint: ipv4 1992 1992 - 1993 1993 name: 6rd-prefixlen