Lines Matching refs:port
121 int port; /* host order */
129 port = rpc_getport(d, prog, vers);
130 if (port == -1)
133 d->destport = htons(port);
279 * dig out the IP address/port from the headers.
282 rpc_fromaddr(void *pkt, struct in_addr *addr, u_short *port)
289 u_int16_t uh_sport; /* source port */
290 u_int16_t uh_dport; /* destination port */
299 *port = hhdr->uh_sport;
312 int port; /* host order */
316 * return port number in host order, or -1.
331 return (pl->port);
342 * port .. host order.
345 rpc_pmap_putcache(struct in_addr addr, u_int prog, u_int vers, int port)
365 pl->port = port;
370 * Request a port number from the port mapper.
371 * Returns the port in host order.
381 n_long port; /* call port (unused) */
384 n_long port;
396 int port;
405 port = PMAPPORT;
410 port = rpc_pmap_getcache(d->destip, prog, vers);
411 if (port != -1)
418 args->port = 0;
428 port = (int)ntohl(res->port);
430 rpc_pmap_putcache(d->destip, prog, vers, port);
435 printf("%s: port=%u\n", __func__, port);
437 return (port);