]> git.proxmox.com Git - mirror_iproute2.git/commitdiff
ip: display netrom link type
authorRalf Baechle <ralf@linux-mips.org>
Thu, 4 Apr 2019 10:21:54 +0000 (12:21 +0200)
committerStephen Hemminger <stephen@networkplumber.org>
Thu, 11 Apr 2019 22:25:50 +0000 (15:25 -0700)
For a NETROM "ip link show dev nr0" will show

4: nr0: <NOARP,UP,LOWER_UP> mtu 236 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/generic 88:98:6a:a4:84:40:0a brd 00:00:00:00:00:00:00

But rather link/netrom is expected to be displayed.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/ll_types.c

index bd8893ed3a6aa0748bd24c8ff17fbb2900df542c..32d04b5ab9f9b43054120747ee95b29ed9f6c77e 100644 (file)
@@ -32,7 +32,7 @@ static const struct {
        int type;
        const char *name;
 } arphrd_names[] = {
-{ 0, "generic" },
+__PF(NETROM,netrom)
 __PF(ETHER,ether)
 __PF(EETHER,eether)
 __PF(AX25,ax25)