mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 03:10:16 +01:00
platform: add arptype parameter to NMPlatformLink
This commit is contained in:
parent
5b2b62ff51
commit
3ce4431695
3 changed files with 5 additions and 0 deletions
|
|
@ -949,6 +949,7 @@ init_link (NMPlatform *platform, NMPlatformLink *info, struct rtnl_link *rtnllin
|
|||
info->master = rtnl_link_get_master (rtnllink);
|
||||
info->parent = rtnl_link_get_link (rtnllink);
|
||||
info->mtu = rtnl_link_get_mtu (rtnllink);
|
||||
info->arptype = rtnl_link_get_arptype (rtnllink);
|
||||
|
||||
if (info->type == NM_LINK_TYPE_VLAN)
|
||||
info->vlan_id = rtnl_link_vlan_get_id (rtnllink);
|
||||
|
|
|
|||
|
|
@ -2793,6 +2793,7 @@ nm_platform_link_cmp (const NMPlatformLink *a, const NMPlatformLink *b)
|
|||
_CMP_FIELD (a, b, arp);
|
||||
_CMP_FIELD (a, b, mtu);
|
||||
_CMP_FIELD_BOOL (a, b, initialized);
|
||||
_CMP_FIELD (a, b, arptype);
|
||||
_CMP_FIELD (a, b, addr.len);
|
||||
_CMP_FIELD (a, b, inet6_addr_gen_mode_inv);
|
||||
_CMP_FIELD_STR_INTERNED (a, b, kind);
|
||||
|
|
|
|||
|
|
@ -101,6 +101,9 @@ struct _NMPlatformLink {
|
|||
int master;
|
||||
int parent;
|
||||
|
||||
/* rtnl_link_get_arptype(), ifinfomsg.ifi_type. */
|
||||
guint32 arptype;
|
||||
|
||||
/* rtnl_link_get_addr() */
|
||||
struct {
|
||||
guint8 data[20]; /* NM_UTILS_HWADDR_LEN_MAX */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue