]> git.proxmox.com Git - mirror_iproute2.git/blobdiff - lib/inet_proto.c
ip: add a new parameter -Numeric
[mirror_iproute2.git] / lib / inet_proto.c
index 0836a4c96a0b486ef9e82f5a9d5eddcd27a23ae1..41e2e8b88d82b05a752e8b259b951371c0b85033 100644 (file)
@@ -32,7 +32,7 @@ const char *inet_proto_n2a(int proto, char *buf, int len)
                return ncache;
 
        pe = getprotobynumber(proto);
-       if (pe) {
+       if (pe && !numeric) {
                if (icache != -1)
                        free(ncache);
                icache = proto;