Lines Matching refs:htons
73 n->ti_len = htons(sizeof (struct tcpiphdr) - sizeof (struct ip)); in tcp_template()
145 ti->ti_len = htons((u_short)(sizeof (struct tcphdr) + tlen)); in tcp_respond()
157 ti->ti_win = htons((u_int16_t) (win >> tp->rcv_scale)); in tcp_respond()
159 ti->ti_win = htons((u_int16_t)win); in tcp_respond()
811 ns->so_lport=htons(port); in tcp_emu()
816 ns->so_fport=htons(IPPORT_RESERVED-1); /* Use a fake port. */ in tcp_emu()
975 lport = htons((n5 << 8) | (n6)); in tcp_emu()
1007 lport = htons((n5 << 8) | (n6)); in tcp_emu()
1049 (so = solisten(0, so->so_laddr.s_addr, htons(lport), SS_FACCEPTONCE)) != NULL) in tcp_emu()
1064 if ((so = solisten(0, htonl(laddr), htons(lport), SS_FACCEPTONCE)) == NULL) in tcp_emu()
1073 if ((so = solisten(0, htonl(laddr), htons(lport), SS_FACCEPTONCE)) == NULL) in tcp_emu()
1082 if ((so = solisten(0, htonl(laddr), htons(lport), SS_FACCEPTONCE)) == NULL) in tcp_emu()
1197 if (udp_listen( htons(p), in tcp_emu()
1199 htons(lport), in tcp_emu()