From owner-freebsd-current Thu Apr 2 03:13:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA22557 for freebsd-current-outgoing; Thu, 2 Apr 1998 03:13:35 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cerebus.nectar.com (cerebus.nectar.com [204.27.67.90]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA22541; Thu, 2 Apr 1998 03:13:31 -0800 (PST) (envelope-from nectar@cerebus.nectar.com) Received: (from nectar@localhost) by cerebus.nectar.com (8.8.8/8.8.8) id FAA07819; Thu, 2 Apr 1998 05:11:35 -0600 (CST) Message-ID: <19980402051134.32166@nectar.com> Date: Thu, 2 Apr 1998 05:11:34 -0600 From: Jacques Vidrine To: andreas@FreeBSD.ORG, Gary Palmer , John Hay Cc: current@FreeBSD.ORG Subject: Re: could you please update ucd-snmp from 3.2 to 3.3.1 ? References: <19980401223236.52867@klemm.gtn.com> <13296.891470797@gjp.erols.com> <19980402080747.41080@klemm.gtn.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: <19980402080747.41080@klemm.gtn.com>; from Andreas Klemm on Thu, Apr 02, 1998 at 08:07:47AM +0200 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Try this: @@ -1068,17 +1072,37 @@ u_char *EtherAddr; { short i; -#if !(defined(linux) || defined(netbsd1) || defined(bsdi2)) - struct arpcom arpcom; -#else /* is linux or netbsd1 */ +#if (defined(linux)||defined(netbsd1)||defined(bsdi2)) struct arpcom { char ac_enaddr[6]; } arpcom; -#if defined(netbsd1) || defined(bsdi2) +#if (defined(netbsd1) || defined(bsdi2)) struct sockaddr_dl sadl; struct ifaddr ifaddr; u_long ifaddraddr; #endif +#elif (defined(freebsd2)||defined(freebsd3)) +/* From net/if_arp.h +/* + * Structure shared between the ethernet driver modules and + * the address resolution code. For example, each ec_softc or il_softc + * begins with this structure. + */ +struct arpcom { + /* + * The ifnet struct _must_ be at the head of this structure. + */ + struct ifnet ac_if; /* network-visible interface */ + u_char ac_enaddr[6]; /* ethernet hardware address */ + int ac_multicnt; /* length of ac_multiaddrs list */ +} arpcom; +#else + struct arpcom arpcom; +#endif +#if defined(netbsd1) || defined(bsdi2) + struct sockaddr_dl sadl; + struct ifaddr ifaddr; + u_long ifaddraddr; #endif bzero(arpcom.ac_enaddr, sizeof(arpcom.ac_enaddr)); On Thu, Apr 02, 1998 at 08:07:47AM +0200, Andreas Klemm wrote: > > Current didn't change. They somehow got the -current support wrong. This > > should make it work. > > > --- interfaces.c.orig Wed Nov 5 23:56:58 1997 > > +++ interfaces.c Thu Nov 27 18:26:48 1997 > > [snip] > > Thanks alot ... It doesn't apply cleanly, but that wasn't > a big problem. > > Only one problem remains: > > cd mibgroup; make > cc -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -pipe -O -Dfreebsd3 > -Dfreebsd2 -c system.c > cc -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -pipe -O -Dfreebsd3 > -Dfreebsd2 -c at.c > cc -I../.. -I./../.. -I./../../snmplib -I./.. -I.. -pipe -O -Dfreebsd3 > -Dfreebsd2 -c interfaces.c > interfaces.c: In function `Interface_Get_Ether_By_Index': > interfaces.c:1077: storage size of `arpcom' isn't known > *** Error code 1 > > Gary, am I allowed to update the port, if everything runs ? > > -- > Andreas Klemm http://www.FreeBSD.ORG/~andreas > powered by ,,symmetric multiprocessor FreeBSD'' > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message -- Jacques Vidrine To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message