platform: adjust type of IPv6 address flags to guint

Address flags inside 'struct ifaddrmsg' are uint8_t and they are
extended to uint32_t via IFA_FLAGS.

Change it to be guint32.
This commit is contained in:
Thomas Haller
2016-02-29 15:36:12 +01:00
parent 83d8a9e094
commit e18cdc10d3
9 changed files with 15 additions and 14 deletions

View File

@@ -1676,8 +1676,8 @@ _new_from_nl_addr (struct nlmsghdr *nlh, gboolean id_only)
if (!is_v4) {
obj->ip6_address.flags = tb[IFA_FLAGS]
? nla_get_u32 (tb[IFA_FLAGS])
: ifa->ifa_flags;
? nla_get_u32 (tb[IFA_FLAGS])
: ifa->ifa_flags;
}
if (is_v4) {
@@ -5214,7 +5214,7 @@ ip6_address_add (NMPlatform *platform,
struct in6_addr peer_addr,
guint32 lifetime,
guint32 preferred,
guint flags)
guint32 flags)
{
NMPObject obj_id;
nm_auto_nlmsg struct nl_msg *nlmsg = NULL;