Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!allegra!mit-eddie!think!harvard!seismo!brl-tgr!tgr!tcs@usna.arpa From: tcs@usna.arpa (Terry Slattery) Newsgroups: net.unix-wizards Subject: if_ex.c multiple interface bug Message-ID: <887@brl-tgr.ARPA> Date: Thu, 19-Dec-85 14:28:25 EST Article-I.D.: brl-tgr.887 Posted: Thu Dec 19 14:28:25 1985 Date-Received: Sat, 21-Dec-85 04:40:34 EST Sender: news@brl-tgr.ARPA Lines: 31 Index: /sys/vaxif/if_ex.c Description: Systems with more than one Excelan model 204 ethernet interface would only correctly configure the first one. All others would report a configuration error at boot time. Fix: Apply the following fix so that the additional interfaces look at their copy of the softc structure. 92,93c92,93 < #define RVAL_OFF(n) ((u_long)(&(ex_softc[0].n)) - INCORE_BASE(&ex_softc[0])) < #define LVAL_OFF(n) ((u_long)(ex_softc[0].n) - INCORE_BASE(&ex_softc[0])) --- > #define RVAL_OFF(n) ((u_long)(&(ex_softc[unit].n)) - INCORE_BASE(&ex_softc[unit])) > #define LVAL_OFF(n) ((u_long)(ex_softc[unit].n) - INCORE_BASE(&ex_softc[unit])) 161c161 < --- > int unit = ui->ui_unit; /* needed by INCORE_SIZE macro */ 216a217 > ex_softc[unit].xs_if.if_flags &= ~IFF_RUNNING; 217a219 > printf(" [ex] "); /* done */ ---------------------------------------------------------- -tcs Terry Slattery U.S. Naval Academy 301-267-4413 ARPA: tcs@usna.arpa UUCP: decvax!brl-bmd!usna!tcs