Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 1998 05:11:34 -0600
From:      Jacques Vidrine <nectar@nectar.com>
To:        andreas@FreeBSD.ORG, Gary Palmer <gpalmer@FreeBSD.ORG>, John Hay <jhay@mikom.csir.co.za>
Cc:        current@FreeBSD.ORG
Subject:   Re: could you please update ucd-snmp from 3.2 to 3.3.1 ?
Message-ID:  <19980402051134.32166@nectar.com>
In-Reply-To: <19980402080747.41080@klemm.gtn.com>; from Andreas Klemm on Thu, Apr 02, 1998 at 08:07:47AM %2B0200
References:  <19980401223236.52867@klemm.gtn.com> <13296.891470797@gjp.erols.com> <19980402080747.41080@klemm.gtn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <n@nectar.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19980402051134.32166>