Subject: Re: netbsd-1-6 build failure
To: Martti Kuparinen <martti.kuparinen@iki.fi>
From: None <itojun@iijlab.net>
List: current-users
Date: 06/30/2003 16:36:34
>I can't compile the latest netbsd-1-6 :-(

	sorry.  i've sent a wrong pullup request.  this should fix the issue.

itojun


Index: igmp.c
===================================================================
RCS file: /cvsroot/src/sys/netinet/igmp.c,v
retrieving revision 1.28.4.1
diff -u -r1.28.4.1 igmp.c
--- igmp.c	2003/06/30 02:16:24	1.28.4.1
+++ igmp.c	2003/06/30 07:33:15
@@ -132,14 +132,17 @@
 rti_delete(ifp)
 	struct ifnet *ifp;
 {
-	struct router_info *rti;
+	struct router_info *rti, *next, **rtip;
 
-	LIST_FOREACH(rti, &rti_head, rti_link) {
+	rtip = &rti_head;
+	for (rti = *rtip; rti != 0; rti = next) {
+		next = rti->rti_next;
 		if (rti->rti_ifp == ifp) {
-			LIST_REMOVE(rti, rti_link);
-			pool_put(&igmp_rti_pool, rti);
+			*rtip = next;
+			free(rti, M_MRTABLE);
 			return;
-		}
+		} else
+			rtip = &rti->rti_next;
 	}
 }