[lldp-devel] [PATCH 5/9] add IFLA_AF_SPEC and IFLA_GROUP

Jens Osterkamp jens at linux.vnet.ibm.com
Mon Aug 15 15:19:25 UTC 2011


Signed-off-by: Jens Osterkamp <jens at linux.vnet.ibm.com>
---
 event_iface.c           |    6 ++++++
 include/linux/if_link.h |    2 ++
 2 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/event_iface.c b/event_iface.c
index e581bce..1288fae 100644
--- a/event_iface.c
+++ b/event_iface.c
@@ -174,6 +174,12 @@ static void event_if_decode_rta(int type, struct rtattr *rta, int *ls, char *d)
 	case IFLA_PORT_SELF:
 		LLDPAD_DBG(" IFLA_PORT_SELF\n");
 		break;
+	case IFLA_AF_SPEC:
+		LLDPAD_DBG(" IFLA_AF_SPEC\n");
+		break;
+	case IFLA_GROUP:
+		LLDPAD_DBG(" IFLA_GROUP\n");
+		break;
 	default:
 		LLDPAD_DBG(" unknown type : 0x%02x\n", type);
 		break;
diff --git a/include/linux/if_link.h b/include/linux/if_link.h
index 2fc66dd..4fdfd38 100644
--- a/include/linux/if_link.h
+++ b/include/linux/if_link.h
@@ -116,6 +116,8 @@ enum {
 	IFLA_STATS64,
 	IFLA_VF_PORTS,
 	IFLA_PORT_SELF,
+        IFLA_AF_SPEC,
+        IFLA_GROUP,             /* Group the device belongs to */
 	__IFLA_MAX
 };
 
-- 
1.7.4.4




More information about the lldp-devel mailing list