Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F171017125
D58573.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
838 B
Referenced Files
None
Subscribers
None
D58573.id.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
@@ -366,8 +366,16 @@
/* 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_LOOP:
+ ifinfo->ifi_type = LINUX_ARPHRD_LOOPBACK;
+ 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
Wed, Sep 9, 5:23 AM (18 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
38556574
Default Alt Text
D58573.id.diff (838 B)
Attached To
Mode
D58573: linux: Add STF type and convert some if_type to ARPHRD
Attached
Detach File
Event Timeline
Log In to Comment