Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Apr 1997 20:28:18 +0900
From:      Kenjiro Cho <kjc@csl.sony.co.jp>
To:        rsvp-test@ISI.EDU
Cc:        freebsd-hackers@FreeBSD.ORG, arl@arl.wustl.edu
Subject:   Re: ALTQ/CBQ alpha release 
Message-ID:  <199704161128.UAA21402@hotaka.csl.sony.co.jp>
In-Reply-To: Your message of "Thu, 27 Mar 1997 22:23:11 JST." <199703271323.WAA06023@hotaka.csl.sony.co.jp> 

next in thread | previous in thread | raw e-mail | index | archive | help

>> I am pleased to announce the first public alpha release of ALTQ/CBQ.
>> ALTQ is an alternate queueing framework for BSD Unix, currently built
>> on FreeBSD-2.2.1R.
>> We have ported SUN/UCL/LBL-CBQ onto this framework, which can be used
>> as a traffic control kernel for RSVP.

Quite a few people downloaded the release but a bug is found in the
RSVP stub in the release.  It turned out that rsvpd is not able to
create CBQ classes for reservations because of the initialization
order problem.

If you are using ALTQ/CBQ with RSVP, please apply the patch attached
below to "cbq-rsvp/tc_cbq.c" (symbolic linked to "cbq-tools/rsvp_cbq.c")
and re-make rsvpd.

The release version number reflected this fix moved to 0.2.1.

---
Kenjiro Cho
Sony Computer Science Laboratory Inc.

------------------------------------------------------------------
--- ../altq-0.2/cbq-rsvp/tc_cbq.c	Thu Mar 27 20:38:06 1997
+++ tc_cbq.c	Tue Apr 15 14:37:09 1997
@@ -171,6 +171,12 @@
 	if(cbq_init()) {
 		log(LOG_WARNING, 0, "Can't initialize CBQ.  Continuing without scheduling support\n", 0);
 	}
+
+#if !defined(sun)
+        for (i = 0; i < if_num; i++) 
+	        tc_clear(i);
+#endif
+
 	/* Initialize RSVP */
 	if (rsvp_config()) {
 		log(LOG_ERR, 0, 
@@ -179,16 +185,14 @@
 		exit(-1);
 	}
 
+#if defined(sun)
         /* clear old reservations from the kernel and then make a
 	 *	reservation for RSVP packets, on each interface.
 	 */
         for (i = 0; i < if_num; i++) {
-#if !defined(sun)
-	        tc_clear(i);
-#else
                 kern_rsvpresv(i);
-#endif
         }
+#endif
 }
 
 #ifndef CBQDAEMON
@@ -922,6 +926,7 @@
 		ifinfo->cd_class = new_cl;
 		new_cl->acinfo.type = admission_type;
 #if !defined(sun)
+		new_cl->acinfo.pri = pri;
 		new_cl->acinfo.bandwidth = bandwidth;
 #else
 		new_cl->acinfo.bandwidth =
------------------------------------------------------------------



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