From ac95e5534969749c79b1d5476ff998e9169e1e9c Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 11 Apr 2006 13:29:38 +0000 Subject: 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 --- sys/net/if_vlan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys') 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); } -- cgit v1.2.3