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 | |
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
-rw-r--r-- | sys/dev/fxp/if_fxp.c | 3 | ||||
-rw-r--r-- | sys/net/if_ethersubr.c | 4 | ||||
-rw-r--r-- | sys/net/if_fddisubr.c | 3 | ||||
-rw-r--r-- | sys/pci/if_fxp.c | 3 |
4 files changed, 9 insertions, 4 deletions
diff --git a/sys/dev/fxp/if_fxp.c b/sys/dev/fxp/if_fxp.c index 4cb07a2..fa64fca 100644 --- a/sys/dev/fxp/if_fxp.c +++ b/sys/dev/fxp/if_fxp.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_fxp.c,v 1.11 1996/02/06 18:51:24 wollman Exp $ + * $Id: if_fxp.c,v 1.12 1996/04/08 01:31:41 davidg Exp $ */ /* @@ -283,6 +283,7 @@ fxp_attach(config_id, unit) ifp->if_output = ether_output; ifp->if_start = fxp_start; ifp->if_watchdog = fxp_watchdog; + ifp->if_baudrate = 100000000; fxp_get_macaddr(sc); printf("fxp%d: Ethernet address %6D\n", unit, 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) { diff --git a/sys/net/if_fddisubr.c b/sys/net/if_fddisubr.c index 8a2c131..0d9ebab 100644 --- a/sys/net/if_fddisubr.c +++ b/sys/net/if_fddisubr.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * from: if_ethersubr.c,v 1.5 1994/12/13 22:31:45 wollman Exp - * $Id: if_fddisubr.c,v 1.6 1995/10/26 20:30:11 julian Exp $ + * $Id: if_fddisubr.c,v 1.7 1996/04/07 17:39:04 bde Exp $ */ #include <sys/param.h> @@ -569,6 +569,7 @@ fddi_ifattach(ifp) ifp->if_addrlen = 6; ifp->if_hdrlen = 21; ifp->if_mtu = FDDIMTU; + ifp->if_baudrate = 100000000; for (ifa = ifp->if_addrlist; ifa; ifa = ifa->ifa_next) if ((sdl = (struct sockaddr_dl *)ifa->ifa_addr) && sdl->sdl_family == AF_LINK) { diff --git a/sys/pci/if_fxp.c b/sys/pci/if_fxp.c index 4cb07a2..fa64fca 100644 --- a/sys/pci/if_fxp.c +++ b/sys/pci/if_fxp.c @@ -24,7 +24,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: if_fxp.c,v 1.11 1996/02/06 18:51:24 wollman Exp $ + * $Id: if_fxp.c,v 1.12 1996/04/08 01:31:41 davidg Exp $ */ /* @@ -283,6 +283,7 @@ fxp_attach(config_id, unit) ifp->if_output = ether_output; ifp->if_start = fxp_start; ifp->if_watchdog = fxp_watchdog; + ifp->if_baudrate = 100000000; fxp_get_macaddr(sc); printf("fxp%d: Ethernet address %6D\n", unit, |