chiark / gitweb /
sd-rtnl: types - hook up bond types
authorTom Gundersen <teg@jklm.no>
Sat, 29 Mar 2014 22:53:03 +0000 (23:53 +0100)
committerTom Gundersen <teg@jklm.no>
Sat, 29 Mar 2014 22:53:03 +0000 (23:53 +0100)
Reported by Thomas Hindoe Paaboel Andersen <phomes@gmail.com>

src/libsystemd/sd-rtnl/rtnl-types.c

index 936073e49c01f2a194294a8d5cc37e555588013c..29ee5bc1c8ed30c6f98758553d989908bbd63835 100644 (file)
@@ -122,6 +122,8 @@ static const char* const nl_union_link_info_data_table[_NL_UNION_LINK_INFO_DATA_
 DEFINE_STRING_TABLE_LOOKUP(nl_union_link_info_data, NLUnionLinkInfoData);
 
 static const NLTypeSystem rtnl_link_info_data_type_systems[_NL_UNION_LINK_INFO_DATA_MAX] = {
+        [NL_UNION_LINK_INFO_DATA_BOND] =    { .max = ELEMENTSOF(rtnl_link_info_data_bond_types) - 1,
+                                              .types = rtnl_link_info_data_bond_types },
         [NL_UNION_LINK_INFO_DATA_BRIDGE] =  { .max = ELEMENTSOF(rtnl_link_info_data_bridge_types) - 1,
                                               .types = rtnl_link_info_data_bridge_types },
         [NL_UNION_LINK_INFO_DATA_VLAN] =    { .max = ELEMENTSOF(rtnl_link_info_data_vlan_types) - 1,