Lines Matching refs:port
54 uint16_t port;
58 err = usnic_transport_sock_get_addr(sock, &proto, &addr, &port);
63 proto, &addr, port);
67 * reserve a port number. if "0" specified, we will try to pick one
83 usnic_err("Failed to allocate port for %s\n",
91 usnic_err("Failed to allocate port - transport %s unsupported\n",
96 usnic_dbg("Allocating port %hu for %s\n", port_num,
109 usnic_err("Unreserved unvalid port num 0 for %s\n",
121 usnic_dbg("Freeing port %hu for %s\n", port_num,
126 usnic_err("Freeing invalid port %hu for %d\n", port_num, type);
160 uint32_t *addr, uint16_t *port)
177 if (port)
178 *port = ntohs(((struct sockaddr_in *)&sock_addr)->sin_port);