Lines Matching refs:prt
183 static void set_port(int family, int prt, struct sockaddr *addr) in set_port() argument
187 ((struct sockaddr_in *)addr)->sin_port = htons(prt); in set_port()
191 ((struct sockaddr_in6 *)addr)->sin6_port = htons(prt); in set_port()
273 unsigned int prt; in convert_un_in() local
280 if (sscanf(p, SOCKET_FORMAT, &type, &iface, &prt) != 3) { in convert_un_in()
290 if (prt > 0xFFFF) { in convert_un_in()
308 in2->sin_port = htons(prt); in convert_un_in()
326 in2->sin6_port = htons(prt); in convert_un_in()
344 unsigned int prt; in convert_in_un_remote() local
370 prt = ntohs(in->sin_port); in convert_in_un_remote()
409 prt = ntohs(in->sin6_port); in convert_in_un_remote()
420 if (prt == 0) { in convert_in_un_remote()
433 socket_wrapper_dir(), type, iface, prt); in convert_in_un_remote()
442 unsigned int prt; in convert_in_un_alloc() local
459 prt = ntohs(in->sin_port); in convert_in_un_alloc()
516 prt = ntohs(in->sin6_port); in convert_in_un_alloc()
530 if (prt == 0) { in convert_in_un_alloc()
532 for (prt = 5001; prt < 10000; prt++) { in convert_in_un_alloc()
534 socket_wrapper_dir(), type, iface, prt); in convert_in_un_alloc()
537 set_port(si->family, prt, si->myname); in convert_in_un_alloc()
542 socket_wrapper_dir(), type, iface, prt); in convert_in_un_alloc()
1693 unsigned int prt = ntohs(((const struct sockaddr_in *)to)->sin_port); in swrap_sendto() local
1700 socket_wrapper_dir(), type, iface, prt); in swrap_sendto()