summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-04-11 13:29:38 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-04-11 13:29:38 +0000
commitac95e5534969749c79b1d5476ff998e9169e1e9c (patch)
tree2611bc2ae73d7e829d0e100c86eea2834fcb9550
parent20a8791f196e49281c50dd51226525bf55fae48e (diff)
on link state changes, copy baudrate (negotiated link speed) from parent
device. previously this was only done at config time, so vlan if's baudrate could easily get out of sync with parent's. ok camield brad
-rw-r--r--sys/net/if_vlan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c
index 739dcbef0c2..1fdd7af54bb 100644
--- a/sys/net/if_vlan.c
+++ b/sys/net/if_vlan.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vlan.c,v 1.65 2006/03/25 22:41:48 djm Exp $ */
+/* $OpenBSD: if_vlan.c,v 1.66 2006/04/11 13:29:37 henning Exp $ */
/*
* Copyright 1998 Massachusetts Institute of Technology
@@ -474,6 +474,7 @@ vlan_vlandev_state(void *v)
return;
ifv->ifv_if.if_link_state = ifv->ifv_p->if_link_state;
+ ifv->ifv_if.if_baudrate = ifv->ifv_p->if_baudrate;
if_link_state_change(&ifv->ifv_if);
}