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:
parent
b5393d9f78
commit
211f625a91
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user