Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Apr 1998 06:10:03 +0200 (SAT)
From:      John Hay <jhay@mikom.csir.co.za>
To:        andreas@klemm.gtn.com (Andreas Klemm)
Cc:        current@FreeBSD.ORG
Subject:   Re: cmu-snmp 3.3.1 compile problems, current changed last recently ?
Message-ID:  <199804020410.GAA20760@zibbi.mikom.csir.co.za>
In-Reply-To: <19980401232229.42895@klemm.gtn.com> from Andreas Klemm at "Apr 1, 98 11:22:29 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> interfaces.c:1181: structure has no member named `ia_list'
> interfaces.c:1194: structure has no member named `if_list'
> 
> interfaces.c:
> [...]
> #if defined(netbsd1) || defined(freebsd3)
> #define ia_next ia_list.tqe_next
> 	^^^^^^^
> #define if_next if_list.tqe_next
> #endif
> [...]
>                 while (ia) {
>                     klookup((unsigned long)ia ,  (char *)&in_ifaddr,
> sizeof(in_ifaddr));
>                     if (in_ifaddr.ia_ifp == ifnetaddr) break;
>                     ia = in_ifaddr.ia_next;
> 				   ^^^^^^^
>                 }
> 
> Any idea how to fix this ?

Current didn't change. They somehow got the -current support wrong. This
should make it work.

John
-- 
John Hay -- John.Hay@mikom.csir.co.za


--- interfaces.c.orig	Wed Nov  5 23:56:58 1997
+++ interfaces.c	Thu Nov 27 18:26:48 1997
@@ -920,9 +920,14 @@
 
 #else
 
-#if defined(netbsd1) || defined(freebsd3)
+#if defined(netbsd1)
 #define ia_next ia_list.tqe_next
 #define if_next if_list.tqe_next
+#endif
+
+#if defined(freebsd3)
+#define ia_next ia_link.tqe_next
+#define if_next if_link.tqe_next
 #endif
 
 int Interface_Scan_Next(Index, Name, Retifnet, Retin_ifaddr)

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?199804020410.GAA20760>