platform: remove redundant NMPlatformLink fields "arp" and "up"

This commit is contained in:
Thomas Haller
2015-05-25 11:16:21 +02:00
parent 051cf8bbde
commit 076fe578e3
6 changed files with 23 additions and 31 deletions

View File

@@ -913,9 +913,7 @@ _nmp_vt_cmd_plobj_init_from_nl_link (NMPlatform *platform, NMPlatformObject *_ob
obj->type = link_extract_type (platform, nlo, complete_from_cache, &kind);
obj->kind = g_intern_string (kind);
obj->flags = rtnl_link_get_flags (nlo);
obj->up = NM_FLAGS_HAS (obj->flags, IFF_UP);
obj->connected = NM_FLAGS_HAS (obj->flags, IFF_LOWER_UP);
obj->arp = !NM_FLAGS_HAS (obj->flags, IFF_NOARP);
obj->master = rtnl_link_get_master (nlo);
obj->parent = rtnl_link_get_link (nlo);
obj->mtu = rtnl_link_get_mtu (nlo);