diff mbox

iproute2: replace linktype number by name for tunnels

Message ID alpine.LSU.2.00.0902241129210.329@fbirervta.pbzchgretzou.qr
State Not Applicable, archived
Delegated to: David Miller
Headers show

Commit Message

Jan Engelhardt Feb. 24, 2009, 10:31 a.m. UTC
ip link currently only shows [65534] for TUN-style tunnels, but 65534 
actually maps to a name.

$ ip l
6: tun1: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN qlen 500
    link/[65534] 

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>

---
 lib/ll_types.c |    3 +++
 1 file changed, 3 insertions(+)


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: iproute2-2.6.23/lib/ll_types.c
===================================================================
--- iproute2-2.6.23.orig/lib/ll_types.c
+++ iproute2-2.6.23/lib/ll_types.c
@@ -124,6 +124,9 @@  __PF(IEEE80211_PRISM,ieee802.11/prism)
 #ifdef ARPHRD_IEEE80211_RADIOTAP
 __PF(IEEE80211_RADIOTAP,ieee802.11/radiotap)
 #endif
+#ifdef ARPHRD_NONE
+__PF(NONE, none)
+#endif
 #ifdef ARPHRD_VOID
 __PF(VOID,void)
 #endif