ether_addr
static int bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[]);
bge_get_eaddr_fw(struct bge_softc *sc, uint8_t ether_addr[])
bge_get_eaddr_mem(struct bge_softc *sc, uint8_t ether_addr[])
ether_addr[0] = (uint8_t)(mac_addr >> 8);
ether_addr[1] = (uint8_t)mac_addr;
ether_addr[2] = (uint8_t)(mac_addr >> 24);
ether_addr[3] = (uint8_t)(mac_addr >> 16);
ether_addr[4] = (uint8_t)(mac_addr >> 8);
ether_addr[5] = (uint8_t)mac_addr;
bge_get_eaddr_nvram(struct bge_softc *sc, uint8_t ether_addr[])
return (bge_read_nvram(sc, ether_addr, mac_offset + 2,
bge_get_eaddr_eeprom(struct bge_softc *sc, uint8_t ether_addr[])
return (bge_read_eeprom(sc, ether_addr, BGE_EE_MAC_OFFSET + 2,
(struct ether_addr *)hw->mac.addr);
ether_gen_addr(ifp, (struct ether_addr *)eaddr);
struct ether_addr ifc_mac;
struct ether_addr *ether_aton(const char *);
struct ether_addr *ether_aton_r(const char *, struct ether_addr *);
int ether_hostton(const char *, struct ether_addr *);
int ether_line(const char *, struct ether_addr *, char *);
char *ether_ntoa(const struct ether_addr *);
char *ether_ntoa_r(const struct ether_addr *, char *);
int ether_ntohost(char *, const struct ether_addr *);
CTASSERT(sizeof (struct ether_addr) == ETHER_ADDR_LEN);
(struct ether_addr *)ni->ni_macaddr, 0);
(struct ether_addr *)ni->ni_macaddr, 1);