Searched refs:port_p (Results 1 – 2 of 2) sorted by relevance
79 sockaddr2p (const struct sockaddr *s, char *buf, size_t bufsiz, int *port_p) in sockaddr2p() argument97 if (port_p) in sockaddr2p()98 *port_p = -1; in sockaddr2p()103 if (port_p) in sockaddr2p()104 *port_p = port; in sockaddr2p()
1428 tcp_get_peer(int sock, unsigned int *inaddr_p, int *port_p) in tcp_get_peer() argument1441 if (port_p) in tcp_get_peer()1442 *port_p = ntohs(sin.sin_port); in tcp_get_peer()