/src/usr.sbin/rpcbind/ |
pmap_svc.c | 265 long lport; local in function:pmapproc_getport 322 lport = port; 323 if ((!svc_sendreply(xprt, (xdrproc_t) xdr_long, (caddr_t)&lport)) &&
|
/src/libexec/rshd/ |
rshd.c | 368 int lport = IPPORT_RESERVED - 1; local in function:doit 369 s = rresvport_af_addr(&lport, af, localp);
|
/src/sys/netinet/ |
in_pcb.c | 144 #define INPCBHASH_PORT(table, lport) \ 145 &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash] 146 #define INPCBHASH_BIND(table, laddr, lport) \ 148 ((ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_bindhash] 149 #define INPCBHASH_CONNECT(table, faddr, fport, laddr, lport) \ 152 (ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_connecthash] 276 in_port_t lport = 0; local in function:inpcb_set_port 303 error = portalgo_randport(&lport, inp, cred); 308 *lastport = lport; 309 lport = htons(lport) 775 in_port_t fport = fport_arg, lport = lport_arg; local in function:inpcb_notify 962 in_port_t lport = lport_arg; local in function:inpcb_lookup_local 1073 in_port_t fport = fport_arg, lport = lport_arg; local in function:inpcb_lookup 1123 in_port_t lport = lport_arg; local in function:inpcb_lookup_bound [all...] |
portalgo.c | 750 uint16_t lport; local in function:portalgo_randport 810 error = (*algos[algo].func)(algo, &lport, inp, cred); 812 *port = lport;
|
tcp_usrreq.c | 1415 struct in_addr laddr, u_int lport, 1422 inp = inpcb_lookup(&tcbtable, raddr, rport, laddr, lport, 0); 1450 struct in6_addr *laddr, u_int lport, 1457 inp = in6pcb_lookup(&tcbtable, raddr, rport, laddr, lport, 0, 0); 1523 u_int lport, rport; local in function:sysctl_net_inet_tcp_ident 1530 lport = (u_int)name[3]; 1533 error = inet4_ident_core(raddr, rport, laddr, lport,
|
tcp_vtw.h | 93 * searched by faddr, fport, laddr, lport. The key is a function of 224 uint16_t lport; member in struct:vtw_v4 234 uint16_t lport; member in struct:vtw_v6 320 v4_tag(uint32_t faddr, uint32_t fport, uint32_t laddr, uint32_t lport) 323 + ntohl(laddr) + ntohs(lport)); 328 const struct in6_addr *laddr, uint16_t lport) 331 return IN6_HASH(faddr, fport, laddr, lport); 338 v4_port_tag(uint16_t lport) 340 uint32_t tag = lport ^ (lport << 11) 378 uint16_t fport, lport; member in struct:vestigial_inpcb [all...] |
tcp_vtw.c | 210 * We allocate 2x as much, as we have two hashes: full and lport only. 529 tag = v4_tag(v4->faddr, v4->fport, v4->laddr, v4->lport); 531 tag = v6_tag(&v6->faddr, v6->fport, &v6->laddr, v6->lport); 610 tag = v4_port_tag(v4->lport); 612 tag = v6_port_tag(v6->lport); 718 v4->laddr, v4->lport); 726 , v4->laddr, v4->lport 730 tag = v4_port_tag(v4->lport); 734 , v4->lport, v4->lport 1031 uint16_t lport = it->port; local in function:vtw_next_port_v4 1145 uint16_t lport = it->port; local in function:vtw_next_port_v6 [all...] |
sctp_pcb.c | 242 uint16_t lport, rport; local in function:sctp_tcb_special_locate 254 lport = ((struct sockaddr_in *)to)->sin_port; 257 lport = ((struct sockaddr_in6 *)to)->sin6_port; 263 (lport + rport), sctppcbinfo.hashtcpmark)]; 274 if (lport != inp->sctp_lport) { 662 uint16_t lport) 689 (inp->sctp_lport == lport)) { 726 printf("Ok, there is NO bound-all available for port:%x\n", ntohs(lport)); 739 if (inp->sctp_lport != lport) { 833 int lport; local in function:sctp_pcb_findep 1492 uint16_t lport, rport; local in function:sctp_move_pcb_and_assoc 1619 uint16_t lport; local in function:sctp_inpcb_bind [all...] |
/src/lib/libc/net/ |
rcmd.c | 199 int s, lport, timo; local in function:resrcmd 218 for (timo = 1, lport = IPPORT_RESERVED - 1;;) { 219 s = rresvport_af(&lport, r->ai_family); 238 lport--; 275 lport--; 278 lport = 0; 281 int s2 = rresvport_af(&lport, r->ai_family), s3; 287 (void)snprintf(num, sizeof(num), "%d", lport); 313 lport = 0; 355 if (lport) [all...] |
/src/libexec/identd/ |
identd.c | 333 int lport, fport; local in function:idhandle 339 lport = fport = 0; 395 lport = atoi(p); 401 if (lport < 1 || lport > 65535 || fport < 1 || fport > 65535) { 403 lport, fport, gethost((struct sockaddr *)&ss[0])); 412 idparse(fd, lport, fport, charset, osname, idbuf); 420 satosin(&ss[1])->sin_port = htons(lport); 424 satosin6(&ss[1])->sin6_port = htons(lport); 442 nat_lport, fport, lport)) { [all...] |
/src/usr.sbin/traceroute6/ |
traceroute6.c | 367 u_long probe, hops, lport; local in function:main 436 lport = strtoul(optarg, &ep, 0); 439 if (lport == 0 || lport != (lport & 0xffff)) 441 port = lport & 0xffff;
|
/src/sys/netinet6/ |
in6_pcb.c | 112 #define IN6PCBHASH_PORT(table, lport) \ 113 &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash] 114 #define IN6PCBHASH_BIND(table, laddr, lport) \ 117 (laddr)->s6_addr32[2] ^ (laddr)->s6_addr32[3]) + ntohs(lport)) & \ 119 #define IN6PCBHASH_CONNECT(table, faddr, fport, laddr, lport) \ 125 ntohs(lport))) & (table)->inpt_bindhash] 609 in_port_t fport = fport_arg, lport = lport_arg; local in function:in6pcb_notify 637 lport = 0; 724 if (lport == 0 && fport == 0 && flowinfo && 732 (lport && inp->inp_lport != lport) | 839 in_port_t lport = lport_arg; local in function:in6pcb_lookup_local 1050 in_port_t fport = fport_arg, lport = lport_arg; local in function:in6pcb_lookup 1094 in_port_t lport = lport_arg; local in function:in6pcb_lookup_bound [all...] |
in6_src.c | 848 u_int16_t lport, *lastport; local in function:in6pcb_set_port 874 error = portalgo_randport(&lport, inp, l->l_cred); 879 *lastport = lport; 880 inp->inp_lport = htons(lport);
|
/src/usr.sbin/lpr/common_source/ |
common.c | 136 int s, lport = IPPORT_RESERVED - 1; local in function:getport 173 s = rresvport_af(&lport, r->ai_family); 183 lport--;
|