On 23.06.2015 14:48, Nicolas Dichtel wrote: >> E.g. virtual CAN interfaces (vcan.c) now print this @NONE and they never have >> a (physical?) link. So you probably have to deal with different virtual >> interfaces anyway, right? > Yes, with the current code, all virtual interfaces (that define a > rtnl_link_ops) will have this "@SOMETHING" because IFLA_LINK is now set to 0.
Just for the records: Virtual and real CAN network interfaces (the stuff in drivers/net/can) also have @NONE displayed in their name: # ip link show (..) 6: vcan0@NONE: <NOARP,UP,LOWER_UP> mtu 72 qdisc noqueue state UNKNOWN mode DEFAULT group default link/can (..) 8: can0@NONE: <NOARP,UP,LOWER_UP,ECHO> mtu 16 qdisc pfifo_fast state UNKNOWN mode DEFAULT group default qlen 10 link/can (..) So at least your distinction real/virtual networking interfaces doesn't match for all kind of interfaces. Regards, Oliver -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html