GNOME Bugzilla – Bug 762538
[review] patch jk/device-types-bgo762538
Last modified: 2016-02-23 22:20:58 UTC
An old patch from Jirka. Orinally there was more. I rebased it and this what remains.
> device: add new NMDeviceType NM_DEVICE_TYPE_VETH I think this is right, veth devices should have their own type different from TYPE_ETHERNET. But then we should also do this: --- a/libnm/nm-device.c +++ b/libnm/nm-device.c @@ -341,6 +341,7 @@ static GType _nm_device_gtype_from_dtype (NMDeviceType dtype) { switch (dtype) { + case NM_DEVICE_TYPE_VETH: case NM_DEVICE_TYPE_ETHERNET: return NM_TYPE_DEVICE_ETHERNET; case NM_DEVICE_TYPE_WIFI: to handle the new type in libnm or, better, implement in libnm a NMDeviceVeth type.
Yeah, we'd have to do the gtype/dtype change too, otherwise we'd break backwards compat in the libraries. At some point we should just add NMDeviceVeth to libnm though too...
fixed && repushed. Added another commit.
(In reply to Thomas Haller from comment #3) > fixed && repushed. > > Added another commit. > libnm: add missing device types to get_type_name() + case NM_DEVICE_TYPE_TUN: + return _("TUN"); Maybe "Tun", since it's not an acronym? LGTM
merged to master: https://cgit.freedesktop.org/NetworkManager/NetworkManager/commit/?id=f41aebf8973a70a0e0f44d93c52ccecee5c1f25e