babeld: patch minor bug until next release
authorGabriel Kerneis <kerneis@pps.jussieu.fr>
Mon, 14 Mar 2011 13:47:25 +0000 (13:47 +0000)
committerGabriel Kerneis <kerneis@pps.jussieu.fr>
Mon, 14 Mar 2011 13:47:25 +0000 (13:47 +0000)
SVN-Revision: 26159

net/babel/Makefile
net/babel/patches/001-fix-local_notify_route.patch [new file with mode: 0644]

index db654e9faa8dfeeb6715ae7fb786e46b587c3e09..ca0483a78aad6d79e134af915030ccf86aff8752 100644 (file)
@@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=babeld
 PKG_VERSION:=1.1.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://www.pps.jussieu.fr/~jch/software/files/
diff --git a/net/babel/patches/001-fix-local_notify_route.patch b/net/babel/patches/001-fix-local_notify_route.patch
new file mode 100644 (file)
index 0000000..0a52c5e
--- /dev/null
@@ -0,0 +1,18 @@
+Sat Mar  5 19:13:54 CET 2011  Gabriel Kerneis <kerneis@pps.jussieu.fr>
+  * Fix unique id in local_notify_route
+diff -rN -u old-babeld/local.c new-babeld/local.c
+--- old-babeld/local.c 2011-03-14 14:37:03.000000000 +0100
++++ new-babeld/local.c 2011-03-14 14:37:03.000000000 +0100
+@@ -197,11 +197,10 @@
+         return;
+     rc = snprintf(buf, 512,
+-                  "%s route %s-%s-%lx prefix %s installed %s "
++                  "%s route %s-%lx prefix %s installed %s "
+                   "id %s metric %d refmetric %d via %s if %s\n",
+                   local_kind(kind),
+                   format_prefix(route->src->prefix, route->src->plen),
+-                  format_eui64(route->src->id),
+                   (unsigned long)route->neigh,
+                   format_prefix(route->src->prefix, route->src->plen),
+                   route->installed ? "yes" : "no",