diff options
author | fenner <fenner@FreeBSD.org> | 2001-10-15 19:21:01 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 2001-10-15 19:21:01 +0000 |
commit | 36f55ce5ffa83905acd173119a921dcab8c16a08 (patch) | |
tree | 3445060f4cdca941f82afdebeca7160a472061c2 | |
parent | 7d69aa453630c63bba640d287d0781db518b5a53 (diff) | |
download | FreeBSD-src-36f55ce5ffa83905acd173119a921dcab8c16a08.zip FreeBSD-src-36f55ce5ffa83905acd173119a921dcab8c16a08.tar.gz |
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."
-rw-r--r-- | sys/net/if_vlan.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |