From 329960bc1880c95b41b6d2c04293053b0e883f47 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 25 Apr 2013 15:46:39 -0400 Subject: [PATCH] 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). --- src/platform/nm-linux-platform.c | 4 ++++ src/platform/nm-platform.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index da8cf44e09..e7aab0b427 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -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")) diff --git a/src/platform/nm-platform.h b/src/platform/nm-platform.h index ee00256ebb..9df436d35a 100644 --- a/src/platform/nm-platform.h +++ b/src/platform/nm-platform.h @@ -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,