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
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 c37ce585f54335bfe5bbb3cd177e11467e86f937..140a7c879a94ad4a516d26064ac309f40caed391 100644 (file)
  * along with userv-utils; if not, write to the Free Software
  * Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  *
- * $Id: service.c,v 1.13 2000/09/18 00:31:11 ian Exp $
+ * $Id: service.c,v 1.14 2000/12/10 22:00:21 ian Exp $
  */
 
 #include <stdio.h>
@@ -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;