From owner-freebsd-bugs Wed May 19 21:18:18 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from may.nue.org (may.nue.org [163.138.156.31]) by hub.freebsd.org (Postfix) with ESMTP id 99CC514D1A for ; Wed, 19 May 1999 21:18:15 -0700 (PDT) (envelope-from amagai@nue.org) Received: by may.nue.org (8.9.3/nue.mxn1); Thu, 20 May 1999 13:18:15 +0900 (JST) <199905200418.NAA10350@may.nue.org> from Date: Thu, 20 May 1999 13:18:15 +0900 (JST) Message-Id: <199905200418.NAA10350@may.nue.org> To: freebsd-bugs@FreeBSD.org From: amagai@nue.org Subject: Re: pending/11754: tx driver, SIOCGIFADDR ioctl does not work Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org My pr 11754 was not accepted by gnats, what's happened... By the way, SIOCGIFADDR ioctl does not work on tx (SMC chip) network driver. The SIOCGIFADDR ioctl [src/pci/if_tx.c, epic_ifioctl] invokes ether_ioctl() [src/net/if_ethersubr.c]. Here, MAC address is copied out, as follows. bcopy(((struct arpcom *)ifp->if_softc)->ac_enaddr, (caddr_t) sa->sa_data, ETHER_ADDR_LEN); So, "struct arpcom arpcom" must be a first element of softc structure. /* $OpenBSD: if_txvar.h,v 1.3 1998/10/10 04:30:09 jason Exp $ */ /* $Id: if_txvar.h,v 1.1.4.1 1999/04/23 05:47:53 semenu Exp $ */ ================================================================ --- if_txvar.h' Tue May 18 15:40:12 1999 +++ if_txvar.h Tue May 18 15:41:15 1999 @@ -329,6 +329,7 @@ bus_space_tag_t sc_st; bus_space_handle_t sc_sh; #else /* __FreeBSD__ */ + struct arpcom arpcom; #if defined(EPIC_USEIOSPACE) u_int32_t iobase; #else @@ -338,7 +339,6 @@ #if !defined(EPIC_NOIFMEDIA) struct ifmedia ifmedia; #endif - struct arpcom arpcom; u_int32_t unit; struct epic_rx_buffer rx_buffer[RX_RING_SIZE]; struct epic_tx_buffer tx_buffer[TX_RING_SIZE]; ================================================================ Amagai Yoshiji NUE: New Unified Environment Research Project. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message