Lines Matching refs:lport

713 	u_short aux, first, last, lport;
778 lport = *lportp;
791 lport = htons(*lastport);
797 faddr, fport, laddr, lport, lookupflags,
804 faddr6, fport, laddr6, lport, lookupflags,
812 &inp->in6p_laddr, lport, lookupflags, cred);
817 laddr, lport, lookupflags, cred);
826 lport, lookupflags, cred);
831 *lportp = lport;
872 u_short lport = 0;
909 lport = sin->sin_port;
911 /* NB: lport is left as 0 if the port isn't being changed. */
942 if (lport) {
946 if (ntohs(lport) <= V_ipport_reservedhigh &&
947 ntohs(lport) >= V_ipport_reservedlow &&
953 lport, INPLOOKUP_WILDCARD, cred);
970 lport, lookupflags, cred);
986 lport = *lportp;
987 if (lport == 0) {
988 error = in_pcb_lport(inp, &laddr, &lport, cred, lookupflags);
993 *lportp = lport;
1007 u_short lport, fport;
1016 lport = inp->inp_lport;
1018 anonport = (lport == 0);
1019 error = in_pcbconnect_setup(inp, sin, &laddr, &lport, &faddr, &fport,
1029 inp->inp_lport = lport;
1038 inp->inp_lport = lport;
1279 u_short lport, fport;
1298 lport = *lportp;
1365 if (lport != 0) {
1367 fport, laddr, lport, 0, M_NODOM) != NULL)
1379 &lport, (struct sockaddr *)& fsin, fport, cred,
1385 *lportp = lport;
1918 u_short lport, int lookupflags, struct ucred *cred)
1938 head = &pcbinfo->ipi_hash_wild[INP_PCBHASH_WILD(lport,
1948 inp->inp_lport == lport) {
1971 porthash = &pcbinfo->ipi_porthashbase[INP_PCBPORTHASH(lport,
1974 if (phd->phd_port == lport)
2040 uint16_t lport, int domain)
2049 INP_PCBPORTHASH(lport, pcbinfo->ipi_lbgrouphashmask)];
2065 if (grp->il_lport != lport)
2106 return (grp->il_inp[INP_PCBLBGROUP_PKTHASH(faddr, lport, fport) %
2112 u_short fport, struct in_addr laddr, u_short lport)
2122 inp->inp_lport == lport)
2129 u_short fport, struct in_addr laddr, u_short lport)
2136 head = &pcbinfo->ipi_hash_exact[INP_PCBHASH(&faddr, lport, fport,
2139 if (in_pcblookup_exact_match(inp, faddr, fport, laddr, lport))
2153 u_short lport)
2160 if (inp->inp_faddr.s_addr != INADDR_ANY || inp->inp_lport != lport)
2173 u_short fport, struct in_addr laddr, u_short lport,
2182 head = &pcbinfo->ipi_hash_wild[INP_PCBHASH_WILD(lport,
2187 match = in_pcblookup_wild_match(inp, laddr, lport);
2192 match = in_pcblookup_wild_match(inp, laddr, lport);
2211 u_short fport, struct in_addr laddr, u_short lport)
2228 head = &pcbinfo->ipi_hash_wild[INP_PCBHASH_WILD(lport,
2238 match = in_pcblookup_wild_match(inp, laddr, lport);
2294 const u_short fport = fport_arg, lport = lport_arg;
2304 inp = in_pcblookup_hash_exact(pcbinfo, faddr, fport, laddr, lport);
2310 &laddr, lport, numa_domain);
2313 fport, laddr, lport);
2322 u_int fport, struct in_addr laddr, u_int lport, int lookupflags,
2332 inp = in_pcblookup_hash_locked(pcbinfo, faddr, fport, laddr, lport,
2354 const u_short fport = fport_arg, lport = lport_arg;
2362 inp = in_pcblookup_hash_exact(pcbinfo, faddr, fport, laddr, lport);
2370 faddr, fport, laddr, lport)))
2379 return (in_pcblookup_hash(pcbinfo, faddr, fport, laddr, lport,
2385 &laddr, lport, numa_domain);
2389 laddr, lport) != INPLOOKUP_MATCH_NONE))
2396 laddr, lport, lockflags);
2400 lport, lookupflags, numa_domain));
2416 struct in_addr laddr, u_int lport, int lookupflags,
2419 return (in_pcblookup_hash_smr(pcbinfo, faddr, fport, laddr, lport,
2425 u_int fport, struct in_addr laddr, u_int lport, int lookupflags,
2428 return (in_pcblookup_hash_smr(pcbinfo, faddr, fport, laddr, lport,
2597 * Go through port list and look for a head for this lport.
2689 * changed. NOTE: This does not handle the case of the lport changing (the
2690 * hashed port list would have to be updated as well), so the lport must