Home
last modified time | relevance | path

Searched refs:net_unused (Results 1 – 1 of 1) sorted by relevance

/external/ltp/testcases/lib/
Dtst_net_vars.c223 char buf[128], net_unused[128]; in get_ipv4_net16_unused() local
228 sprintf(net_unused, "%d.%d", DEFAULT_IPV4_UNUSED_PART1, in get_ipv4_net16_unused()
230 sprintf(buf, "%s.0.0", net_unused); in get_ipv4_net16_unused()
235 return strdup(net_unused); in get_ipv4_net16_unused()
240 sprintf(net_unused, "%d.%d", DEFAULT_IPV4_UNUSED_PART1, in get_ipv4_net16_unused()
242 sprintf(buf, "%s.0.0", net_unused); in get_ipv4_net16_unused()
247 return strdup(net_unused); in get_ipv4_net16_unused()
250 sprintf(net_unused, "%d.%d", (rand() % 128) + (((ip->s_addr) & 0xff) in get_ipv4_net16_unused()
252 sprintf(buf, "%s.0.0", net_unused); in get_ipv4_net16_unused()
257 return strdup(net_unused); in get_ipv4_net16_unused()
[all …]