Convert IFT_BRIDGE and IFT_L2VLAN to ARPHRD_ETHER, and IFT_LOOP
to ARPHRD_LOOPBACK in linux netlink.
Also, add ARPHRD_SIT and convert IFT_STF to it.
Details
Details
test ip link show under linux compat:
root@ftsr1:/# ip link sh stf0 16: stf0: <> mtu 1280 qdisc noqueue state DOWN qlen 1000 link/sit root@ftsr1:/# ip link sh vlan0 15: vlan0@bridge0: <BROADCAST,MULTICAST> mtu 1496 qdisc noqueue state UNKNOWN qlen 1000 link/ether 58:9c:fc:10:8c:9b brd ff:ff:ff:ff:ff:ff root@ftsr1:/# ip link sh bridge0 12: bridge0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state UP qlen 1000 link/ether 58:9c:fc:10:8c:9b brd ff:ff:ff:ff:ff:ff
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Looks good to me, but while you're here, could we also map IFT_LOOP -> LINUX_ARPHRD_LOOPBACK so a Linux ip link show lo under the linuxulator does not look like FireWire? The constant already exists. Fine as a follow-up if you want to keep this patch to bridge/vlan/stf.