From: Ralf Baechle Date: Thu, 4 Apr 2019 10:21:54 +0000 (+0200) Subject: ip: display netrom link type X-Git-Tag: v5.1.0~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8391023680d0f0054a8894bb579220a7b9dffb0c;p=thirdparty%2Fiproute2.git ip: display netrom link type For a NETROM "ip link show dev nr0" will show 4: nr0: 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 Signed-off-by: Stephen Hemminger --- diff --git a/lib/ll_types.c b/lib/ll_types.c index bd8893ed3..32d04b5ab 100644 --- a/lib/ll_types.c +++ b/lib/ll_types.c @@ -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)