platform: fix type_name of unknown devices

The whole point of having type_name separate from type was so that
unknown devices could still have known device types. But I wrote it
wrong and then didn't notice until explicitly vxlan support got
removed and vxlans started showing up as "unknown".
This commit is contained in:
Dan Winship 2013-06-07 11:05:06 -03:00
parent ea3a748cbc
commit 8a93c83161

View file

@ -481,7 +481,7 @@ link_extract_type (NMPlatform *platform, struct rtnl_link *rtnllink, const char
else if (!strcmp (type, "team"))
return_type (NM_LINK_TYPE_TEAM, "team");
return_type (NM_LINK_TYPE_UNKNOWN, "unknown");
return_type (NM_LINK_TYPE_UNKNOWN, type);
}
static const char *