chiark / gitweb /
@@ -1,3 +1,9 @@ branchpoint-2000-12-10-udptunnelconf
authorian <ian>
Sun, 10 Dec 2000 22:00:20 +0000 (22:00 +0000)
committerian <ian>
Sun, 10 Dec 2000 22:00:20 +0000 (22:00 +0000)
+userv-utils (0.2.1) unstable; urgency=low
+
+  * service.c (userv ipif) /32 prefixes work properly now.
+
+ --
+
 userv-utils (0.2.0) unstable; urgency=low

   Improvements to ipif (tunnelling/VPN facility):

changelog
debian/changelog
ipif/service.c

index 1ced79282101ff2b85d81a85c60279799a0c190f..b834e3d0e49684220ce8c0e55bb044f76febc869 100644 (file)
--- a/changelog
+++ b/changelog
@@ -1,3 +1,9 @@
+userv-utils (0.2.1) unstable; urgency=low
+
+  * service.c (userv ipif) /32 prefixes work properly now.
+
+ --
+
 userv-utils (0.2.0) unstable; urgency=low
 
   Improvements to ipif (tunnelling/VPN facility):
index 1ced79282101ff2b85d81a85c60279799a0c190f..b834e3d0e49684220ce8c0e55bb044f76febc869 100644 (file)
@@ -1,3 +1,9 @@
+userv-utils (0.2.1) unstable; urgency=low
+
+  * service.c (userv ipif) /32 prefixes work properly now.
+
+ --
+
 userv-utils (0.2.0) unstable; urgency=low
 
   Improvements to ipif (tunnelling/VPN facility):
index 397740cba8e4db12008d46c3e74aa4c40bb272f2..4137794797185fb69ed80b531726ebbe5466b9f6 100644 (file)
@@ -329,7 +329,7 @@ static void eat_prefixmask(const char **argp, const char *what,
   sprintf(whatbuf,"%s length",what);
   len= eat_number(argp,whatbuf, 0,32, endchars,endchar_r);
 
-  mask= (~0UL << (32-len));
+  mask= len ? (~0UL << (32-len)) : 0UL;
   if (prefix & ~mask) badusage("%s prefix %08lx not fully contained in mask %08lx",
                               what,prefix,mask);
   *prefix_r= prefix;