diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-06-01 23:25:10 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-06-01 23:25:10 +0000 |
commit | fa983af07a89f74ca5a05b457f82c93d0f8eb20e (patch) | |
tree | a7abe4359f621f480b6b41260e4482daf2915342 /sys/net/if_ethersubr.c | |
parent | 7957d43260140404440145333ed93bd40f3852dc (diff) | |
download | FreeBSD-src-fa983af07a89f74ca5a05b457f82c93d0f8eb20e.zip FreeBSD-src-fa983af07a89f74ca5a05b457f82c93d0f8eb20e.tar.gz |
Set ifnet.baudrate for ethernet / FDDI interfaces too. Makes
SNMP slightly more informative
Reviewed by: Garrett Wollman
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r-- | sys/net/if_ethersubr.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 97903ef..1c9ddb8 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)if_ethersubr.c 8.1 (Berkeley) 6/10/93 - * $Id: if_ethersubr.c,v 1.15 1996/04/07 17:39:03 bde Exp $ + * $Id: if_ethersubr.c,v 1.16 1996/05/24 01:35:08 julian Exp $ */ #include <sys/param.h> @@ -590,6 +590,8 @@ ether_ifattach(ifp) ifp->if_addrlen = 6; ifp->if_hdrlen = 14; ifp->if_mtu = ETHERMTU; + if (ifp->if_baudrate == 0) + ifp->if_baudrate = 10000000; for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && sdl->sdl_family == AF_LINK) { |