Lines Matching defs:lport
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;
303 error = portalgo_randport(&lport, inp, cred);
308 *lastport = lport;
309 lport = htons(lport);
310 inp->inp_lport = lport;
775 in_port_t fport = fport_arg, lport = lport_arg;
782 head = INPCBHASH_CONNECT(table, faddr, fport, laddr, lport);
789 inp->inp_lport == lport &&
962 in_port_t lport = lport_arg;
967 head = INPCBHASH_PORT(table, lport);
971 if (inp->inp_lport != lport)
1021 if (vp->lport != lport)
1073 in_port_t fport = fport_arg, lport = lport_arg;
1078 head = INPCBHASH_CONNECT(table, faddr, fport, laddr, lport);
1085 inp->inp_lport == lport &&
1097 printf("inpcb_lookup: faddr=%08x fport=%d laddr=%08x lport=%d\n",
1099 ntohl(laddr.s_addr), ntohs(lport));
1123 in_port_t lport = lport_arg;
1125 head = INPCBHASH_BIND(table, laddr, lport);
1130 if (inp->inp_lport == lport &&
1134 head = INPCBHASH_BIND(table, zeroin_addr, lport);
1139 if (inp->inp_lport == lport &&
1145 printf("inpcb_lookup_bound: laddr=%08x lport=%d\n",
1146 ntohl(laddr.s_addr), ntohs(lport));