aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet/libalias/(developers-only)
diff options
context:
space:
mode:
authorPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-09-25 16:41:36 +0000
committerPouria Mousavizadeh Tehrani <pouria@FreeBSD.org>2026-09-25 17:05:36 +0000
commit287d60af18126ee0750fa2332896ede2b84a12dc (patch)
tree9758b746a590576e2fbd81935daa4861294c372c /sys/netinet/libalias/(developers-only)
parentcb035c19c3e76d547eb7d4bca1f1106b117c27a0 (diff)
compat/linux: Fix IFLA_IFNAME translation for multi-message netlinkHEADmain
nlmsg_translate_ifname_nla() always used nw->ifp for the name, which is fine for a single-message ifnet event, but an RTM_GETLINK dump holds one RTM_NEWLINK per interface and is translated with the ifp the writer had when the buffer was flushed. The root of the problem is that msgs_to_linux() takes a single ifp for a buffer that may contain messages about many interfaces. Use ifi_index to resolve the name instead. Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D59595
Diffstat (limited to 'sys/netinet/libalias/(developers-only)')
0 files changed, 0 insertions, 0 deletions