Take if_baudrate from the parent. This fixes problem with SNMP
daemons reporting zero speed for vlan(4) interfaces.
This commit is contained in:
parent
1dd21062e5
commit
62f0bf3250
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152882
@ -708,6 +708,7 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p)
|
||||
ifv->ifv_p = p;
|
||||
ifp = ifv->ifv_ifp;
|
||||
ifp->if_mtu = p->if_mtu - ifv->ifv_mtufudge;
|
||||
ifv->ifv_ifp->if_baudrate = p->if_baudrate;
|
||||
/*
|
||||
* Copy only a selected subset of flags from the parent.
|
||||
* Other flags are none of our business.
|
||||
|
Loading…
Reference in New Issue
Block a user