mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-06 22:30:19 +01:00
platform: add support for ifb devices
(ifb devices have no device-type-specific properties, so they are fully handled by NMDeviceGeneric without needing their own subclass).
This commit is contained in:
parent
5875e17769
commit
329960bc18
2 changed files with 5 additions and 0 deletions
|
|
@ -269,6 +269,8 @@ type_to_string (NMLinkType type)
|
|||
switch (type) {
|
||||
case NM_LINK_TYPE_DUMMY:
|
||||
return "dummy";
|
||||
case NM_LINK_TYPE_IFB:
|
||||
return "ifb";
|
||||
case NM_LINK_TYPE_VETH:
|
||||
return "veth";
|
||||
case NM_LINK_TYPE_VLAN:
|
||||
|
|
@ -324,6 +326,8 @@ link_extract_type (struct rtnl_link *rtnllink, const char **out_name)
|
|||
return_type (NM_LINK_TYPE_INFINIBAND, "infiniband");
|
||||
else if (!strcmp (type, "dummy"))
|
||||
return_type (NM_LINK_TYPE_DUMMY, "dummy");
|
||||
else if (!strcmp (type, "ifb"))
|
||||
return_type (NM_LINK_TYPE_IFB, "ifb");
|
||||
else if (!strcmp (type, "veth"))
|
||||
return_type (NM_LINK_TYPE_VETH, "veth");
|
||||
else if (!strcmp (type, "vlan"))
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@ typedef enum {
|
|||
|
||||
/* Virtual types */
|
||||
NM_LINK_TYPE_DUMMY,
|
||||
NM_LINK_TYPE_IFB,
|
||||
NM_LINK_TYPE_LOOPBACK,
|
||||
NM_LINK_TYPE_VETH,
|
||||
NM_LINK_TYPE_VLAN,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue