Lines Matching refs:lport
355 u_short lport = 0;
385 lport = sin->sin_port;
408 if (lport) {
412 if (ntohs(lport) < IPPORT_RESERVED && p &&
421 sin->sin_addr, lport, INPLOOKUP_WILDCARD);
446 in_pcb_conflict_post_msg(lport);
457 lport, wild);
478 in_pcb_conflict_post_msg(lport);
489 if (lport == 0) {
536 lport = htons(*lastport);
538 inp->inp_laddr, lport, wild));
555 lport = htons(*lastport);
557 inp->inp_laddr, lport, wild));
561 inp->inp_lport = lport;
1120 u_short lport = lport_arg;
1130 head = &pcbinfo->hashbase[INP_PCBHASH(INADDR_ANY, lport, 0, pcbinfo->hashmask)];
1138 inp->inp_lport == lport) {
1160 porthash = &pcbinfo->porthashbase[INP_PCBPORTHASH(lport,
1163 if (phd->phd_port == lport)
1217 u_short fport = fport_arg, lport = lport_arg;
1228 head = &pcbinfo->hashbase[INP_PCBHASH(faddr.s_addr, lport, fport, pcbinfo->hashmask)];
1237 inp->inp_lport == lport) {
1257 head = &pcbinfo->hashbase[INP_PCBHASH(INADDR_ANY, lport, 0, pcbinfo->hashmask)];
1264 inp->inp_lport == lport) {
1360 * Go through port list and look for a head for this lport.
1390 * changed. NOTE: This does not handle the case of the lport changing (the
1391 * hashed port list would have to be updated as well), so the lport must
1442 u_short *lport,
1456 if (*lport) {
1469 inp = in_pcblookup_hash(pcbinfo, faddr, fport, laddr, *lport, 0, NULL);
1487 pcb->inp_lport = *lport;
1520 sin.sin_port = *lport;
1602 *lport = pcb->inp_lport;
1633 in_pcb_letgo_port(struct inpcbinfo *pcbinfo, struct in_addr laddr, u_short lport,
1644 head = &pcbinfo->hashbase[INP_PCBHASH(faddr.s_addr, lport, fport, pcbinfo->hashmask)];
1649 inp->inp_lport == lport &&
1666 struct in_addr laddr, u_short lport,
1684 porthash = &pcbinfo->porthashbase[INP_PCBPORTHASH(lport,
1687 if (phd->phd_port == lport)
1713 laddr, lport, 1, NULL);