mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-26 02:19:26 +01:00
netconfig: Use uint32_t len instead of int
This commit is contained in:
parent
18119537f7
commit
d8c058f25f
@ -142,7 +142,8 @@ static struct netconfig_ifaddr *netconfig_ifaddr_find(
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void netconfig_ifaddr_added(struct netconfig *netconfig,
|
static void netconfig_ifaddr_added(struct netconfig *netconfig,
|
||||||
const struct ifaddrmsg *ifa, int bytes)
|
const struct ifaddrmsg *ifa,
|
||||||
|
uint32_t len)
|
||||||
{
|
{
|
||||||
struct netconfig_ifaddr *ifaddr;
|
struct netconfig_ifaddr *ifaddr;
|
||||||
char *label;
|
char *label;
|
||||||
@ -151,7 +152,7 @@ static void netconfig_ifaddr_added(struct netconfig *netconfig,
|
|||||||
ifaddr->family = ifa->ifa_family;
|
ifaddr->family = ifa->ifa_family;
|
||||||
ifaddr->prefix_len = ifa->ifa_prefixlen;
|
ifaddr->prefix_len = ifa->ifa_prefixlen;
|
||||||
|
|
||||||
rtnl_ifaddr_extract(ifa, bytes, &label, &ifaddr->ip,
|
rtnl_ifaddr_extract(ifa, len, &label, &ifaddr->ip,
|
||||||
&ifaddr->broadcast);
|
&ifaddr->broadcast);
|
||||||
|
|
||||||
l_debug("%s: ifaddr %s/%u broadcast %s", label, ifaddr->ip,
|
l_debug("%s: ifaddr %s/%u broadcast %s", label, ifaddr->ip,
|
||||||
@ -162,12 +163,13 @@ static void netconfig_ifaddr_added(struct netconfig *netconfig,
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void netconfig_ifaddr_deleted(struct netconfig *netconfig,
|
static void netconfig_ifaddr_deleted(struct netconfig *netconfig,
|
||||||
const struct ifaddrmsg *ifa, int bytes)
|
const struct ifaddrmsg *ifa,
|
||||||
|
uint32_t len)
|
||||||
{
|
{
|
||||||
struct netconfig_ifaddr *ifaddr;
|
struct netconfig_ifaddr *ifaddr;
|
||||||
char *ip;
|
char *ip;
|
||||||
|
|
||||||
rtnl_ifaddr_extract(ifa, bytes, NULL, &ip, NULL);
|
rtnl_ifaddr_extract(ifa, len, NULL, &ip, NULL);
|
||||||
|
|
||||||
ifaddr = netconfig_ifaddr_find(netconfig, ifa->ifa_family,
|
ifaddr = netconfig_ifaddr_find(netconfig, ifa->ifa_family,
|
||||||
ifa->ifa_prefixlen, ip);
|
ifa->ifa_prefixlen, ip);
|
||||||
|
Loading…
Reference in New Issue
Block a user