From 36f55ce5ffa83905acd173119a921dcab8c16a08 Mon Sep 17 00:00:00 2001 From: fenner Date: Mon, 15 Oct 2001 19:21:01 +0000 Subject: Set the interface speed back to zero, after ether_ifattach() set it to 10Mbps. RFC 2863 says: "For a sub-layer which has no concept of bandwidth, [ifSpeed] should be zero." --- sys/net/if_vlan.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/net/if_vlan.c') diff --git a/sys/net/if_vlan.c b/sys/net/if_vlan.c index ce4fbf3..3098215 100644 --- a/sys/net/if_vlan.c +++ b/sys/net/if_vlan.c @@ -268,6 +268,7 @@ vlan_clone_create(struct if_clone *ifc, int *unit) ifp->if_snd.ifq_maxlen = ifqmaxlen; ether_ifattach(ifp, ETHER_BPF_SUPPORTED); /* Now undo some of the damage... */ + ifp->if_baudrate = 0; ifp->if_data.ifi_type = IFT_L2VLAN; ifp->if_data.ifi_hdrlen = EVL_ENCAPLEN; -- cgit v1.1