diff options
author | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-09-01 00:50:50 +0000 |
---|---|---|
committer | Chris Cappuccio <chris@cvs.openbsd.org> | 2001-09-01 00:50:50 +0000 |
commit | d2ac7c98ad222dd2e8e58a0eae9d1b684d61abcf (patch) | |
tree | ee9eaa15bec1ff6797a86c880a907a4a391d81f3 | |
parent | 693600f2677cbd6e1c4522bbb651baac421b019b (diff) |
Inherit baudrate from parent. Now MRTG will show vlan interfaces ;)
-rw-r--r-- | sys/net/if_vlan.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index 53b1457c7b6..e4f065eb590 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_vlan.c,v 1.25 2001/08/03 23:21:19 chris Exp $ */ +/* $OpenBSD: if_vlan.c,v 1.26 2001/09/01 00:50:49 chris Exp $ */ /* * Copyright 1998 Massachusetts Institute of Technology * @@ -464,6 +464,12 @@ vlan_config(struct ifvlan *ifv, struct ifnet *p) ifv->ifv_if.if_type = p->if_type; /* + * Inherit baudrate from the parent. An SNMP agent would use this + * information. + */ + ifv->ifv_if.if_baudrate = p->if_baudrate; + + /* * If the parent interface can do hardware-assisted * VLAN encapsulation, then propagate its hardware- * assisted checksumming flags. |