Package: iproute
Version: 20051007-2
Severity: normal
Tags: patch

Example:
  tc filter add dev eth2 parent 1:0 protocol ip prio 1 u32 ht 801: \
    classid 1:3 \
    sample ip protocol1 0xff match ip protocol 1 0xff
  Illegal "sample"

Problem caused by missing memset in f_u32.c.  See attached
patch.  Problem occurs in both sarge (iproute-20041019-3)
and unstable.  Problem is still in the latest (2006-01-10)
upstream source.

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.11-7-lube-686-smp
Locale: LANG=en_AU, LC_CTYPE=en_AU (charmap=ISO-8859-1)

Versions of packages iproute depends on:
ii  libatm1                     2.4.1-17     shared library for ATM (Asynchrono
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information
diff -Nur iproute-20051007.keep/debian/changelog iproute-20051007/debian/changelog
--- iproute-20051007.keep/debian/changelog	2006-01-12 17:10:02.000000000 +1000
+++ iproute-20051007/debian/changelog	2006-01-12 17:13:48.000000000 +1000
@@ -1,3 +1,11 @@
+iproute (20051007-2.1) experimental; urgency=low
+
+  * NMU
+  * Fix bug in parsing u32 "sample" phrase.
+    CLoses: #999999
+
+ -- Russell Stuart <[EMAIL PROTECTED]>  Thu, 12 Jan 2006 17:13:21 +1000
+
 iproute (20051007-2) experimental; urgency=low
 
   * Added flex to build-deps 
diff -Nur iproute-20051007.keep/tc/f_u32.c iproute-20051007/tc/f_u32.c
--- iproute-20051007.keep/tc/f_u32.c	2005-01-19 08:11:58.000000000 +1000
+++ iproute-20051007/tc/f_u32.c	2006-01-12 17:12:43.000000000 +1000
@@ -878,6 +878,7 @@
 				struct tc_u32_sel sel;
 				struct tc_u32_key keys[4];
 			} sel2;
+			memset(&sel2, 0, sizeof(sel2));
 			NEXT_ARG();
 			if (parse_selector(&argc, &argv, &sel2.sel, n)) {
 				fprintf(stderr, "Illegal \"sample\"\n");

Reply via email to