MFC 1.93:

Take if_baudrate from the parent. This fixes problem with SNMP
  daemons reporting zero speed for vlan(4) interfaces.
This commit is contained in:
glebius 2005-12-12 11:18:15 +00:00
parent 878f552269
commit 25cfadb32a

View File

@ -698,6 +698,7 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p)
ifv->ifv_p = p;
ifv->ifv_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.