Package: vzctl
Version: 3.0.30.2-4
Severity: important
Tags: upstream patch ipv6

Dear Maintainer,

ndsend which is contained in vzctl package comes with an important bug.
According to RFC4861 #4.4 && #4.6.1 when sending an unsolicited Neighbor
Advertisement one should be using option type 2 (Target Link-Layer
Address). ndsend on the other hand uses option type 1 (Source Link-Layer 
Address).
This makes RFC compliant devices not behaving according to what ndsend
is supposed to do, the packet is ignored.

The simple attached patch fixes the above issue for ndsend.

The patch applies to both stable (wheezy) and oldstable (squeeze) versions.

-- System Information:
Debian Release: 7.1 
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=el_GR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages vzctl depends on: 
ii  iproute  20120521-3+b3
ii  libc6    2.13-38
ii  vzquota  3.0.12-3

Versions of packages vzctl recommends:
ii  rsync  3.0.9-4

vzctl suggests no packages.
-- 
George Kargiotakis
--- a/src/ndsend.c	2013-08-08 14:49:14.000000000 +0300
+++ b/src/ndsend.c	2013-08-08 14:49:23.000000000 +0300
@@ -93,7 +93,7 @@
 	pkt->router = 0;
 	pkt->reserved = 0;
 	memcpy(&pkt->target, &src_ipaddr, 16);
-	pkt->otype = ND_OPT_SOURCE_LINKADDR;
+	pkt->otype = ND_OPT_TARGET_LINKADDR;
 	pkt->ospace = 1;
 	memcpy(&pkt->obits, real_hwaddr, 6);
 }

Reply via email to