Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F164712391
D58573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
766 B
Referenced Files
None
Subscribers
None
D58573.diff
View Options
diff --git a/sys/compat/linux/linux.h b/sys/compat/linux/linux.h
--- a/sys/compat/linux/linux.h
+++ b/sys/compat/linux/linux.h
@@ -83,6 +83,7 @@
#define LINUX_ARPHRD_ETHER 1
#define LINUX_ARPHRD_LOOPBACK 772
+#define LINUX_ARPHRD_SIT 776
/*
* Supported address families
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
@@ -363,8 +363,13 @@
/* Convert interface type */
switch (ifinfo->ifi_type) {
case IFT_ETHER:
+ case IFT_BRIDGE:
+ case IFT_L2VLAN:
ifinfo->ifi_type = LINUX_ARPHRD_ETHER;
break;
+ case IFT_STF:
+ ifinfo->ifi_type = LINUX_ARPHRD_SIT;
+ break;
}
ifinfo->ifi_flags = rtnl_if_flags_to_linux(ifinfo->ifi_flags);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 4, 7:37 AM (6 h, 11 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35951379
Default Alt Text
D58573.diff (766 B)
Attached To
Mode
D58573: linux: Add STF type and convert if_bridge and if_vlan to ARPHRD_ETHER
Attached
Detach File
Event Timeline
Log In to Comment