Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F165335777
D38715.id117719.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
776 B
Referenced Files
None
Subscribers
None
D38715.id117719.diff
View Options
diff --git a/sys/compat/linux/linux_netlink.c b/sys/compat/linux/linux_netlink.c
--- a/sys/compat/linux/linux_netlink.c
+++ b/sys/compat/linux/linux_netlink.c
@@ -227,6 +227,7 @@
static bool
nlmsg_copy_all_nla(struct nlmsghdr *hdr, int raw_hdrlen, struct nl_writer *nw)
{
+ char ifname[LINUX_IFNAMSIZ];
struct nlattr *nla;
int hdrlen = NETLINK_ALIGN(raw_hdrlen);
@@ -238,6 +239,15 @@
if (nla->nla_len < sizeof(struct nlattr)) {
return (false);
}
+ if (nla->nla_type == IFLA_IFNAME) {
+ if (ifname_bsd_to_linux_name((char *)(nla + 1), ifname,
+ sizeof(ifname)) <= 0)
+ return (false);
+ if (!nlattr_add_string(nw, IFLA_IFNAME, ifname))
+ return (false);
+ else
+ continue;
+ }
if (!nlmsg_copy_nla(nla, nw))
return (false);
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Aug 8, 5:19 PM (18 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36243656
Default Alt Text
D38715.id117719.diff (776 B)
Attached To
Mode
D38715: linux(4): Fixup the interface name translation in netlink
Attached
Detach File
Event Timeline
Log In to Comment