145: #define INPCBHASH_PORT(table, lport) \
146: &(table)->inpt_porthashtbl[ntohs(lport) & (table)->inpt_porthash]
147: #define INPCBHASH_BIND(table, laddr, lport) \
148: &(table)->inpt_bindhashtbl[ \
149: ((ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_bindhash]
150: #define INPCBHASH_CONNECT(table, faddr, fport, laddr, lport) \
151: &(table)->inpt_connecthashtbl[ \
152: ((ntohl((faddr).s_addr) + ntohs(fport)) + \
153: (ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_connecthash]
154:
379: #ifndef T2EX /* no test for super-user credential */
380: if (ntohs(lport) < IPPORT_RESERVED &&
381: kauth_authorize_network(cred,
895: printf("in_pcblookup_connect: faddr=%08x fport=%d laddr=%08x lport=%d\n",
896: ntohl(faddr.s_addr), ntohs(fport),
897: ntohl(laddr.s_addr), ntohs(lport));
898: }
943: printf("in_pcblookup_bind: laddr=%08x lport=%d\n",
944: ntohl(laddr.s_addr), ntohs(lport));
945: }