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."
This commit is contained in:
Bill Fenner 2001-10-15 19:21:01 +00:00
parent b5393d9f78
commit 211f625a91

View File

@ -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;