]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - lib/utils.c
Merge branch 'iproute2-master' into iproute2-next
[mirror_iproute2.git] / lib / utils.c
index 63eadc4c1d408074d42a2644cdda1f9505edfd64..60d7eb14b4386fb624f5367a69dc18128dfbe658 100644 (file)
@@ -695,19 +695,6 @@ int get_prefix_1(inet_prefix *dst, char *arg, int family)
        char *slash;
        int err, bitlen, flags;
 
-       memset(dst, 0, sizeof(*dst));
-
-       if (strcmp(arg, "default") == 0 ||
-           strcmp(arg, "any") == 0 ||
-           strcmp(arg, "all") == 0) {
-               if ((family == AF_DECnet) || (family == AF_MPLS))
-                       return -1;
-               dst->family = family;
-               dst->bytelen = 0;
-               dst->bitlen = 0;
-               return 0;
-       }
-
        slash = strchr(arg, '/');
        if (slash)
                *slash = 0;