Subject: Re: altq problems (fwd)
To: Matt Bell <mtbell@micropede.com>
From: None <itojun@iijlab.net>
List: current-users
Date: 08/23/2001 09:54:47
>I have a netbsd current (1.5X) i386 box and am trying to get altq working
>on it. I start by adding the ALTQ options to the kernel like so:
>I then try to build this kernel and get this error:
>cc  -O2 -Werror -Wall -Wmissing-prototypes -Wstrict-prototypes
>-Wpointer-arith -Wno-uninitialized -Wno-main -I. -I../../../../arch
>-I../../../.. -nostdinc -DLKM -DIPSEC_DEBUG -DMAXUSERS=32 -D_KERNEL
>-D_KERNEL_OPT -Di386  -c ../../../../net/if_spppsubr.c
>../../../../net/if_spppsubr.c: In function `sppp_flush':
>../../../../net/if_spppsubr.c:1022: structure has no member named
>`altq_flags'
>Can anyone tell me what I am doing wrong?

	this should correct the issue (will be in the tree).

itojun


Index: if_spppsubr.c
===================================================================
RCS file: /cvsroot/syssrc/sys/net/if_spppsubr.c,v
retrieving revision 1.25
diff -u -r1.25 if_spppsubr.c
--- if_spppsubr.c	2001/07/18 16:43:09	1.25
+++ if_spppsubr.c	2001/08/23 00:54:52
@@ -1019,8 +1019,8 @@
 	struct sppp *sp = (struct sppp*) ifp;
 
 	IFQ_PURGE (&sp->pp_if.if_snd);
-	IFQ_PURGE (&sp->pp_fastq);
-	IFQ_PURGE (&sp->pp_cpq);
+	IF_PURGE (&sp->pp_fastq);
+	IF_PURGE (&sp->pp_cpq);
 }
 
 /*
@@ -1230,7 +1230,7 @@
 				sp->pp_loopcnt = 0;
 				if (ifp->if_flags & IFF_UP) {
 					if_down (ifp);
-					IFQ_PURGE (&sp->pp_cpq);
+					IF_PURGE (&sp->pp_cpq);
 				}
 			}
 			++sp->pp_loopcnt;
@@ -1739,7 +1739,7 @@
 			/* Line loopback mode detected. */
 			printf(SPP_FMT "loopback\n", SPP_ARGS(ifp));
 			if_down (ifp);
-			IFQ_PURGE (&sp->pp_cpq);
+			IF_PURGE (&sp->pp_cpq);
 
 			/* Shut down the PPP link. */
 			/* XXX */
@@ -2289,7 +2289,7 @@
 				sp->pp_loopcnt = 0;
 				if (ifp->if_flags & IFF_UP) {
 					if_down(ifp);
-					IFQ_PURGE(&sp->pp_cpq);
+					IF_PURGE(&sp->pp_cpq);
 					/* XXX ? */
 					lcp.Down(sp);
 					lcp.Up(sp);
@@ -4670,7 +4670,7 @@
 			/* No keepalive packets got.  Stop the interface. */
 			printf (SPP_FMT "down\n", SPP_ARGS(ifp));
 			if_down (ifp);
-			IFQ_PURGE (&sp->pp_cpq);
+			IF_PURGE (&sp->pp_cpq);
 			if (! (sp->pp_flags & PP_CISCO)) {
 				/* XXX */
 				/* Shut down the PPP link. */