Lines Matching refs:htons

763 	outip->ip_len = htons(packlen);  in main()
764 outip->ip_off = htons(off); in main()
1258 outip->ip_id = htons(ident + seq); in send_probe()
1421 icmpheader->icmp_id = htons(ident); in icmp_prep()
1422 icmpheader->icmp_seq = htons(outdata->seq); in icmp_prep()
1434 return (icmpheader->icmp_id == htons(ident) in icmp_check()
1435 && icmpheader->icmp_seq == htons(seq)); in icmp_check()
1443 outudp->uh_sport = htons(ident + (fixedPort ? outdata->seq : 0)); in udp_prep()
1444 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in udp_prep()
1445 outudp->uh_ulen = htons((u_short)protlen); in udp_prep()
1469 outudp->uh_sport = htons(ident + (fixedPort ? outdata->seq : 0)); in udplite_prep()
1470 outudp->uh_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in udplite_prep()
1471 outudp->uh_ulen = htons(8); in udplite_prep()
1495 tcp->th_sport = htons(ident); in tcp_prep()
1496 tcp->th_dport = htons(port + (fixedPort ? 0 : outdata->seq)); in tcp_prep()
1525 sctp->src_port = htons(ident); in sctp_prep()
1526 sctp->dest_port = htons(port + (fixedPort ? 0 : outdata->seq)); in sctp_prep()
1546 init->ch.chunk_length = htons((u_int16_t)(protlen - in sctp_prep()
1551 init->init.num_outbound_streams = htons(1); in sctp_prep()
1552 init->init.num_inbound_streams = htons(1); in sctp_prep()
1558 param->param_type = htons(SCTP_PAD); in sctp_prep()
1560 htons((u_int16_t)(protlen - in sctp_prep()
1575 chk->chunk_length = htons(4); in sctp_prep()
1583 chk->chunk_length = htons(protlen - in sctp_prep()
1618 gre->flags = htons(0x2001); in gre_prep()
1619 gre->proto = htons(port); in gre_prep()
1621 gre->callId = htons(ident + outdata->seq); in gre_prep()
1638 ptr[0] = htons(ident); in gen_prep()
1639 ptr[1] = htons(port + outdata->seq); in gen_prep()
1686 ipo.ih_len = htons(len); in p_cksum()