From 18720dc21a8de3e5cff780f6b89111fe1d9b17a1 Mon Sep 17 00:00:00 2001 From: Ashwini Sharma Date: Wed, 2 Apr 2014 06:35:33 -0500 Subject: In ifconfig.c, there is a glitch in function get_addrinfo() when computing the prefix length. --- toys/other/ifconfig.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/other') diff --git a/toys/other/ifconfig.c b/toys/other/ifconfig.c index 2542d791..6dcda835 100644 --- a/toys/other/ifconfig.c +++ b/toys/other/ifconfig.c @@ -88,7 +88,7 @@ int get_addrinfo(char *host, sa_family_t af, void *addr) 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; } -- cgit v1.2.3