Hi Rob,

In ifconfig.c, there is a glitch in function __get_addrinfo()__
when computing the prefix length, the max values should have been

AF_INET ===> 32
AF_INET6 ===> 128

@@ -88,7 +88,7 @@
   freeaddrinfo(result);

   len = -1;
-  if (slash) len = atolx_range(slash+1, 0, (af == AF_INET) ? 128 : 32);
+  if (slash) len = atolx_range(slash+1, 0, (af == AF_INET) ? 32 : 128);

   return len;


but it was other way around. Attached is the patch for the same.


regards,
Ashwini

PS:- The submissions for __modprobe__ and __getty__ are in the mail box
from long time, hope you will get to that soon.

Attachment: ifconfig.c.patch
Description: Binary data

_______________________________________________
Toybox mailing list
[email protected]
http://lists.landley.net/listinfo.cgi/toybox-landley.net

Reply via email to