6 -> ETHER_ADDR_LEN

This commit is contained in:
tsutsui 2000-09-28 10:56:57 +00:00
parent f4ef578da7
commit 710c43c745
4 changed files with 8 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: dp8390var.h,v 1.19 2000/05/29 17:37:12 jhawk Exp $ */
/* $NetBSD: dp8390var.h,v 1.20 2000/09/28 10:56:57 tsutsui Exp $ */
/*
* Device driver for National Semiconductor DS8390/WD83C690 based ethernet
@ -60,7 +60,7 @@ struct dp8390_softc {
u_short rec_page_stop; /* last page of RX ring-buffer */
u_short next_packet; /* pointer to next unread RX packet */
u_int8_t sc_enaddr[6]; /* storage for MAC address */
u_int8_t sc_enaddr[ETHER_ADDR_LEN]; /* storage for MAC address */
int sc_enabled; /* boolean; power enabled on interface */

View File

@ -1,4 +1,4 @@
/* $NetBSD: hmevar.h,v 1.5 2000/06/25 01:10:04 eeh Exp $ */
/* $NetBSD: hmevar.h,v 1.6 2000/09/28 10:56:57 tsutsui Exp $ */
/*-
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@ -95,7 +95,7 @@ struct hme_softc {
int sc_debug;
void *sc_sh; /* shutdownhook cookie */
u_int8_t sc_enaddr[6]; /* MAC address */
u_int8_t sc_enaddr[ETHER_ADDR_LEN]; /* MAC address */
/* Special hardware hooks */
void (*sc_hwreset) __P((struct hme_softc *));

View File

@ -1,4 +1,4 @@
/* $NetBSD: lancevar.h,v 1.2 1998/08/15 10:51:18 mycroft Exp $ */
/* $NetBSD: lancevar.h,v 1.3 2000/09/28 10:56:57 tsutsui Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@ -123,7 +123,7 @@ struct lance_softc {
#ifdef LEDEBUG
int sc_debug;
#endif
u_int8_t sc_enaddr[6];
u_int8_t sc_enaddr[ETHER_ADDR_LEN];
u_int8_t sc_pad[2];
#if NRND > 0
rndsource_element_t rnd_source;

View File

@ -1,4 +1,4 @@
/* $NetBSD: lemacvar.h,v 1.3 1998/05/14 18:24:00 matt Exp $ */
/* $NetBSD: lemacvar.h,v 1.4 2000/09/28 10:56:57 tsutsui Exp $ */
/*
* Copyright (c) 1997 Matt Thomas <matt@3am-software.com>
@ -76,7 +76,7 @@ typedef struct {
/*
* We rely on sc_enaddr being aligned on (at least) a 16 bit boundary
*/
unsigned char sc_enaddr[6]; /* current Ethernet address */
unsigned char sc_enaddr[ETHER_ADDR_LEN]; /* current Ethernet address */
char sc_prodname[LEMAC_EEP_PRDNMSZ+1]; /* product name DE20x-xx */
u_int8_t sc_eeprom[LEMAC_EEP_SIZE]; /* local copy eeprom */
#if NRND > 0