platform: change @plen field of NMPlatformIPxRoute to type guint8

On netlink layer, this field is uint8_t/uchar.

A larger (signed) plen makes no sense. Adjust the signatures
to have only guint8.
This commit is contained in:
Thomas Haller
2016-04-06 14:19:05 +02:00
parent b1e3deaf2f
commit 14ee5dd2f8
18 changed files with 83 additions and 62 deletions

View File

@@ -312,7 +312,8 @@ lease_to_ip4_config (const char *iface,
continue;
route.network = a.s_addr;
if (sd_dhcp_route_get_destination_prefix_length (routes[i], &plen) < 0)
if ( sd_dhcp_route_get_destination_prefix_length (routes[i], &plen) < 0
|| plen > 32)
continue;
route.plen = plen;