Lines Matching refs:lport
703 u_short lport = 0, rand_port = 0;
740 lport = SIN(nam)->sin_port;
782 if (lport != 0) {
786 if (ntohs(lport) < IPPORT_RESERVED) {
800 inp->inp_pcbinfo, SIN(nam)->sin_addr, lport,
817 in_pcb_conflict_post_msg(lport);
823 SIN(nam)->sin_addr, lport, wild);
842 in_pcb_conflict_post_msg(lport);
850 if (lport == 0) {
916 lport = htons(*lastport);
919 inp->inp_laddr), lport, wild));
940 lport = htons(*lastport);
943 inp->inp_laddr), lport, wild));
956 inp->inp_lport = lport;
1701 u_short lport = lport_arg;
1711 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(INADDR_ANY, lport, 0,
1720 inp->inp_lport == lport) {
1742 porthash = &pcbinfo->ipi_porthashbase[INP_PCBPORTHASH(lport,
1745 if (phd->phd_port == lport)
1796 u_short fport = fport_arg, lport = lport_arg;
1815 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr.s_addr, lport, fport,
1828 inp->inp_lport == lport) {
1851 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(INADDR_ANY, lport, 0,
1862 inp->inp_lport == lport) {
1919 u_short fport = fport_arg, lport = lport_arg;
1934 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(faddr.s_addr, lport, fport,
1947 inp->inp_lport == lport) {
1971 head = &pcbinfo->ipi_hashbase[INP_PCBHASH(INADDR_ANY, lport, 0,
1982 inp->inp_lport == lport) {
2079 * Go through port list and look for a head for this lport.
2123 * changed. NOTE: This does not handle the case of the lport changing (the
2124 * hashed port list would have to be updated as well), so the lport must