Lines Matching refs:local_port
178 uint16_t local_port, in check_used_port() argument
197 contexts[i].local)->sin_port == local_port)) { in check_used_port()
342 if (ntohs(local_port) < lower || ntohs(local_port) > upper) { in check_used_port()
357 uint16_t local_port; in find_available_port() local
377 local_port = sys_rand16_get() | 0x8000; in find_available_port()
379 local_port = lower + sys_rand16_get() % (upper - lower); in find_available_port()
382 lower, upper, local_port); in find_available_port()
385 local_port = sys_rand16_get() | 0x8000; in find_available_port()
392 htons(local_port), in find_available_port()
402 return htons(local_port); in find_available_port()
410 uint16_t local_port, in net_context_port_in_use() argument
413 return check_used_port(NULL, NULL, proto, htons(local_port), in net_context_port_in_use()