From 25cfadb32af7e67babf1cd82deb808cb5d5bcce5 Mon Sep 17 00:00:00 2001 From: glebius Date: Mon, 12 Dec 2005 11:18:15 +0000 Subject: [PATCH] MFC 1.93: Take if_baudrate from the parent. This fixes problem with SNMP daemons reporting zero speed for vlan(4) interfaces. --- sys/net/if_vlan.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index cae330dc9777..ecf7f8b7a5cf 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -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.