Take if_baudrate from the parent. This fixes problem with SNMP

daemons reporting zero speed for vlan(4) interfaces.
This commit is contained in:
Gleb Smirnoff 2005-11-28 12:46:35 +00:00
parent 1dd21062e5
commit 62f0bf3250
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=152882

View File

@ -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.