Page MenuHomeFreeBSD

linux: Add STF type and convert if_bridge and if_vlan to ARPHRD_ETHER
Needs ReviewPublic

Authored by pouria on Fri, Jul 31, 2:31 PM.

Details

Reviewers
kib
glebius
Group Reviewers
network
emulation
Summary

Convert IFT_BRIDGE and IFT_L2VLAN to ARPHRD_ETHER in linux netlink.
Also, add ARPHRD_SIT and convert IFT_STF to it.

Test Plan

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

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 75315
Build 72198: arc lint + arc unit