1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-17 15:27:36 +00:00

Set ifnet.baudrate for ethernet / FDDI interfaces too. Makes

SNMP slightly more informative

Reviewed by: Garrett Wollman
This commit is contained in:
Gary Palmer 1996-06-01 23:25:10 +00:00
parent 35da4f43ae
commit a330e1f1a5
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=16063
4 changed files with 9 additions and 4 deletions

View File

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

View File

@ -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) {

View File

@ -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) {

View File

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