> +static GHashTable *hash_pool;
> +static uint32_t last_block;
> +static uint32_t block_16_bits;
> +static uint32_t block_20_bits;
> +static uint32_t block_24_bits;
> +static uint32_t subnet_mask_24;


> +int __connman_ippool_init(void)
> +{
> +     DBG("");
> +
> +     /* We start at 254 by default to avoid common addresses */
> +     block_16_bits = ntohl(inet_addr("192.168.254.0"));
> +     block_20_bits = ntohl(inet_addr("172.16.0.0"));
> +     block_24_bits = ntohl(inet_addr("10.0.0.0"));
> +     subnet_mask_24 = ntohl(inet_addr("255.255.255.0"));

I would love to have it not evaluated at runtime, but don't know how to
do this. Any tips?

cheers,
daniel
_______________________________________________
connman mailing list
[email protected]
http://lists.connman.net/listinfo/connman

Reply via email to