Symbol: htons
games/hunt/hunt/list.c
122
htons(driver->response);
games/hunt/hunt/list.c
180
htons(Server_port);
games/hunt/hunt/list.c
184
msg = htons(req);
games/hunt/huntd/driver.c
425
if (test_port.sin_port != htons((u_short) Server_port)) {
games/hunt/huntd/driver.c
433
test_port.sin_port = htons((u_short) Server_port);
games/monop/initdeck.c
109
deck[0].num_cards = htons(deck[0].num_cards);
games/monop/initdeck.c
111
deck[0].top_card = htons(deck[0].top_card);
games/monop/initdeck.c
116
deck[1].num_cards = htons(deck[1].num_cards);
games/monop/initdeck.c
118
deck[1].top_card = htons(deck[1].top_card);
games/monop/initdeck.c
189
num = htons(num);
games/monop/initdeck.c
207
num = htons(num);
include/arpa/inet.h
67
#ifndef htons
include/protocols/routed.h
67
#define RIP_AF_INET htons(AF_INET)
include/protocols/routed.h
82
#define RIP_AUTH_PW htons(2) /* password type */
lib/libc/asr/asr.c
848
((struct sockaddr_in *)sa)->sin_port = htons(portno);
lib/libc/asr/asr.c
850
((struct sockaddr_in6 *)sa)->sin6_port = htons(portno);
lib/libc/asr/asr_utils.c
378
v = htons(v);
lib/libc/asr/asr_utils.c
398
c.flags = htons(h->flags);
lib/libc/asr/asr_utils.c
399
c.qdcount = htons(h->qdcount);
lib/libc/asr/asr_utils.c
400
c.ancount = htons(h->ancount);
lib/libc/asr/asr_utils.c
401
c.nscount = htons(h->nscount);
lib/libc/asr/asr_utils.c
402
c.arcount = htons(h->arcount);
lib/libc/asr/getaddrinfo_async.c
585
htons(port);
lib/libc/asr/getaddrinfo_async.c
588
htons(port);
lib/libc/asr/res_send_async.c
526
len = htons(as->as.dns.obuflen);
lib/libc/asr/res_send_async.c
768
h->flags = htons(flags);
lib/libc/net/getservent.c
118
se->s_port = htons((in_port_t)l);
lib/libc/net/rresvport.c
88
*portp = htons(*alport);
lib/libc/rpc/clnt_tcp.c
143
raddr->sin_port = htons(port);
lib/libc/rpc/clnt_udp_bufcreate.c
92
raddr->sin_port = htons(port);
lib/libc/rpc/get_myaddress.c
74
addr->sin_port = htons(PMAPPORT);
lib/libc/rpc/pmap_getmaps.c
67
address->sin_port = htons(PMAPPORT);
lib/libc/rpc/pmap_getport.c
63
address->sin_port = htons(PMAPPORT);
lib/libc/rpc/pmap_rmt.c
266
baddr.sin_port = htons(PMAPPORT);
lib/libc/rpc/pmap_rmt.c
360
raddr.sin_port = htons((u_short)port);
lib/libc/rpc/pmap_rmt.c
77
addr->sin_port = htons(PMAPPORT);
lib/libc/rpc/svc_tcp.c
280
if (addr.sin_port == htons(20)) {
lib/libcrypto/bio/bss_conn.c
189
c->them.sin_port = htons((unsigned short)c->port);
lib/libradius/radius.c
122
packet->pdata->length = htons(sizeof(RADIUS_PACKET_DATA));
lib/libradius/radius_attr.c
197
packet->pdata->length = htons(radius_get_length(packet) + length + 2);
lib/libradius/radius_attr.c
222
packet->pdata->length = htons(radius_get_length(packet) + length + 2);
lib/libradius/radius_attr.c
248
packet->pdata->length = htons(radius_get_length(packet) + length + 8);
lib/libradius/radius_attr.c
327
htons(ntohs(packet->pdata->length) - attr->length);
lib/libradius/radius_attr.c
342
htons(ntohs(packet->pdata->length) - attr->length);
lib/libradius/radius_attr.c
553
DEFINE_TYPED_ATTRIBUTE_ACCESSOR_BYVAL(uint16, uint16_t, htons, ntohs)
lib/libsndio/aucat.c
483
hdl->wmsg.u.hello.mode = htons(mode);
lib/libsndio/sio_aucat.c
295
hdl->aucat.wmsg.u.par.rchan = htons(par->rchan);
lib/libsndio/sio_aucat.c
297
hdl->aucat.wmsg.u.par.pchan = htons(par->pchan);
lib/libsndio/sioctl_aucat.c
225
hdl->aucat.wmsg.u.ctlset.addr = htons(a);
lib/libsndio/sioctl_aucat.c
226
hdl->aucat.wmsg.u.ctlset.val = htons(v);
libexec/ftpd/ftpd.c
1284
data_source.su_port = htons(20); /* ftp-data port */
libexec/ftpd/ftpd.c
546
data_source.su_port = htons(ntohs(ctrl_addr.su_port) - 1);
libexec/login_radius/raddauth.c
233
radius_port = htons(radius_port);
libexec/login_radius/raddauth.c
444
auth.length = htons(total_length);
libexec/snmpd/snmpd_metrics/mib.c
307
year = htons(ptm->tm_year + 1900);
libexec/spamd-setup/spamd-setup.c
623
sin.sin_port = htons(dport);
libexec/spamd/spamd.c
1452
lin.sin_port = htons(cfg_port);
libexec/spamd/sync.c
102
shost->sh_addr.sin_port = htons(port);
libexec/spamd/sync.c
171
sync_out.sin_port = htons(port);
libexec/spamd/sync.c
202
sync_in.sin_port = htons(port);
libexec/spamd/sync.c
455
hdr.sh_length = htons(sizeof(hdr) + sglen + padlen + sizeof(end));
libexec/spamd/sync.c
463
sg.sg_type = htons(SPAM_SYNC_GREY);
libexec/spamd/sync.c
464
sg.sg_length = htons(sglen + padlen);
libexec/spamd/sync.c
467
sg.sg_from_length = htons(fromlen);
libexec/spamd/sync.c
468
sg.sg_to_length = htons(tolen);
libexec/spamd/sync.c
469
sg.sg_helo_length = htons(helolen);
libexec/spamd/sync.c
501
end.st_type = htons(SPAM_SYNC_END);
libexec/spamd/sync.c
502
end.st_length = htons(sizeof(end));
libexec/spamd/sync.c
546
hdr.sh_length = htons(sizeof(hdr) + sizeof(sd) + sizeof(end));
libexec/spamd/sync.c
554
sd.sd_type = htons(type);
libexec/spamd/sync.c
555
sd.sd_length = htons(sizeof(sd));
libexec/spamd/sync.c
566
end.st_type = htons(SPAM_SYNC_END);
libexec/spamd/sync.c
567
end.st_length = htons(sizeof(end));
regress/lib/libc/asr/bin/getnameinfo.c
96
((struct sockaddr_in *)sa)->sin_port = htons(port);
regress/lib/libc/asr/bin/getnameinfo.c
98
((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
regress/lib/libc/netdb/netdb.c
156
s = getservbyport(htons(42), "tcp");
regress/lib/libc/netdb/netdb.c
165
r = getservbyport_r(htons(520), NULL, &servent, &servent_data);
regress/lib/libc/netdb/netdb.c
174
r = getservbyport_r(htons(50000), NULL, &servent, &servent_data);
regress/lib/libc/netdb/netdb.c
178
r = getservbyport_r(htons(520), "tcp", &servent, &servent_data);
regress/lib/libc/sys/t_connect.c
64
sinlist.sin_port = htons(31522);
regress/lib/libc/sys/t_connect.c
78
sin.sin_port = htons(31522);
regress/lib/libc/sys/t_getrusage.c
185
sin.sin_port = htons(3333);
regress/lib/libc/sys/t_listen.c
62
sina.sin_port = htons(31522);
regress/lib/libc/sys/t_listen.c
66
sinb.sin_port = htons(31522);
regress/lib/libc/sys/t_stat.c
348
addr.sin_port = htons(42);
regress/lib/libpthread/blocked_close/blocked_close.c
75
addr.sin_port = htons(0);
regress/lib/libpthread/blocked_dup2/blocked_dup2.c
75
addr.sin_port = htons(0);
regress/lib/libpthread/blocked_shutdown/blocked_shutdown.c
81
addr.sin_port = htons(0);
regress/lib/libpthread/close/close.c
140
addr.sin_port = htons(TEST_PORT);
regress/lib/libpthread/close/close.c
85
serv_addr.sin_port = htons(TEST_PORT);
regress/lib/libpthread/restart/accept/accept.c
31
sa.sin_port = htons(6543);
regress/lib/libpthread/restart/recvfrom/recvfrom.c
32
sa.sin_port = htons(6543);
regress/lib/libpthread/restart/recvmsg/recvmsg.c
34
sa.sin_port = htons(6543);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
66
sin.sin_port = htons(6543);
regress/lib/libpthread/setsockopt/1/setsockopt1.c
99
sin.sin_port = htons(6543);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
117
sin.sin_port = htons(6544);
regress/lib/libpthread/setsockopt/2/setsockopt2.c
70
sin.sin_port = htons(6544);
regress/lib/libpthread/setsockopt/3/setsockopt3.c
57
sin.sin_port = htons(6545);
regress/lib/libpthread/setsockopt/3a/setsockopt3a.c
65
sin.sin_port = htons(6545);
regress/lib/libpthread/socket/1/socket1.c
125
a_sout.sin_port = htons(port);
regress/lib/libpthread/socket/1/socket1.c
134
a_sout.sin_port = htons((++port));
regress/lib/libpthread/socket/2/socket2.c
103
a_sout.sin_port = htons(port);
regress/lib/libpthread/socket/2/socket2.c
112
a_sout.sin_port = htons((++port));
regress/lib/libpthread/socket/2a/socket2a.c
69
a_sout.sin_port = htons(port);
regress/lib/libpthread/socket/3/socket3.c
34
sin.sin_port = htons(port);
regress/lib/libpthread/socket/3/socket3.c
67
sa.sin_port = htons(port);
regress/lib/libpthread/socket/3/socket3.c
74
sa.sin_port = htons(++port);
regress/sbin/ifconfig/ifaddr.c
1753
htons(sin6->sin6_scope_id & 0xffff);
regress/sys/kern/bind/bind.c
14
addr1.sin_port = htons(6666);
regress/sys/kern/bind/bind.c
20
addr2.sin_port = htons(6666);
regress/sys/kern/cmsgsize/cmsgsize.c
120
to.sin_port = htons(CFG_PORT);
regress/sys/kern/dup2_accept/dup2_accept.c
60
addr.sin_port = htons(TEST_PORT);
regress/sys/kern/dup2_accept/dup2_accept.c
88
serv_addr.sin_port = htons(TEST_PORT);
regress/sys/kern/rcvtimeo/rcvtimeo.c
46
sin.sin_port = htons(30000); /* XXX assuming nothing is there */
regress/sys/netinet/broadcast_bind/broadcast_bind.c
43
sin.sin_port = htons(port);
regress/sys/netinet/mcast/mcrecv.c
125
sin.sin_port = htons(port);
regress/sys/netinet/mcast/mcsend.c
138
sin.sin_port = htons(port);
regress/sys/netinet6/mcast6/mc6recv.c
127
sin6.sin6_port = htons(port);
regress/sys/netinet6/mcast6/mc6send.c
135
sin6.sin6_port = htons(port);
sbin/dhcp6leased/dhcp6leased.c
967
sin6->sin6_port = htons(CLIENT_PORT);
sbin/dhcp6leased/engine.c
450
duid.type = htons(DUID_UUID_TYPE);
sbin/dhcp6leased/frontend.c
319
duid.type = htons(DUID_UUID_TYPE);
sbin/dhcp6leased/frontend.c
782
opt_hdr.code = htons(DHO_CLIENTID);
sbin/dhcp6leased/frontend.c
783
opt_hdr.len = htons(sizeof(struct dhcp_duid));
sbin/dhcp6leased/frontend.c
795
opt_hdr.code = htons(DHO_SERVERID);
sbin/dhcp6leased/frontend.c
796
opt_hdr.len = htons(iface->serverid_len);
sbin/dhcp6leased/frontend.c
809
opt_hdr.code = htons(DHO_IA_PD);
sbin/dhcp6leased/frontend.c
810
opt_hdr.len = htons(sizeof(struct dhcp_iapd) +
sbin/dhcp6leased/frontend.c
821
opt_hdr.code = htons(DHO_IA_PREFIX);
sbin/dhcp6leased/frontend.c
822
opt_hdr.len = htons(sizeof(struct dhcp_iaprefix));
sbin/dhcp6leased/frontend.c
851
opt_hdr.code = htons(DHO_ORO);
sbin/dhcp6leased/frontend.c
852
opt_hdr.len = htons(sizeof(request_option_code) * nitems(options));
sbin/dhcp6leased/frontend.c
856
request_option_code = htons(options[i]);
sbin/dhcp6leased/frontend.c
861
opt_hdr.code = htons(DHO_ELAPSED_TIME);
sbin/dhcp6leased/frontend.c
862
opt_hdr.len = htons(2);
sbin/dhcp6leased/frontend.c
865
elapsed_time = htons(iface->elapsed_time);
sbin/dhcp6leased/frontend.c
870
opt_hdr.code = htons(DHO_RAPID_COMMIT);
sbin/dhcp6leased/frontend.c
871
opt_hdr.len = htons(0);
sbin/dhcp6leased/frontend.c
876
opt_hdr.code = htons(DHO_VENDOR_CLASS);
sbin/dhcp6leased/frontend.c
877
opt_hdr.len = htons(sizeof(struct dhcp_vendor_class) +
sbin/dhcp6leased/frontend.c
882
vendor_class.vendor_class_len = htons(vendor_class_len);
sbin/dhcpleased/bpf.c
171
dhcp_bpf_wfilter[7].k = htons(IP_MF|IP_OFFMASK);
sbin/dhcpleased/checksum.c
79
return htons(sum);
sbin/dhcpleased/frontend.c
1105
eh.ether_type = htons(ETHERTYPE_IP);
sbin/dhcpleased/frontend.c
1113
ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len);
sbin/dhcpleased/frontend.c
1126
udp.uh_sport = htons(CLIENT_PORT);
sbin/dhcpleased/frontend.c
1127
udp.uh_dport = htons(SERVER_PORT);
sbin/dhcpleased/frontend.c
1128
udp.uh_ulen = htons(sizeof(udp) + len);
sbin/ifconfig/ifconfig.c
6623
htons(sin6->sin6_scope_id & 0xffff);
sbin/iked/iked.c
277
config_setsocket(env, &ss, htons(IKED_IKE_PORT), PROC_IKEV2);
sbin/iked/iked.c
279
config_setsocket(env, &ss, htons(env->sc_nattport), PROC_IKEV2);
sbin/iked/iked.c
285
config_setsocket(env, &ss, htons(IKED_IKE_PORT), PROC_IKEV2);
sbin/iked/iked.c
287
config_setsocket(env, &ss, htons(env->sc_nattport), PROC_IKEV2);
sbin/iked/ikev2.c
1321
port = htons(socket_getport(
sbin/iked/ikev2.c
1432
port = htons(socket_getport((struct sockaddr *)&sock->sock_addr));
sbin/iked/parse.y
1299
port = htons((!$2)? RADIUS_DEFAULT_PORT :
sbin/iked/parse.y
1377
port = htons(RADIUS_DAE_DEFAULT_PORT);
sbin/iked/parse.y
776
$$ = htons($1);
sbin/iked/pfkey.c
1912
peer.addr_port = htons(socket_getport(speer));
sbin/iked/pfkey.c
1964
flow.flow_src.addr_port = htons(socket_getport(ssrc));
sbin/iked/pfkey.c
1983
flow.flow_dst.addr_port = htons(socket_getport(sdst));
sbin/iked/policy.c
685
addr->addr_port = htons(socket_getport(peer));
sbin/iked/util.c
82
((struct sockaddr_in *)sa)->sin_port = htons(port);
sbin/iked/util.c
85
((struct sockaddr_in6 *)sa)->sin6_port = htons(port);
sbin/ipsecctl/parse.y
421
hosts.sport = htons(0);
sbin/ipsecctl/parse.y
423
hosts.dport = htons(0);
sbin/ipsecctl/parse.y
533
$$ = htons($1);
sbin/ipsecctl/pfkey.c
548
udpencap.sadb_x_udpencap_port = htons(dport);
sbin/isakmpd/log.c
526
udp.uh_ulen = htons(datalen);
sbin/isakmpd/log.c
550
hdr.ip.ip4.ip_len = htons(datalen + hdrlen);
sbin/isakmpd/log.c
553
hdr.ip.ip4.ip_id = htons(i);
sbin/isakmpd/log.c
669
sum += htons((*(const char *)sp) << 8);
sbin/isakmpd/log.c
690
sum += htons(*(const u_char *)w << 8);
sbin/isakmpd/message.c
1904
"%s", address ? address : "<unknown>", htons(port),
sbin/isakmpd/pf_key_v2.c
629
*(u_int16_t *) spi = htons((u_int16_t) tspi);
sbin/isakmpd/util.c
481
((struct sockaddr_in *)sa)->sin_port = htons (port);
sbin/isakmpd/util.c
485
((struct sockaddr_in6 *)sa)->sin6_port = htons (port);
sbin/isakmpd/virtual.c
463
((struct sockaddr_in *)if_addr)->sin_port = htons(0);
sbin/isakmpd/virtual.c
466
((struct sockaddr_in6 *)if_addr)->sin6_port = htons(0);
sbin/mount_nfs/mount_nfs.c
436
saddr.sin_port = htons(PMAPPORT);
sbin/mount_nfs/mount_nfs.c
513
saddr.sin_port = htons(tport);
sbin/nfsd/nfsd.c
226
inetaddr.sin_port = htons(NFS_PORT);
sbin/nfsd/nfsd.c
263
inetaddr.sin_port = htons(NFS_PORT);
sbin/pfctl/parse.y
6237
return (htons(ulval));
sbin/ping/ping.c
1121
seq = htons(ntransmitted++);
sbin/ping/ping.c
1174
ip->ip_len = htons(cc);
sbin/ping/ping.c
736
ip->ip_off = htons(df ? IP_DF : 0);
sbin/route/route.c
1005
htons(su->sin6.sin6_scope_id);
sbin/slaacd/slaacd.c
767
*(u_int16_t *)& gw.sin6_addr.s6_addr[2] = htons(gw.sin6_scope_id);
sbin/unwind/dns64_synth.c
171
dk->rk.type = htons(LDNS_RR_TYPE_AAAA);
sbin/unwind/frontend.c
1001
if (reply_info_encode(&pq->qinfo, synth_rinfo, htons(pq->id),
sbin/unwind/frontend.c
1162
error_encode(pq->abuf, rcode, &pq->qinfo, htons(pq->id), pq->flags,
sbin/unwind/frontend.c
906
if (reply_info_encode(&pq->qinfo, rinfo, htons(pq->id), rinfo->flags,
sbin/unwind/frontend.c
971
htons(LDNS_RR_TYPE_A)) {
sbin/unwind/libunbound/dns64/dns64.c
803
dk->rk.type = htons(LDNS_RR_TYPE_AAAA);
sbin/unwind/libunbound/dns64/dns64.c
870
if(i<rep->an_numrrsets && fk->rk.type == htons(LDNS_RR_TYPE_A)) {
sbin/unwind/libunbound/iterator/iter_hints.c
368
sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/iterator/iter_hints.c
385
sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/iterator/iter_priv.c
231
sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/iterator/iter_priv.c
254
sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/iterator/iter_utils.c
1191
if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NS)) {
sbin/unwind/libunbound/iterator/iter_utils.c
1231
neg->rk.type = htons(qinfo->qtype);
sbin/unwind/libunbound/iterator/iter_utils.c
1232
neg->rk.rrset_class = htons(qinfo->qclass);
sbin/unwind/libunbound/respip/respip.c
253
rrset->rk.type = htons(rrtype);
sbin/unwind/libunbound/respip/respip.c
254
rrset->rk.rrset_class = htons(rrclass);
sbin/unwind/libunbound/respip/respip.c
273
raddr->data->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
sbin/unwind/libunbound/services/authzone.c
182
key.rk.type = htons(rrset->type);
sbin/unwind/libunbound/services/authzone.c
183
key.rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/authzone.c
2693
(*cname)->rk.type = htons(LDNS_RR_TYPE_CNAME);
sbin/unwind/libunbound/services/authzone.c
2694
(*cname)->rk.rrset_class = htons(dclass);
sbin/unwind/libunbound/services/authzone.c
5672
sa->sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/services/authzone.c
5679
sa->sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
sbin/unwind/libunbound/services/authzone.c
6397
= htons((uint16_t)env->cfg->port);
sbin/unwind/libunbound/services/authzone.c
6402
= htons((uint16_t)env->cfg->port);
sbin/unwind/libunbound/services/authzone.c
7498
key.rk.type = htons(rrset->type);
sbin/unwind/libunbound/services/authzone.c
7499
key.rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/authzone.c
7642
key.rk.type = htons(LDNS_RR_TYPE_RRSIG);
sbin/unwind/libunbound/services/authzone.c
7643
key.rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/authzone.c
7845
pk.rk.type = htons(rrset->type);
sbin/unwind/libunbound/services/authzone.c
7846
pk.rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/authzone.c
8199
keystorage->rk.type = htons(LDNS_RR_TYPE_DNSKEY);
sbin/unwind/libunbound/services/authzone.c
8200
keystorage->rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/authzone.c
8261
keystorage->rk.type = htons(LDNS_RR_TYPE_DNSKEY);
sbin/unwind/libunbound/services/authzone.c
8262
keystorage->rk.rrset_class = htons(z->dclass);
sbin/unwind/libunbound/services/cache/dns.c
646
if(r->an_numrrsets > 0 && (r->rrsets[0]->rk.type == htons(
sbin/unwind/libunbound/services/cache/dns.c
647
LDNS_RR_TYPE_CNAME) || r->rrsets[0]->rk.type == htons(
sbin/unwind/libunbound/services/cache/dns.c
789
ck->rk.type = htons(LDNS_RR_TYPE_CNAME);
sbin/unwind/libunbound/services/cache/rrset.c
293
key.rk.type = htons(qtype);
sbin/unwind/libunbound/services/cache/rrset.c
294
key.rk.rrset_class = htons(qclass);
sbin/unwind/libunbound/services/cache/rrset.c
539
key.rk.rrset_class = htons(dclass);
sbin/unwind/libunbound/services/cache/rrset.c
540
key.rk.type = htons(type);
sbin/unwind/libunbound/services/listen_dnsport.c
3994
stream->outlen_wire = htons(stream->outlen);
sbin/unwind/libunbound/services/localzone.c
1403
r->rk.type = htons(rdr_type);
sbin/unwind/libunbound/services/localzone.c
1404
r->rk.rrset_class = htons(qinfo->qclass);
sbin/unwind/libunbound/services/localzone.c
1467
r->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
sbin/unwind/libunbound/services/localzone.c
1531
lr->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
sbin/unwind/libunbound/services/localzone.c
1727
lrr.rk.type = htons(qinfo->qtype);
sbin/unwind/libunbound/services/localzone.c
1728
lrr.rk.rrset_class = htons(qinfo->qclass);
sbin/unwind/libunbound/services/localzone.c
334
type = htons(type);
sbin/unwind/libunbound/services/localzone.c
338
if(alias_ok && p->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME))
sbin/unwind/libunbound/services/localzone.c
391
rrset->rrset->rk.type = htons(rrtype);
sbin/unwind/libunbound/services/localzone.c
392
rrset->rrset->rk.rrset_class = htons(rrclass);
sbin/unwind/libunbound/services/localzone.c
570
htons(LDNS_RR_TYPE_CNAME)) {
sbin/unwind/libunbound/services/mesh.c
1994
htons(LDNS_RR_TYPE_CNAME));
sbin/unwind/libunbound/services/outside_network.c
2022
sa.sin6_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/services/outside_network.c
2034
sa->sin_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/services/outside_network.c
3630
sa.sin6_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/services/outside_network.c
3636
sa->sin_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/services/rpz.c
1264
if(htons(qtype) == packed_rrset->type) {
sbin/unwind/libunbound/services/rpz.c
1829
csoa.rk.rrset_class = htons(LDNS_RR_CLASS_IN);
sbin/unwind/libunbound/services/rpz.c
1830
csoa.rk.type = htons(LDNS_RR_TYPE_SOA);
sbin/unwind/libunbound/services/rpz.c
2092
type = htons(type);
sbin/unwind/libunbound/services/rpz.c
2096
if(alias_ok && p->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME))
sbin/unwind/libunbound/services/rpz.c
453
uint16_t rdlength = htons(ctlen);
sbin/unwind/libunbound/services/rpz.c
488
rrset->rk.type = htons(LDNS_RR_TYPE_CNAME);
sbin/unwind/libunbound/services/rpz.c
489
rrset->rk.rrset_class = htons(LDNS_RR_CLASS_IN);
sbin/unwind/libunbound/services/rpz.c
933
rrset->rrset->rk.type = htons(rrtype);
sbin/unwind/libunbound/services/rpz.c
934
rrset->rrset->rk.rrset_class = htons(rrclass);
sbin/unwind/libunbound/sldns/sbuffer.h
67
* (uint16_t *) dst = htons(data);
sbin/unwind/libunbound/sldns/str2wire.c
2729
shorts[0] = htons(a);
sbin/unwind/libunbound/sldns/str2wire.c
2730
shorts[1] = htons(b);
sbin/unwind/libunbound/sldns/str2wire.c
2731
shorts[2] = htons(c);
sbin/unwind/libunbound/sldns/str2wire.c
2732
shorts[3] = htons(d);
sbin/unwind/libunbound/sldns/wire2str.c
1848
(int)htons((uint16_t)port), proto_name);
sbin/unwind/libunbound/util/data/msgencode.c
306
*owner_ptr = htons(PTR_CREATE(p->offset));
sbin/unwind/libunbound/util/data/msgencode.c
321
*owner_ptr = htons(PTR_CREATE(owner_pos));
sbin/unwind/libunbound/util/data/msgreply.c
1484
rrset->rk.type != htons(LDNS_RR_TYPE_CNAME) ||
sbin/unwind/libunbound/util/data/msgreply.c
292
pkt_len = htons(rr->size - 2);
sbin/unwind/libunbound/util/data/msgreply.c
470
pk->rk.type = htons(pset->type);
sbin/unwind/libunbound/util/data/msgreply.h
598
} ede = { htons(CODE), TXT }; \
sbin/unwind/libunbound/util/net_help.c
276
sa->sin6_port = (in_port_t)htons(p);
sbin/unwind/libunbound/util/net_help.c
296
sa->sin_port = (in_port_t)htons(p);
sbin/unwind/libunbound/util/net_help.c
545
sa->sin6_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/util/net_help.c
548
sa->sin_port = (in_port_t)htons((uint16_t)port);
sbin/unwind/libunbound/util/netevent.c
1473
sa->sin6_port = htons(doq_sockaddr_get_port(
sbin/unwind/libunbound/util/netevent.c
1495
sa->sin_port = htons(doq_sockaddr_get_port(
sbin/unwind/libunbound/util/netevent.c
1515
sa->sin_port = htons(doq_sockaddr_get_port(
sbin/unwind/libunbound/util/netevent.c
3855
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(c->buffer));
sbin/unwind/libunbound/util/netevent.c
4323
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(buffer));
sbin/unwind/libunbound/util/netevent.c
4418
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(buffer));
sbin/unwind/libunbound/validator/autotrust.c
1449
uint16_t rrtype = htons(LDNS_RR_TYPE_DNSKEY);
sbin/unwind/libunbound/validator/autotrust.c
1450
uint16_t rrclass = htons(LDNS_RR_CLASS_IN);
sbin/unwind/libunbound/validator/autotrust.c
1451
uint16_t rdlen = htons(rdata_len);
sbin/unwind/libunbound/validator/autotrust.c
641
k->rk.type = htons(sldns_wirerr_get_type(rr, rr_len, dname_len));
sbin/unwind/libunbound/validator/autotrust.c
642
k->rk.rrset_class = htons(sldns_wirerr_get_class(rr, rr_len, dname_len));
sbin/unwind/libunbound/validator/val_anchor.c
876
pkey->rk.type = htons(type);
sbin/unwind/libunbound/validator/val_anchor.c
877
pkey->rk.rrset_class = htons(ta->dclass);
sbin/unwind/libunbound/validator/val_kentry.c
373
rrk->rk.type = htons(d->rrset_type);
sbin/unwind/libunbound/validator/val_kentry.c
374
rrk->rk.rrset_class = htons(kkey->key_class);
sbin/unwind/libunbound/validator/val_nsec.c
252
if(rep->rrsets[i]->rk.type != htons(LDNS_RR_TYPE_NSEC))
sbin/unwind/libunbound/validator/val_nsec3.c
1457
if(list[i]->rk.type != htons(LDNS_RR_TYPE_NSEC3))
sbin/unwind/libunbound/validator/val_sigcrypt.c
1640
ktag = htons(dnskey_calc_keytag(dnskey, dnskey_idx));
sbin/unwind/libunbound/validator/val_utils.c
1282
if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NSEC))
sbin/unwind/libunbound/validator/val_utils.c
1284
else if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NSEC3))
sbin/unwind/libunbound/validator/val_utils.c
475
dnskey.rk.type = htons(kd->rrset_type);
sbin/unwind/libunbound/validator/val_utils.c
476
dnskey.rk.rrset_class = htons(kkey->key_class);
sys/arch/alpha/alpha/in_cksum.c
217
ipov.ih_len = htons(len);
sys/arch/powerpc/powerpc/in_cksum.c
259
u.ipov.ih_len = htons(len);
sys/arch/sparc64/sparc64/in4_cksum.c
110
sum = ((u_int)nxt << 16) | htons(len);
sys/dev/ic/an.c
1133
len = htons(m->m_pkthdr.len - sizeof(struct ieee80211_frame));
sys/dev/ic/if_wi.c
2358
if (eh->ether_type == htons(ETHERTYPE_IP) ||
sys/dev/ic/if_wi.c
2359
eh->ether_type == htons(ETHERTYPE_ARP) ||
sys/dev/ic/if_wi.c
2360
eh->ether_type == htons(ETHERTYPE_REVARP) ||
sys/dev/ic/if_wi.c
2361
eh->ether_type == htons(ETHERTYPE_IPV6)) {
sys/dev/ic/if_wi.c
2389
tx_frame.wi_dat[0] = htons(WI_SNAP_WORD0);
sys/dev/ic/if_wi.c
2390
tx_frame.wi_dat[1] = htons(WI_SNAP_WORD1);
sys/dev/ic/if_wi.c
2391
tx_frame.wi_len = htons(m0->m_pkthdr.len - WI_SNAPHDR_LEN);
sys/dev/ic/ti.c
2037
CSR_WRITE_4(sc, TI_GCR_PAR0, htons(m[0]));
sys/dev/ic/ti.c
2038
CSR_WRITE_4(sc, TI_GCR_PAR1, (htons(m[1]) << 16) | htons(m[2]));
sys/dev/ic/ti.c
912
CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
sys/dev/ic/ti.c
913
CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
sys/dev/ic/ti.c
917
ext[0] = htons(m[0]);
sys/dev/ic/ti.c
918
ext[1] = (htons(m[1]) << 16) | htons(m[2]);
sys/dev/ic/ti.c
938
CSR_WRITE_4(sc, TI_GCR_MAR0, htons(m[0]));
sys/dev/ic/ti.c
939
CSR_WRITE_4(sc, TI_GCR_MAR1, (htons(m[1]) << 16) | htons(m[2]));
sys/dev/ic/ti.c
943
ext[0] = htons(m[0]);
sys/dev/ic/ti.c
944
ext[1] = (htons(m[1]) << 16) | htons(m[2]);
sys/dev/isa/if_ep_isa.c
180
vendor = htons(epreadeeprom(iot, ioh, EEPROM_MFG_ID));
sys/dev/isa/if_ep_isa.c
184
model = htons(epreadeeprom(iot, ioh, EEPROM_PROD_ID));
sys/dev/pci/if_alc.c
1842
vtag = htons(m->m_pkthdr.ether_vtag);
sys/dev/pci/if_bge.c
4304
CSR_WRITE_4(sc, BGE_MAC_ADDR1_LO, htons(m[0]));
sys/dev/pci/if_bge.c
4305
CSR_WRITE_4(sc, BGE_MAC_ADDR1_HI, (htons(m[1]) << 16) | htons(m[2]));
sys/dev/pci/if_bnx.c
4375
eh->ether_shost, ":", htons(eh->ether_type)));
sys/dev/pci/if_de.c
267
mtod(m, struct ether_header *)->ether_type = htons(3);
sys/dev/pci/if_ice.c
23627
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23656
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23744
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23780
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23808
tlv->typelen = htons(typelen);
sys/dev/pci/if_ice.c
23853
tlv->typelen = htons(typelen);
sys/dev/pci/if_mcx.c
7881
evh->evl_encap_proto = htons(ETHERTYPE_VLAN);
sys/dev/pci/if_mcx.c
7882
evh->evl_tag = htons(m->m_pkthdr.ether_vtag);
sys/dev/pci/if_nge.c
1365
(NGE_TXEXTSTS_VLANPKT|htons(m_head->m_pkthdr.ether_vtag));
sys/dev/pci/if_oce.c
1344
if (eh->evl_encap_proto == htons(ETHERTYPE_VLAN)) {
sys/dev/pci/if_txp.c
1316
(htons(m->m_pkthdr.ether_vtag) << TX_PFLAGS_VLANTAG_S);
sys/dev/pci/if_vr.c
920
m->m_pkthdr.ether_vtag = htons(*(u_int16_t *)
sys/dev/pv/if_vio.c
1194
htons(ext.iplen - ext.iphlen));
sys/kern/uipc_syscalls.c
141
if (((struct sockaddr_in *)nam)->sin_port == htons(53))
sys/kern/uipc_syscalls.c
148
if (((struct sockaddr_in6 *)nam)->sin6_port == htons(53))
sys/lib/libsa/arp.c
109
ah->arp_hrd = htons(ARPHRD_ETHER);
sys/lib/libsa/arp.c
110
ah->arp_pro = htons(ETHERTYPE_IP);
sys/lib/libsa/arp.c
113
ah->arp_op = htons(ARPOP_REQUEST);
sys/lib/libsa/arp.c
194
if (ah->arp_hrd != htons(ARPHRD_ETHER) ||
sys/lib/libsa/arp.c
195
ah->arp_pro != htons(ETHERTYPE_IP) ||
sys/lib/libsa/arp.c
205
if (ah->arp_op == htons(ARPOP_REQUEST)) {
sys/lib/libsa/arp.c
214
if (ah->arp_op != htons(ARPOP_REPLY)) {
sys/lib/libsa/arp.c
250
if (arp->arp_hrd != htons(ARPHRD_ETHER) ||
sys/lib/libsa/arp.c
251
arp->arp_pro != htons(ETHERTYPE_IP) ||
sys/lib/libsa/arp.c
261
if (arp->arp_op != htons(ARPOP_REQUEST)) {
sys/lib/libsa/arp.c
279
arp->arp_op = htons(ARPOP_REPLY);
sys/lib/libsa/bootp.c
108
d->myport = htons(IPPORT_BOOTPC);
sys/lib/libsa/bootp.c
110
d->destport = htons(IPPORT_BOOTPS);
sys/lib/libsa/bootp.c
132
bp->bp_secs = htons((u_short)(getsecs() - bot));
sys/lib/libsa/bootparam.c
151
d->myport = htons(--rpc_port);
sys/lib/libsa/bootparam.c
264
d->myport = htons(--rpc_port);
sys/lib/libsa/ether.c
73
eh->ether_type = htons(etype);
sys/lib/libsa/in_cksum.c
69
sum += htons(*(const u_short *)cp);
sys/lib/libsa/netudp.c
154
if (ah->ar_op == htons(ARPOP_REQUEST)) {
sys/lib/libsa/netudp.c
207
ip->ip_len = htons(sizeof(*ip));
sys/lib/libsa/netudp.c
89
ip->ip_len = htons(len);
sys/lib/libsa/netudp.c
98
uh->uh_ulen = htons(len - sizeof(*ip));
sys/lib/libsa/nfs.c
340
desc->myport = htons(--rpc_port);
sys/lib/libsa/rarp.c
179
if (ap->arp_hrd != htons(ARPHRD_ETHER) ||
sys/lib/libsa/rarp.c
180
ap->arp_pro != htons(ETHERTYPE_IP) ||
sys/lib/libsa/rarp.c
191
if (ap->arp_op != htons(ARPOP_REVREPLY)) {
sys/lib/libsa/rarp.c
94
ap->arp_hrd = htons(ARPHRD_ETHER);
sys/lib/libsa/rarp.c
95
ap->arp_pro = htons(ETHERTYPE_IP);
sys/lib/libsa/rarp.c
98
ap->arp_op = htons(ARPOP_REVREQUEST);
sys/lib/libsa/rpc.c
132
d->destport = htons(port);
sys/lib/libsa/tftp.c
116
if (htons(t->th_block) != d->xid) {
sys/lib/libsa/tftp.c
166
wbuf.t.th_opcode = htons((u_short) RRQ);
sys/lib/libsa/tftp.c
177
h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff));
sys/lib/libsa/tftp.c
178
h->iodesc->destport = htons(IPPORT_TFTP);
sys/lib/libsa/tftp.c
209
wbuf.t.th_opcode = htons((u_short) ACK);
sys/lib/libsa/tftp.c
210
wbuf.t.th_block = htons((u_short) h->currblock);
sys/lib/libsa/tftp.c
244
wbuf.t.th_opcode = htons((u_short) ACK);
sys/lib/libsa/tftp.c
245
wbuf.t.th_block = htons((u_short) h->currblock);
sys/lib/libsa/tftp.c
247
wbuf.t.th_opcode = htons((u_short) ERROR);
sys/lib/libsa/tftp.c
248
wbuf.t.th_code = htons((u_short) ENOSPACE); /* ??? */
sys/net/bfd.c
470
sin->sin_port = htons(port);
sys/net/bfd.c
474
sin6->sin6_port = htons(port);
sys/net/bpf.c
1524
evh.evl_encap_proto = htons(ETHERTYPE_VLAN);
sys/net/bpf.c
1525
evh.evl_tag = htons(m->m_pkthdr.ether_vtag);
sys/net/bridgestp.c
330
bpdu.cbu_rootpri = htons(bp->bp_desg_pv.pv_root_id >> 48);
sys/net/bridgestp.c
335
bpdu.cbu_bridgepri = htons(bp->bp_desg_pv.pv_dbridge_id >> 48);
sys/net/bridgestp.c
338
bpdu.cbu_portid = htons(bp->bp_port_id);
sys/net/bridgestp.c
339
bpdu.cbu_messageage = htons(bp->bp_desg_msg_age);
sys/net/bridgestp.c
340
bpdu.cbu_maxage = htons(bp->bp_desg_max_age);
sys/net/bridgestp.c
341
bpdu.cbu_hellotime = htons(bp->bp_desg_htime);
sys/net/bridgestp.c
342
bpdu.cbu_forwarddelay = htons(bp->bp_desg_fdelay);
sys/net/bridgestp.c
382
eh->ether_type = htons(sizeof(bpdu));
sys/net/bridgestp.c
492
bpdu->cbu_protoid = htons(BSTP_PROTO_ID);
sys/net/bridgestp.c
501
eh->ether_type = htons(BSTP_BPDU_STP_LEN);
sys/net/bridgestp.c
507
bpdu->cbu_versionlen = htons(0);
sys/net/bridgestp.c
509
eh->ether_type = htons(BSTP_BPDU_RSTP_LEN);
sys/net/if_aggr.c
1801
pi->lacp_sysid.lacp_sysid_priority = htons(0);
sys/net/if_aggr.c
1805
pi->lacp_key = htons(0);
sys/net/if_aggr.c
1807
pi->lacp_portid.lacp_portid_priority = htons(0);
sys/net/if_aggr.c
1808
pi->lacp_portid.lacp_portid_number = htons(0);
sys/net/if_aggr.c
1828
if ((pi->lacp_portid.lacp_portid_number == htons(0)) &&
sys/net/if_aggr.c
1829
(pi->lacp_portid.lacp_portid_priority == htons(0)) &&
sys/net/if_aggr.c
1831
(pi->lacp_sysid.lacp_sysid_priority == htons(0)) &&
sys/net/if_aggr.c
1832
(pi->lacp_key == htons(0)) &&
sys/net/if_aggr.c
1853
if (pi->lacp_portid.lacp_portid_number != htons(ifp0->if_index))
sys/net/if_aggr.c
1856
htons(sc->sc_lacp_port_prio))
sys/net/if_aggr.c
1861
htons(sc->sc_lacp_prio))
sys/net/if_aggr.c
1863
if (pi->lacp_key != htons(ifp->if_index))
sys/net/if_aggr.c
1938
eh->ether_type = htons(ETHERTYPE_SLOW);
sys/net/if_aggr.c
2064
if (pi->lacp_key == htons(0)) {
sys/net/if_aggr.c
2089
pi->lacp_key == htons(ifp->if_index)) {
sys/net/if_aggr.c
2215
KASSERT(sc->sc_partner_key == htons(0));
sys/net/if_aggr.c
2238
sc->sc_partner_system.lacp_sysid_priority = htons(0);
sys/net/if_aggr.c
2239
sc->sc_partner_key = htons(0);
sys/net/if_aggr.c
2898
eh->ether_type = htons(ETHERTYPE_SLOW);
sys/net/if_aggr.c
2908
pi->lacp_sysid.lacp_sysid_priority = htons(sc->sc_lacp_prio);
sys/net/if_aggr.c
2914
pi->lacp_key = htons(ifp->if_index);
sys/net/if_aggr.c
2916
pi->lacp_portid.lacp_portid_priority = htons(sc->sc_lacp_port_prio);
sys/net/if_aggr.c
2917
pi->lacp_portid.lacp_portid_number = htons(ifp0->if_index);
sys/net/if_aggr.c
2934
ci->lacp_maxdelay = htons(0);
sys/net/if_aggr.c
789
if (eh->ether_type == htons(ETHERTYPE_LLDP) &&
sys/net/if_aggr.c
818
if (__predict_true(eh->ether_type != htons(ETHERTYPE_SLOW) ||
sys/net/if_bpe.c
280
beh->ether_type = htons(ETHERTYPE_PBB);
sys/net/if_bridge.c
1628
(ip->ip_off & htons(IP_DF)) &&
sys/net/if_bridge.c
1847
llc.llc_snap.ether_type != htons(ETHERTYPE_IP))
sys/net/if_bridge.c
1863
if (ip->ip_off & htons(IP_DF)) {
sys/net/if_bridge.c
1983
ip->ip_off &= htons(IP_DF);
sys/net/if_bridge.c
1984
ip->ip_id = htons(ip_randomid());
sys/net/if_etherip.c
150
sc->sc_df = htons(0);
sys/net/if_etherip.c
351
sc->sc_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_etherip.c
552
ip->ip_len = htons(m->m_pkthdr.len);
sys/net/if_etherip.c
553
ip->ip_id = htons(ip_randomid());
sys/net/if_etherip.c
734
ip6->ip6_plen = htons(len);
sys/net/if_ethersubr.c
1822
eh->ether_type = htons(etype);
sys/net/if_ethersubr.c
1848
sfrm->sfrm_proto = htons(ep->ep_etype);
sys/net/if_ethersubr.c
2240
sfrm.sfrm_proto = htons(etype);
sys/net/if_ethersubr.c
245
eh->ether_type = htons(ETHERTYPE_IP);
sys/net/if_ethersubr.c
268
eh->ether_type = htons(ETHERTYPE_IPV6);
sys/net/if_ethersubr.c
306
eh->ether_type = htons(ETHERTYPE_MPLS_MCAST);
sys/net/if_ethersubr.c
308
eh->ether_type = htons(ETHERTYPE_MPLS);
sys/net/if_gif.c
150
sc->sc_df = htons(0);
sys/net/if_gif.c
331
ip->ip_len = htons(m->m_pkthdr.len);
sys/net/if_gif.c
360
ip6->ip6_plen = htons(len);
sys/net/if_gif.c
539
sc->sc_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_gre.c
1047
case htons(ETHERTYPE_PPP):
sys/net/if_gre.c
1065
case htons(GRE_EOIP):
sys/net/if_gre.c
1106
switch (gh->gre_flags & htons(GRE_VERS_MASK)) {
sys/net/if_gre.c
1107
case htons(GRE_VERS_0):
sys/net/if_gre.c
1110
case htons(GRE_VERS_1):
sys/net/if_gre.c
1123
if (gh->gre_proto == htons(GRE_ERSPAN)) {
sys/net/if_gre.c
1132
if ((gh->gre_flags & htons(~(GRE_KP|GRE_VERS_MASK))) != htons(0))
sys/net/if_gre.c
1135
if (gh->gre_flags & htons(GRE_KP)) {
sys/net/if_gre.c
1153
if (gh->gre_proto == htons(ETHERTYPE_TRANSETHER)) {
sys/net/if_gre.c
1169
case htons(GRE_WCCP): {
sys/net/if_gre.c
1200
case htons(ETHERTYPE_IP):
sys/net/if_gre.c
1205
case htons(ETHERTYPE_IPV6):
sys/net/if_gre.c
1211
case htons(ETHERTYPE_MPLS_MCAST):
sys/net/if_gre.c
1214
case htons(ETHERTYPE_MPLS):
sys/net/if_gre.c
1219
case htons(0):
sys/net/if_gre.c
1904
m = gre_encap(&sc->sc_tunnel, m, htons(ETHERTYPE_TRANSETHER),
sys/net/if_gre.c
1934
proto = htons(ETHERTYPE_IP);
sys/net/if_gre.c
1949
proto = htons(ETHERTYPE_IPV6);
sys/net/if_gre.c
1967
proto = htons(ETHERTYPE_MPLS_MCAST);
sys/net/if_gre.c
1969
proto = htons(ETHERTYPE_MPLS);
sys/net/if_gre.c
2010
gh->gre_flags |= htons(GRE_KP);
sys/net/if_gre.c
2046
ip->ip_len = htons(m->m_pkthdr.len);
sys/net/if_gre.c
2067
ip6->ip6_plen = htons(len);
sys/net/if_gre.c
2175
tunnel->t_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_gre.c
2730
tunnel->t_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_gre.c
2938
sc->sc_tunnel.t_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_gre.c
3113
m = gre_encap(&t, m, htons(0), ttl, tos);
sys/net/if_gre.c
3122
ip->ip_id = htons(ip_randomid());
sys/net/if_gre.c
3125
proto = htons(ETHERTYPE_IP);
sys/net/if_gre.c
3130
proto = htons(ETHERTYPE_IPV6);
sys/net/if_gre.c
3779
htons(ETHERTYPE_TRANSETHER),
sys/net/if_gre.c
3972
gh->gre_flags = htons(GRE_VERS_1 | GRE_KP);
sys/net/if_gre.c
3973
gh->gre_proto = htons(GRE_EOIP);
sys/net/if_gre.c
4079
if (gh->gre_flags != htons(GRE_KP | GRE_VERS_1))
sys/net/if_gre.c
4467
sc->sc_tunnel.t_df = htons(0);
sys/net/if_gre.c
4753
sc->sc_tunnel.t_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_gre.c
4907
gh->gre_flags = htons(GRE_VERS_0 | GRE_SP);
sys/net/if_gre.c
4908
gh->gre_proto = htons(GRE_ERSPAN);
sys/net/if_gre.c
4951
if (gh->gre_flags != htons(GRE_SP | GRE_VERS_0))
sys/net/if_gre.c
664
sc->sc_tunnel.t_df = htons(0);
sys/net/if_gre.c
735
sc->sc_tunnel.t_df = htons(0);
sys/net/if_gre.c
789
sc->sc_tunnel.t_df = htons(0);
sys/net/if_gre.c
859
tunnel->t_df = htons(IP_DF);
sys/net/if_gre.c
924
sc->sc_tunnel.t_df = htons(0);
sys/net/if_pflow.c
1332
h->count = htons(sc->sc_count);
sys/net/if_pflow.c
1398
set_hdr->set_length = htons(set_length);
sys/net/if_pflow.c
1407
h10->version = htons(PFLOW_PROTO_10);
sys/net/if_pflow.c
1408
h10->length = htons(PFLOW_IPFIX_HDRLEN + set_length);
sys/net/if_pflow.c
1449
h10->version = htons(PFLOW_PROTO_10);
sys/net/if_pflow.c
1450
h10->length = htons(PFLOW_IPFIX_HDRLEN + sizeof(struct
sys/net/if_pflow.c
173
htons(PFLOW_IPFIX_TMPL_SET_ID);
sys/net/if_pflow.c
175
htons(sizeof(struct pflow_ipfix_tmpl));
sys/net/if_pflow.c
179
htons(PFLOW_IPFIX_TMPL_IPV4_ID);
sys/net/if_pflow.c
181
htons(PFLOW_IPFIX_TMPL_IPV4_FIELD_COUNT);
sys/net/if_pflow.c
183
htons(PFIX_IE_sourceIPv4Address);
sys/net/if_pflow.c
184
pflowif->sc_tmpl_ipfix.ipv4_tmpl.src_ip.len = htons(4);
sys/net/if_pflow.c
186
htons(PFIX_IE_destinationIPv4Address);
sys/net/if_pflow.c
187
pflowif->sc_tmpl_ipfix.ipv4_tmpl.dest_ip.len = htons(4);
sys/net/if_pflow.c
189
htons(PFIX_IE_ingressInterface);
sys/net/if_pflow.c
190
pflowif->sc_tmpl_ipfix.ipv4_tmpl.if_index_in.len = htons(4);
sys/net/if_pflow.c
192
htons(PFIX_IE_egressInterface);
sys/net/if_pflow.c
193
pflowif->sc_tmpl_ipfix.ipv4_tmpl.if_index_out.len = htons(4);
sys/net/if_pflow.c
195
htons(PFIX_IE_packetDeltaCount);
sys/net/if_pflow.c
196
pflowif->sc_tmpl_ipfix.ipv4_tmpl.packets.len = htons(8);
sys/net/if_pflow.c
198
htons(PFIX_IE_octetDeltaCount);
sys/net/if_pflow.c
199
pflowif->sc_tmpl_ipfix.ipv4_tmpl.octets.len = htons(8);
sys/net/if_pflow.c
201
htons(PFIX_IE_flowStartMilliseconds);
sys/net/if_pflow.c
202
pflowif->sc_tmpl_ipfix.ipv4_tmpl.start.len = htons(8);
sys/net/if_pflow.c
204
htons(PFIX_IE_flowEndMilliseconds);
sys/net/if_pflow.c
205
pflowif->sc_tmpl_ipfix.ipv4_tmpl.finish.len = htons(8);
sys/net/if_pflow.c
207
htons(PFIX_IE_sourceTransportPort);
sys/net/if_pflow.c
208
pflowif->sc_tmpl_ipfix.ipv4_tmpl.src_port.len = htons(2);
sys/net/if_pflow.c
210
htons(PFIX_IE_destinationTransportPort);
sys/net/if_pflow.c
211
pflowif->sc_tmpl_ipfix.ipv4_tmpl.dest_port.len = htons(2);
sys/net/if_pflow.c
213
htons(PFIX_IE_ipClassOfService);
sys/net/if_pflow.c
214
pflowif->sc_tmpl_ipfix.ipv4_tmpl.tos.len = htons(1);
sys/net/if_pflow.c
216
htons(PFIX_IE_protocolIdentifier);
sys/net/if_pflow.c
217
pflowif->sc_tmpl_ipfix.ipv4_tmpl.protocol.len = htons(1);
sys/net/if_pflow.c
221
htons(PFLOW_IPFIX_TMPL_NAT_IPV4_ID);
sys/net/if_pflow.c
223
htons(PFLOW_IPFIX_TMPL_NAT_IPV4_FIELD_COUNT);
sys/net/if_pflow.c
225
htons(PFIX_IE_sourceIPv4Address);
sys/net/if_pflow.c
226
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.src_ip.len = htons(4);
sys/net/if_pflow.c
228
htons(PFIX_IE_destinationIPv4Address);
sys/net/if_pflow.c
229
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.dest_ip.len = htons(4);
sys/net/if_pflow.c
231
htons(PFIX_IE_ingressInterface);
sys/net/if_pflow.c
232
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.if_index_in.len = htons(4);
sys/net/if_pflow.c
234
htons(PFIX_IE_egressInterface);
sys/net/if_pflow.c
235
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.if_index_out.len = htons(4);
sys/net/if_pflow.c
237
htons(PFIX_IE_packetDeltaCount);
sys/net/if_pflow.c
238
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.packets.len = htons(8);
sys/net/if_pflow.c
240
htons(PFIX_IE_octetDeltaCount);
sys/net/if_pflow.c
241
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.octets.len = htons(8);
sys/net/if_pflow.c
243
htons(PFIX_IE_flowStartMilliseconds);
sys/net/if_pflow.c
244
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.start.len = htons(8);
sys/net/if_pflow.c
246
htons(PFIX_IE_flowEndMilliseconds);
sys/net/if_pflow.c
247
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.finish.len = htons(8);
sys/net/if_pflow.c
249
htons(PFIX_IE_postNATSourceIPv4Address);
sys/net/if_pflow.c
250
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.post_src_ip.len = htons(4);
sys/net/if_pflow.c
252
htons(PFIX_IE_postNATDestinationIPv4Address);
sys/net/if_pflow.c
253
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.post_dest_ip.len = htons(4);
sys/net/if_pflow.c
255
htons(PFIX_IE_postNAPTSourceTransportPort);
sys/net/if_pflow.c
256
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.post_src_port.len = htons(2);
sys/net/if_pflow.c
258
htons(PFIX_IE_postNAPTDestinationTransportPort);
sys/net/if_pflow.c
259
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.post_dest_port.len = htons(2);
sys/net/if_pflow.c
261
htons(PFIX_IE_sourceTransportPort);
sys/net/if_pflow.c
262
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.src_port.len = htons(2);
sys/net/if_pflow.c
264
htons(PFIX_IE_destinationTransportPort);
sys/net/if_pflow.c
265
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.dest_port.len = htons(2);
sys/net/if_pflow.c
267
htons(PFIX_IE_ipClassOfService);
sys/net/if_pflow.c
268
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.tos.len = htons(1);
sys/net/if_pflow.c
270
htons(PFIX_IE_protocolIdentifier);
sys/net/if_pflow.c
271
pflowif->sc_tmpl_ipfix.ipv4_nat_tmpl.protocol.len = htons(1);
sys/net/if_pflow.c
275
htons(PFLOW_IPFIX_TMPL_IPV6_ID);
sys/net/if_pflow.c
277
htons(PFLOW_IPFIX_TMPL_IPV6_FIELD_COUNT);
sys/net/if_pflow.c
279
htons(PFIX_IE_sourceIPv6Address);
sys/net/if_pflow.c
280
pflowif->sc_tmpl_ipfix.ipv6_tmpl.src_ip.len = htons(16);
sys/net/if_pflow.c
282
htons(PFIX_IE_destinationIPv6Address);
sys/net/if_pflow.c
283
pflowif->sc_tmpl_ipfix.ipv6_tmpl.dest_ip.len = htons(16);
sys/net/if_pflow.c
285
htons(PFIX_IE_ingressInterface);
sys/net/if_pflow.c
286
pflowif->sc_tmpl_ipfix.ipv6_tmpl.if_index_in.len = htons(4);
sys/net/if_pflow.c
288
htons(PFIX_IE_egressInterface);
sys/net/if_pflow.c
289
pflowif->sc_tmpl_ipfix.ipv6_tmpl.if_index_out.len = htons(4);
sys/net/if_pflow.c
291
htons(PFIX_IE_packetDeltaCount);
sys/net/if_pflow.c
292
pflowif->sc_tmpl_ipfix.ipv6_tmpl.packets.len = htons(8);
sys/net/if_pflow.c
294
htons(PFIX_IE_octetDeltaCount);
sys/net/if_pflow.c
295
pflowif->sc_tmpl_ipfix.ipv6_tmpl.octets.len = htons(8);
sys/net/if_pflow.c
297
htons(PFIX_IE_flowStartMilliseconds);
sys/net/if_pflow.c
298
pflowif->sc_tmpl_ipfix.ipv6_tmpl.start.len = htons(8);
sys/net/if_pflow.c
300
htons(PFIX_IE_flowEndMilliseconds);
sys/net/if_pflow.c
301
pflowif->sc_tmpl_ipfix.ipv6_tmpl.finish.len = htons(8);
sys/net/if_pflow.c
303
htons(PFIX_IE_sourceTransportPort);
sys/net/if_pflow.c
304
pflowif->sc_tmpl_ipfix.ipv6_tmpl.src_port.len = htons(2);
sys/net/if_pflow.c
306
htons(PFIX_IE_destinationTransportPort);
sys/net/if_pflow.c
307
pflowif->sc_tmpl_ipfix.ipv6_tmpl.dest_port.len = htons(2);
sys/net/if_pflow.c
309
htons(PFIX_IE_ipClassOfService);
sys/net/if_pflow.c
310
pflowif->sc_tmpl_ipfix.ipv6_tmpl.tos.len = htons(1);
sys/net/if_pflow.c
312
htons(PFIX_IE_protocolIdentifier);
sys/net/if_pflow.c
313
pflowif->sc_tmpl_ipfix.ipv6_tmpl.protocol.len = htons(1);
sys/net/if_pflow.c
754
h.version = htons(PFLOW_PROTO_5);
sys/net/if_pflow.c
766
set_hdr.set_id = htons(set_id);
sys/net/if_pflow.c
787
flow1->if_index_in = htons(st->if_index_in);
sys/net/if_pflow.c
788
flow1->if_index_out = htons(st->if_index_out);
sys/net/if_pflow.c
789
flow2->if_index_in = htons(st->if_index_out);
sys/net/if_pflow.c
790
flow2->if_index_out = htons(st->if_index_in);
sys/net/if_pfsync.c
1440
ip->ip_len = htons(m->m_pkthdr.len);
sys/net/if_pfsync.c
1441
ip->ip_id = htons(ip_randomid());
sys/net/if_pfsync.c
1447
ph->len = htons(m->m_pkthdr.len - sizeof(*ip));
sys/net/if_pfsync.c
1476
subh->count = htons(count);
sys/net/if_pfsync.c
1505
subh->count = htons(count);
sys/net/if_pfsync.c
1877
h->subh.count = htons(1);
sys/net/if_pfsync.c
2128
h->subh.count = htons(1);
sys/net/if_pfsync.c
2215
subh->count = htons(count);
sys/net/if_pfsync.c
2409
ut->rdomain = htons(tdb->tdb_rdomain);
sys/net/if_pfsync.c
3124
subh->count = htons(rcount);
sys/net/if_pfsync.c
808
ip->ip_off = htons(IP_DF);
sys/net/if_pfsync.c
858
h->ph.len = htons(mlen);
sys/net/if_pfsync.c
863
h->ip.ip_len = htons(mlen);
sys/net/if_pfsync.c
864
h->ip.ip_id = htons(ip_randomid());
sys/net/if_pfsync.c
898
h->subh.count = htons(1);
sys/net/if_pppoe.c
1501
eh->ether_type = htons(ETHERTYPE_PPPOEDISC);
sys/net/if_pppoe.c
946
eh->ether_type = htons(etype);
sys/net/if_spppsubr.c
2967
desiredaddr.s6_addr16[0] = htons(0xfe80);
sys/net/if_spppsubr.c
3120
suggestaddr.s6_addr16[0] = htons(0xfe80);
sys/net/if_spppsubr.c
4084
*mtod(m, u_int16_t *) = htons(cp->proto);
sys/net/if_spppsubr.c
4109
lh->len = htons (LCP_HEADER_LEN + len);
sys/net/if_spppsubr.c
671
protocol = htons(PPP_IP);
sys/net/if_spppsubr.c
687
protocol = htons(PPP_IPV6);
sys/net/if_spppsubr.c
968
*mtod(m, u_int16_t *) = htons(proto);
sys/net/if_spppsubr.c
972
lh->len = htons (LCP_HEADER_LEN + len);
sys/net/if_veb.c
1229
eh->ether_type == htons(ETHERTYPE_VLAN)) {
sys/net/if_veb.c
1243
if (eh->ether_type == htons(ETHERTYPE_VLAN)) {
sys/net/if_veb.c
2625
vr.vr_arp_op = htons(brla->brla_op);
sys/net/if_veb.c
655
return (eh->ether_type == htons(ETHERTYPE_QINQ));
sys/net/if_veb.c
685
if (eh->ether_type != htons(ETHERTYPE_ARP))
sys/net/if_veb.c
692
if (ea.arp_hrd != htons(ARPHRD_ETHER) ||
sys/net/if_veb.c
693
ea.arp_pro != htons(ETHERTYPE_IP) ||
sys/net/if_veb.c
699
if (ea.arp_op != htons(ARPOP_REQUEST) &&
sys/net/if_veb.c
700
ea.arp_op != htons(ARPOP_REPLY))
sys/net/if_veb.c
704
if (ea.arp_op != htons(ARPOP_REVREQUEST) &&
sys/net/if_veb.c
705
ea.arp_op != htons(ARPOP_REVREPLY))
sys/net/if_veb.c
709
if (vr->vr_arp_op != htons(0) && vr->vr_arp_op != ea.arp_op)
sys/net/if_vlan.c
361
evh.evl_encap_proto = htons(type);
sys/net/if_vlan.c
362
evh.evl_tag = htons(tag);
sys/net/if_vlan.c
467
if (eh->ether_type == htons(ETHERTYPE_VLAN) ||
sys/net/if_vlan.c
468
eh->ether_type == htons(ETHERTYPE_QINQ)) {
sys/net/if_vxlan.c
1332
in_port_t port = htons(VXLAN_PORT);
sys/net/if_vxlan.c
1345
if (src4->sin_port != htons(0))
sys/net/if_vxlan.c
1356
if (dst4->sin_port != htons(0))
sys/net/if_vxlan.c
1375
if (src6->sin6_port != htons(0))
sys/net/if_vxlan.c
1389
if (dst6->sin6_port != htons(0))
sys/net/if_vxlan.c
1505
sc->sc_port = htons(0);
sys/net/if_vxlan.c
1693
if (sin->sin_port != htons(0))
sys/net/if_vxlan.c
1710
if (sin6->sin6_port != htons(0))
sys/net/if_vxlan.c
381
uh->uh_sum = htons(0);
sys/net/if_vxlan.c
425
ip->ip_len = htons(m->m_pkthdr.len);
sys/net/if_vxlan.c
451
ip6->ip6_plen = htons(len);
sys/net/if_vxlan.c
818
sc->sc_df = ifr->ifr_df ? htons(IP_DF) : htons(0);
sys/net/if_wg.c
2347
port = htons(iface_o.i_port);
sys/net/pf.c
1560
d->max_win = htons(s->max_win);
sys/net/pf.c
1561
d->mss = htons(s->mss);
sys/net/pf.c
1566
htons(s->scrub->pfss_flags & PFSS_TIMESTAMP);
sys/net/pf.c
1604
sp->key[PF_SK_WIRE].rdomain = htons(st->key[PF_SK_WIRE]->rdomain);
sys/net/pf.c
1610
sp->key[PF_SK_STACK].rdomain = htons(st->key[PF_SK_STACK]->rdomain);
sys/net/pf.c
1633
sp->state_flags = htons(st->state_flags);
sys/net/pf.c
1635
sp->state_flags |= htons(PFSTATE_ACK);
sys/net/pf.c
1659
sp->max_mss = htons(st->max_mss);
sys/net/pf.c
2816
u_int16_t old = htons(hi ? (*f << 8) : *f);
sys/net/pf.c
2817
u_int16_t new = htons(hi ? ( v << 8) : v);
sys/net/pf.c
2980
*virtual_type = htons(type);
sys/net/pf.c
3072
*virtual_type = htons(*virtual_type);
sys/net/pf.c
3089
*virtual_type = htons(type);
sys/net/pf.c
3105
*virtual_type = htons(*virtual_type);
sys/net/pf.c
3184
pf_cksum_fixup(pc, htons(af_proto), 0x0, af_proto);
sys/net/pf.c
3185
pf_cksum_fixup(pc, htons(dlen), 0x0, af_proto);
sys/net/pf.c
3217
ip4->ip_len = htons(hlen + dlen);
sys/net/pf.c
3218
ip4->ip_id = htons(ip_randomid());
sys/net/pf.c
3219
ip4->ip_off = htons(IP_DF);
sys/net/pf.c
3230
ip6->ip6_plen = htons(dlen);
sys/net/pf.c
3253
pf_cksum_fixup(pc, 0x0, htons(naf_proto), naf_proto);
sys/net/pf.c
3254
pf_cksum_fixup(pc, 0x0, htons(dlen), naf_proto);
sys/net/pf.c
3311
ip4->ip_len = htons(sizeof(*ip4) + pd2->tot_len - ohlen);
sys/net/pf.c
3312
ip4->ip_id = htons(ip_randomid());
sys/net/pf.c
3313
ip4->ip_off = htons(IP_DF);
sys/net/pf.c
3327
ip6->ip6_plen = htons(pd2->tot_len - ohlen);
sys/net/pf.c
3361
htons(dlen), htons(dlen + d), pd->proto);
sys/net/pf.c
3568
pf_patch_16(pd, &icmp4->icmp_nextmtu, htons(mtu));
sys/net/pf.c
3682
h->ip_len = htons(tlen);
sys/net/pf.c
3686
h->ip_len = htons(len);
sys/net/pf.c
3687
h->ip_off = htons(atomic_load_int(&ip_mtudisc) ? IP_DF : 0);
sys/net/pf.c
3699
h6->ip6_plen = htons(tlen);
sys/net/pf.c
3719
th->th_win = htons(win);
sys/net/pf.c
3725
mss = htons(mss);
sys/net/pf.c
5503
if (virtual_type == htons(ICMP_ECHO)) {
sys/net/pf.c
5521
if (virtual_type == htons(ICMP6_ECHO_REQUEST)) {
sys/net/pf.c
6454
if (h2.ip_off & htons(IP_OFFMASK)) {
sys/net/pf.c
6903
if (virtual_type == htons(ICMP_ECHO))
sys/net/pf.c
6930
(virtual_type == htons(ICMP_ECHO) &&
sys/net/pf.c
6933
(virtual_type == htons(ICMP_ECHO)) ?
sys/net/pf.c
6936
(virtual_type == htons(ICMP_ECHO)) ?
sys/net/pf.c
7022
htons(ICMP6_ECHO_REQUEST))
sys/net/pf.c
7042
htons(ICMP6_ECHO_REQUEST)) &&
sys/net/pf.c
7046
htons(ICMP6_ECHO_REQUEST))
sys/net/pf.c
7050
htons(ICMP6_ECHO_REQUEST))
sys/net/pf.c
7401
if (ip->ip_off & htons(IP_DF)) {
sys/net/pf.c
7717
if ((h->ip_off & htons(IP_OFFMASK)) != 0)
sys/net/pf.c
7724
if ((h->ip_off & htons(IP_MF | IP_OFFMASK)) != 0 &&
sys/net/pf.c
8057
pd->virtual_proto = (h->ip_off & htons(IP_MF | IP_OFFMASK)) ?
sys/net/pf_ioctl.c
798
(stor) = htons((st)->elm); \
sys/net/pf_lb.c
140
if (pd->ndport == htons(ICMP_ECHO)) {
sys/net/pf_lb.c
148
if (pd->ndport == htons(ICMP6_ECHO_REQUEST)) {
sys/net/pf_lb.c
188
key.port[sidx] = htons(low);
sys/net/pf_lb.c
192
*nport = htons(low);
sys/net/pf_lb.c
207
key.port[sidx] = htons(tmp);
sys/net/pf_lb.c
213
*nport = htons(tmp);
sys/net/pf_lb.c
219
key.port[sidx] = htons(tmp);
sys/net/pf_lb.c
225
*nport = htons(tmp);
sys/net/pf_lb.c
743
nport = htons((u_int16_t)tmp_nport);
sys/net/pf_lb.c
745
nport = htons(r->rdr.proxy_port[0]);
sys/net/pf_lb.c
802
pd->ndport = htons(pd->ndport);
sys/net/pf_lb.c
809
pd->nsport = htons(pd->nsport);
sys/net/pf_lb.c
818
pd->ndport = htons(pd->ndport);
sys/net/pf_lb.c
825
pd->nsport = htons(pd->nsport);
sys/net/pf_lb.c
835
pd->ndport = htons(r->rdr.proxy_port[0]);
sys/net/pf_norm.c
1029
if (pf_status.reass & PF_REASS_NODF && h->ip_off & htons(IP_DF))
sys/net/pf_norm.c
1030
h->ip_off &= htons(~IP_DF);
sys/net/pf_norm.c
1036
if (h->ip_off & htons(IP_DF)) {
sys/net/pf_norm.c
1059
if (h->ip_off & ~htons(IP_DF))
sys/net/pf_norm.c
1060
h->ip_off &= htons(IP_DF);
sys/net/pf_norm.c
1644
htons(maxmss), PF_ALGNMNT(mssoffopts));
sys/net/pf_norm.c
1668
if (flags & PFSTATE_NODF && af == AF_INET && h->ip_off & htons(IP_DF)) {
sys/net/pf_norm.c
1670
h->ip_off &= htons(~IP_DF);
sys/net/pf_norm.c
1707
!(h->ip_off & ~htons(IP_DF))) {
sys/net/pf_norm.c
1709
h->ip_id = htons(ip_randomid());
sys/net/pf_norm.c
811
ip->ip_len = htons(hdrlen + total);
sys/net/pf_norm.c
907
ip6->ip6_plen = htons(hdrlen - sizeof(struct ip6_hdr) + total);
sys/net/pf_osfp.c
137
if ((ip->ip_off & htons(IP_OFFMASK)) != 0)
sys/net/pf_osfp.c
150
if (ip->ip_off & htons(IP_DF))
sys/net/pipex.c
1319
pppoe->session_id = htons(session->session_id);
sys/net/pipex.c
1320
pppoe->length = htons(len);
sys/net/pipex.c
1399
ip->ip_len = htons(m0->m_pkthdr.len);
sys/net/pipex.c
1414
gre->type = htons(PIPEX_GRE_PROTO_PPP);
sys/net/pipex.c
1415
gre->call_id = htons(session->peer_session_id);
sys/net/pipex.c
1417
gre->len = htons(len);
sys/net/pipex.c
1431
gre->flags = htons(gre->flags);
sys/net/pipex.c
1883
l2tp->length = htons(plen);
sys/net/pipex.c
1884
l2tp->tunnel_id = htons(session->proto.l2tp.peer_tunnel_id);
sys/net/pipex.c
1885
l2tp->session_id = htons(session->peer_session_id);
sys/net/pipex.c
1891
seq->ns = htons(session->proto.l2tp.ns_nxt);
sys/net/pipex.c
1895
seq->nr = htons(session->proto.l2tp.nr_acked);
sys/net/pipex.c
1898
l2tp->flagsver = htons(l2tp->flagsver);
sys/net/pipex.c
1904
udp->uh_ulen = htons(plen);
sys/net/pipex.c
1918
ip->ip_len = htons(hlen + plen);
sys/net/pipex.c
2308
seq->ns = htons(ns);
sys/net/pipex.c
2312
seq->nr = htons(nr);
sys/net/pipex.c
2693
hdr->protocol = htons(hdr->protocol);
sys/net/pipex.c
2694
hdr->coher_cnt = htons(hdr->coher_cnt);
sys/net/pipex.c
2892
acc = htons(mss);
sys/net/pipex.c
2893
acc -= htons(maxmss);
sys/net/slcompress.c
149
(f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
sys/net/slcompress.c
152
(f) = htons(ntohs(f) + (u_int32_t)*cp++); \
sys/net/slcompress.c
158
(f) = htons((cp[1] << 8) | cp[2]); \
sys/net/slcompress.c
161
(f) = htons((u_int32_t)*cp++); \
sys/net/slcompress.c
184
if ((ip->ip_off & htons(0x3fff)) || m->m_len < 40)
sys/net/slcompress.c
530
th->th_sum = htons((*cp << 8) | cp[1]);
sys/net/slcompress.c
568
cs->cs_ip.ip_id = htons(ntohs(cs->cs_ip.ip_id) + 1);
sys/net/slcompress.c
583
cs->cs_ip.ip_len = htons(total_len);
sys/net/toeplitz.c
201
uint16_t skey = htons(stoeplitz_keyseed);
sys/net/trunklacp.c
1031
return (htons(key));
sys/net/trunklacp.c
329
info->lip_systemid.lsi_prio = htons(lsc->lsc_sys_prio);
sys/net/trunklacp.c
332
info->lip_portid.lpi_prio = htons(lsc->lsc_port_prio);
sys/net/trunklacp.c
333
info->lip_portid.lpi_portno = htons(lp->lp_ifp->if_index);
sys/net/trunklacp.c
343
info->mi_rq_port = htons(ifp->if_index);
sys/net/trunklacp.c
369
du->ldu_eh.ether_type = htons(ETHERTYPE_SLOW);
sys/net/trunklacp.c
421
mdu->mdu_eh.ether_type = htons(ETHERTYPE_SLOW);
sys/net80211/ieee80211_input.c
1073
eh->ether_type != htons(ETHERTYPE_EAPOL)) {
sys/net80211/ieee80211_input.c
1090
eh->ether_type != htons(ETHERTYPE_EAPOL)) {
sys/net80211/ieee80211_input.c
1115
eh->ether_type == htons(ETHERTYPE_EAPOL)) {
sys/net80211/ieee80211_input.c
1177
eh.ether_type = htons(m->m_pkthdr.len - hdrlen);
sys/net80211/ieee80211_output.c
496
if (eh.ether_type == htons(ETHERTYPE_IP)) {
sys/net80211/ieee80211_output.c
504
else if (eh.ether_type == htons(ETHERTYPE_IPV6)) {
sys/net80211/ieee80211_output.c
678
eh.ether_type != htons(ETHERTYPE_EAPOL)) {
sys/net80211/ieee80211_output.c
694
eh.ether_type != htons(ETHERTYPE_EAPOL)) {
sys/net80211/ieee80211_pae_output.c
76
eh->ether_type = htons(ETHERTYPE_EAPOL);
sys/netinet/icmp6.h
353
#define NI_SUPTYPE_FLAG_COMPRESS htons(0x0001)
sys/netinet/icmp6.h
354
#define NI_FQDN_FLAG_VALIDTTL htons(0x0001)
sys/netinet/icmp6.h
356
#define NI_NODEADDR_FLAG_TRUNCATE htons(0x0001)
sys/netinet/icmp6.h
357
#define NI_NODEADDR_FLAG_ALL htons(0x0002)
sys/netinet/icmp6.h
358
#define NI_NODEADDR_FLAG_COMPAT htons(0x0004)
sys/netinet/icmp6.h
359
#define NI_NODEADDR_FLAG_LINKLOCAL htons(0x0008)
sys/netinet/icmp6.h
360
#define NI_NODEADDR_FLAG_SITELOCAL htons(0x0010)
sys/netinet/icmp6.h
361
#define NI_NODEADDR_FLAG_GLOBAL htons(0x0020)
sys/netinet/icmp6.h
362
#define NI_NODEADDR_FLAG_ANYCAST htons(0x0040) /* not in spec */
sys/netinet/icmp6.h
431
#define ICMP6_RR_RESULT_FLAGS_OOB htons(0x0002)
sys/netinet/icmp6.h
432
#define ICMP6_RR_RESULT_FLAGS_FORBIDDEN htons(0x0001)
sys/netinet/if_ether.c
319
eh->ether_type = htons(ETHERTYPE_ARP); /* if_output will not swap */
sys/netinet/if_ether.c
320
ea->arp_hrd = htons(ARPHRD_ETHER);
sys/netinet/if_ether.c
321
ea->arp_pro = htons(ETHERTYPE_IP);
sys/netinet/if_ether.c
324
ea->arp_op = htons(ARPOP_REQUEST);
sys/netinet/if_ether.c
347
ea->arp_op = htons(ARPOP_REPLY);
sys/netinet/if_ether.c
348
ea->arp_pro = htons(ETHERTYPE_IP); /* let's be sure! */
sys/netinet/if_ether.c
360
eh->ether_type = htons(ETHERTYPE_ARP);
sys/netinet/if_ether.c
979
eh->ether_type = htons(ETHERTYPE_REVARP);
sys/netinet/if_ether.c
980
ea->arp_hrd = htons(ARPHRD_ETHER);
sys/netinet/if_ether.c
981
ea->arp_pro = htons(ETHERTYPE_IP);
sys/netinet/if_ether.c
984
ea->arp_op = htons(ARPOP_REVREQUEST);
sys/netinet/igmp.c
718
ip->ip_len = htons(sizeof(struct ip) + IGMP_MINLEN);
sys/netinet/in.h
47
#ifndef htons
sys/netinet/in4_cksum.c
116
u.ipov.ih_len = htons(len);
sys/netinet/in_pcb.c
490
localport = htons(candidate);
sys/netinet/ip_ah.c
1073
iplen = htons(ntohs(iplen) + rplen + ahx->authsize);
sys/netinet/ip_ah.c
1082
iplen = htons(ntohs(iplen) + rplen + ahx->authsize);
sys/netinet/ip_carp.c
1105
ip->ip_len = htons(len);
sys/netinet/ip_carp.c
1106
ip->ip_id = htons(ip_randomid());
sys/netinet/ip_carp.c
1107
ip->ip_off = htons(IP_DF);
sys/netinet/ip_carp.c
1208
ip6->ip6_dst.s6_addr16[0] = htons(0xff02);
sys/netinet/ip_carp.c
1209
ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
sys/netinet/ip_carp.c
1290
mcast.s6_addr16[1] = htons(sc->sc_if.if_index);
sys/netinet/ip_carp.c
1908
addr6.sin6_addr.s6_addr16[0] = htons(0xff02);
sys/netinet/ip_carp.c
1909
addr6.sin6_addr.s6_addr16[1] = htons(sc->sc_if.if_index);
sys/netinet/ip_carp.c
1917
addr6.sin6_addr.s6_addr16[0] = htons(0xff02);
sys/netinet/ip_carp.c
1918
addr6.sin6_addr.s6_addr16[1] = htons(sc->sc_if.if_index);
sys/netinet/ip_ecn.c
164
old = htons(ip->ip_tos);
sys/netinet/ip_ecn.c
165
new = htons(tos);
sys/netinet/ip_icmp.c
1173
hdr.ieo.ieo_length = htons(sizeof(struct icmp_ext_obj_hdr) + len);
sys/netinet/ip_icmp.c
1190
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ip_icmp.c
173
if (oip->ip_off & htons(IP_OFFMASK))
sys/netinet/ip_icmp.c
256
icp->icmp_nextmtu = htons(destmtu);
sys/netinet/ip_icmp.c
273
nip->ip_len = htons(m->m_len);
sys/netinet/ip_icmp.c
879
ip->ip_off &= htons(IP_DF);
sys/netinet/ip_icmp.c
880
ip->ip_id = htons(ip_randomid());
sys/netinet/ip_input.c
1031
htons(ntohs(ipqe->ipqe_ip->ip_off) + i);
sys/netinet/ip_input.c
1033
htons(ntohs(ipqe->ipqe_ip->ip_len) - i);
sys/netinet/ip_input.c
1048
htons(ntohs(q->ipqe_ip->ip_len) - i);
sys/netinet/ip_input.c
1050
htons(ntohs(q->ipqe_ip->ip_off) + i);
sys/netinet/ip_input.c
1114
ip->ip_len = htons(next);
sys/netinet/ip_input.c
1541
ip->ip_len = htons(ntohs(ip->ip_len) - olen);
sys/netinet/ip_input.c
651
if (ISSET(ip->ip_off, htons(IP_OFFMASK | IP_MF))) {
sys/netinet/ip_input.c
665
ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
sys/netinet/ip_input.c
666
mff = ISSET(ip->ip_off, htons(IP_MF));
sys/netinet/ip_input.c
679
ip->ip_off = htons(ntohs(ip->ip_off) << 3);
sys/netinet/ip_input.c
725
ip->ip_len = htons(ntohs(ip->ip_len) + hlen);
sys/netinet/ip_ipcomp.c
500
ipcomp->ipcomp_cpi = htons(cpi);
sys/netinet/ip_ipip.c
385
ipo->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ip_ipip.c
395
ipo->ip_id = htons(ip_randomid());
sys/netinet/ip_ipip.c
415
ipo->ip_off = htons(ipo->ip_off);
sys/netinet/ip_ipip.c
485
ip6o->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6o));
sys/netinet/ip_output.c
130
ip->ip_off &= htons(IP_DF);
sys/netinet/ip_output.c
131
ip->ip_id = htons(ip_randomid());
sys/netinet/ip_output.c
383
ip->ip_off |= htons(IP_DF);
sys/netinet/ip_output.c
445
if (ip->ip_off & htons(IP_DF)) {
sys/netinet/ip_output.c
619
if (ip_mtudisc_local && (ip->ip_off & htons(IP_DF)) && tdb->tdb_mtu &&
sys/netinet/ip_output.c
627
if (ip_mtudisc_local && ip->ip_off & htons(IP_DF))
sys/netinet/ip_output.c
726
if (ip->ip_off & htons(IP_MF))
sys/netinet/ip_output.c
732
mhip->ip_off = htons(mhip->ip_off);
sys/netinet/ip_output.c
735
mhip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ip_output.c
751
ip->ip_off |= htons(IP_MF);
sys/netinet/ip_output.c
753
ip->ip_len = htons(m0->m_pkthdr.len);
sys/netinet/ip_output.c
813
ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
sys/netinet/ipsec_input.c
259
spi = ntohl(htons(cpi));
sys/netinet/ipsec_input.c
422
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ipsec_input.c
441
ip6->ip6_plen = htons(m->m_pkthdr.len - skip);
sys/netinet/ipsec_output.c
199
ISSET(ip->ip_off, htons(IP_DF)) ?
sys/netinet/ipsec_output.c
234
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ipsec_output.c
256
ip6->ip6_plen = htons(m->m_pkthdr.len
sys/netinet/ipsec_output.c
278
ip->ip_off |= htons(IP_DF);
sys/netinet/ipsec_output.c
454
uh->uh_sport = uh->uh_dport = htons(udpencap_port_local);
sys/netinet/ipsec_output.c
458
uh->uh_ulen = htons(m->m_pkthdr.len - iphlen);
sys/netinet/ipsec_output.c
471
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/ipsec_output.c
489
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(*ip6));
sys/netinet/raw_ip.c
285
ip->ip_off = htons(0);
sys/netinet/raw_ip.c
287
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/raw_ip.c
303
ip->ip_id = htons(ip_randomid());
sys/netinet/tcp_input.c
4080
th->th_win = htons(sc->sc_win);
sys/netinet/tcp_input.c
4180
ip->ip_len = htons(tlen);
sys/netinet/tcp_input.c
4337
head->ip4->ip_len = htons(head->iplen + tail->paylen);
sys/netinet/tcp_input.c
4340
htons(head->iplen - head->iphlen + tail->paylen);
sys/netinet/tcp_output.c
1061
ip->ip_len = htons(m->m_pkthdr.len);
sys/netinet/tcp_output.c
1199
if (ISSET(ip->ip_off, htons(IP_OFFMASK | IP_MF)) ||
sys/netinet/tcp_output.c
1291
mhip->ip_len = htons(hlen + len);
sys/netinet/tcp_output.c
1292
mhip->ip_id = htons(ip_randomid());
sys/netinet/tcp_output.c
1302
mhip6->ip6_plen = htons(hlen - iphlen + len);
sys/netinet/tcp_output.c
1319
ip->ip_len = htons(m0->m_pkthdr.len);
sys/netinet/tcp_output.c
1325
ip6->ip6_plen = htons(m0->m_pkthdr.len - iphlen);
sys/netinet/tcp_output.c
515
mss = htons((u_int16_t) tcp_mss(tp, 0));
sys/netinet/tcp_output.c
845
th->th_win = htons((u_int16_t) (win>>tp->rcv_scale));
sys/netinet/tcp_output.c
852
th->th_urp = htons((u_int16_t)urp);
sys/netinet/tcp_subr.c
1061
ippseudo.ippseudo_len = htons(m->m_pkthdr.len - iphlen);
sys/netinet/tcp_subr.c
1094
th0.th_win = htons(th0.th_win);
sys/netinet/tcp_subr.c
1095
th0.th_urp = htons(th0.th_urp);
sys/netinet/tcp_subr.c
235
ipovly->ih_len = htons(sizeof (struct tcphdr));
sys/netinet/tcp_subr.c
256
ip6->ip6_plen = htons(sizeof(struct tcphdr)); /*XXX*/
sys/netinet/tcp_subr.c
367
th->th_win = htons((u_int16_t)win);
sys/netinet/tcp_subr.c
399
ip6->ip6_plen = htons(ip6->ip6_plen);
sys/netinet/tcp_subr.c
407
ip->ip_len = htons(tlen);
sys/netinet/udp_usrreq.c
1076
ui->ui_len = htons((u_int16_t)len + sizeof (struct udphdr));
sys/netinet/udp_usrreq.c
1082
((struct ip *)ui)->ip_len = htons(sizeof (struct udpiphdr) + len);
sys/netinet/udp_usrreq.c
314
uh->uh_dport == htons(udpencap_port_local)) {
sys/netinet6/frag6.c
417
ip6->ip6_plen = htons(next);
sys/netinet6/icmp6.c
1226
redtgt6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/icmp6.c
1228
reddst6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/icmp6.c
1591
ip6->ip6_plen = htons(m->m_pkthdr.len - sizeof(struct ip6_hdr));
sys/netinet6/icmp6.c
988
sin6.sin6_addr.s6_addr16[1] = htons(m->m_pkthdr.ph_ifidx);
sys/netinet6/in6.c
520
sa6->sin6_addr.s6_addr16[1] = htons(ifidx);
sys/netinet6/in6.c
521
} else if (sa6->sin6_addr.s6_addr16[1] != htons(ifidx))
sys/netinet6/in6.c
760
llsol.sin6_addr.s6_addr16[0] = htons(0xff02);
sys/netinet6/in6.c
761
llsol.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6.c
784
mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6.c
833
mltaddr.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6.h
182
#define __IPV6_ADDR_INT16_ULL htons(0xfe80)
sys/netinet6/in6.h
183
#define __IPV6_ADDR_INT16_USL htons(0xfec0)
sys/netinet6/in6.h
184
#define __IPV6_ADDR_INT16_MLL htons(0xff02)
sys/netinet6/in6_ifattach.c
236
ifra.ifra_addr.sin6_addr.s6_addr16[0] = htons(0xfe80);
sys/netinet6/in6_ifattach.c
237
ifra.ifra_addr.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6_ifattach.c
244
ifra.ifra_addr.sin6_addr.s6_addr16[0] = htons(0xfe80);
sys/netinet6/in6_ifattach.c
245
ifra.ifra_addr.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6_ifattach.c
426
sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6_ifattach.c
437
sin6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6_src.c
125
sa6.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/in6_src.c
271
ifp = if_get(htons(dstsock->sin6_scope_id));
sys/netinet6/in6_src.c
434
in6->s6_addr16[1] = htons(scopeid & 0xffff);
sys/netinet6/ip6_input.c
434
ip6->ip6_src.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/ip6_input.c
436
ip6->ip6_dst.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/ip6_output.c
2037
htons(ifp->if_index);
sys/netinet6/ip6_output.c
2089
htons(mreq->ipv6mr_interface);
sys/netinet6/ip6_output.c
277
ip6->ip6_plen = htons(plen);
sys/netinet6/ip6_output.c
827
ip6f->ip6f_offlg = htons((off - hlen) & ~7);
sys/netinet6/ip6_output.c
834
mhip6->ip6_plen = htons(m->m_pkthdr.len -
sys/netinet6/mld6.c
130
all_nodes.s6_addr16[1] = htons(in6m->in6m_ifidx);
sys/netinet6/mld6.c
161
all_nodes.s6_addr16[1] = htons(in6m->in6m_ifidx);
sys/netinet6/mld6.c
163
all_routers.s6_addr16[1] = htons(in6m->in6m_ifidx);
sys/netinet6/mld6.c
244
htons(ifp->if_index); /* XXX */
sys/netinet6/mld6.c
266
all_nodes.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/mld6.c
340
htons(ifp->if_index); /* XXX */
sys/netinet6/mld6.c
95
u_int16_t rtalert_code = htons((u_int16_t)IP6OPT_RTALERT_MLD);
sys/netinet6/nd6.c
873
llsol.s6_addr16[0] = htons(0xff02);
sys/netinet6/nd6.c
874
llsol.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6.c
911
llsol.s6_addr16[0] = htons(0xff02);
sys/netinet6/nd6.c
912
llsol.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6.c
961
*idp = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
1163
daddr6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
152
taddr6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
290
saddr6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
397
dst_sa.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
487
ip6->ip6_plen = htons((u_short)icmp6len);
sys/netinet6/nd6_nbr.c
553
taddr6.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
888
dst_sa.sin6_addr.s6_addr16[1] = htons(ifp->if_index);
sys/netinet6/nd6_nbr.c
952
ip6->ip6_plen = htons((u_short)icmp6len);
sys/netinet6/raw_ip6.c
471
ip6->ip6_plen = htons((u_short)plen);
sys/netinet6/udp6_output.c
198
udp6->uh_ulen = htons((u_short)plen);
sys/netinet6/udp6_output.c
208
ip6->ip6_plen = htons((u_short)plen);
sys/netmpls/mpls_input.c
310
old = htons(ip->ip_ttl << 8);
sys/netmpls/mpls_input.c
311
new = htons(ttl << 8);
sys/netmpls/mpls_input.c
414
ip->ip_id = htons(ip_randomid());
sys/nfs/krpc_subr.c
161
*portp = htons(PMAPPORT);
sys/nfs/krpc_subr.c
175
sin->sin_port = htons(PMAPPORT);
sys/nfs/krpc_subr.c
278
sin->sin_port = htons(0);
sys/nfs/nfs_boot.c
356
bpsin->sin_port = htons(PMAPPORT);
sys/nfs/nfs_boot.c
380
bpsin->sin_port = htons(port);
sys/nfs/nfs_socket.c
283
sin->sin_port = htons(0);
sys/sys/endian.h
105
#define HTONS(x) (x) = htons((u_int16_t)(x))
sys/sys/endian.h
93
#ifndef htons
usr.bin/dig/lib/dns/tsig.c
1188
addcount = htons((uint16_t)(addcount_n - 1));
usr.bin/dig/lib/dns/tsig.c
1197
id = htons(tsig.originalid);
usr.bin/dig/lib/dns/tsig.c
875
addcount = htons((uint16_t)(addcount_n - 1));
usr.bin/dig/lib/dns/tsig.c
881
id = htons(tsig.originalid);
usr.bin/ftp/ftp.c
1412
data_addr.sin.sin_port = htons(pack2(port, 0));
usr.bin/ftp/ftp.c
1443
data_addr.sin.sin_port = htons(pack2(port, 0));
usr.bin/ftp/ftp.c
1477
data_addr.sin6.sin6_port = htons(pack2(port, 0));
usr.bin/ftp/ftp.c
1504
data_addr.sin.sin_port = htons(port[1]);
usr.bin/getent/getent.c
415
se = getservbyport(htons(port), proto);
usr.bin/kdump/ktrstruct.c
111
printf("[%s%s]:%u", addr, scope, htons(sa_in6->sin6_port));
usr.bin/lex/tables.c
304
vnet = htons (v);
usr.bin/nc/netcat.c
1552
sv = getservbyport(htons(p), proto);
usr.bin/netstat/inet.c
839
server_addr.sin_port = htons(PMAPPORT);
usr.bin/openssl/s_socket.c
179
server.sin_port = htons((unsigned short) port);
usr.bin/rpcinfo/rpcinfo.c
238
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
261
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
298
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
318
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
366
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
387
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
424
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
444
addr.sin_port = htons(portnum);
usr.bin/rpcinfo/rpcinfo.c
508
server_addr.sin_port = htons(PMAPPORT);
usr.bin/rusers/rusers.c
441
raddr.sin_port = htons(port);
usr.bin/rusers/rusers.c
538
baddr.sin_port = htons(PMAPPORT);
usr.bin/sndiod/sock.c
1326
desc->addr = htons(c->addr);
usr.bin/sndiod/sock.c
1327
desc->maxval = htons(c->maxval);
usr.bin/sndiod/sock.c
1328
desc->curval = htons(c->curval);
usr.bin/sndiod/sock.c
1372
f->wmsg.u.ctlset.addr = htons(c->addr);
usr.bin/sndiod/sock.c
1373
f->wmsg.u.ctlset.val = htons(c->curval);
usr.bin/sndiod/sock.c
997
m->u.par.pchan = htons(s->mix.nch);
usr.bin/sndiod/sock.c
999
m->u.par.rchan = htons(s->sub.nch);
usr.bin/ssh/addr.c
80
in4->sin_port = htons(port);
usr.bin/ssh/addr.c
92
in6->sin6_port = htons(port);
usr.bin/ssh/channels.c
3911
*lport_p = htons(*allocated_listen_port);
usr.bin/ssh/ssh.c
593
sin_port = htons(port);
usr.bin/ssh/ssh.c
597
sin6_port = htons(port);
usr.bin/talk/get_names.c
121
msg.addr.sa_family = htons(AF_INET);
usr.bin/talk/get_names.c
122
msg.ctl_addr.sa_family = htons(AF_INET);
usr.bin/talk/invite.c
81
msg.addr.sa_family = htons(my_addr.sin_family);
usr.bin/talk/look_up.c
53
msg.ctl_addr.sa_family = htons(ctl_addr.sin_family);
usr.bin/tftp/tftp.c
159
dp->th_opcode = htons((u_short)DATA);
usr.bin/tftp/tftp.c
160
dp->th_block = htons(block);
usr.bin/tftp/tftp.c
305
ap->th_opcode = htons((u_short)ACK);
usr.bin/tftp/tftp.c
306
ap->th_block = htons(block);
usr.bin/tftp/tftp.c
410
ap->th_opcode = htons((u_short)ACK);
usr.bin/tftp/tftp.c
411
ap->th_block = htons(block);
usr.bin/tftp/tftp.c
448
tp->th_opcode = htons((u_short)request);
usr.bin/tftp/tftp.c
488
tp->th_opcode = htons((u_short)ERROR);
usr.bin/tftp/tftp.c
489
tp->th_code = htons((u_short)error);
usr.sbin/acme-client/http.c
219
((struct sockaddr_in *)&ss)->sin_port = htons(port);
usr.sbin/acme-client/http.c
226
((struct sockaddr_in6 *)&ss)->sin6_port = htons(port);
usr.sbin/amd/amd/afs_ops.c
145
sin.sin_port = htons(port);
usr.sbin/amd/amd/nfs_ops.c
556
sin.sin_port = htons(port);
usr.sbin/amd/amd/nfs_ops.c
558
sin.sin_port = htons(NFS_PORT); /* XXX should use portmapper */
usr.sbin/amd/amd/srvr_nfs.c
171
np->np_mountd = htons((u_short) port);
usr.sbin/amd/amd/srvr_nfs.c
220
sin.sin_port = htons(PMAPPORT);
usr.sbin/amd/amd/srvr_nfs.c
642
ip->sin_port = htons(NFS_PORT);
usr.sbin/amd/amq/amq.c
539
addr.sin_port = htons((u_short)alport);
usr.sbin/arp/arp.c
907
pkt.hdr.ether_type = htons(0);
usr.sbin/bgpctl/parser.c
1526
u16 = htons(val);
usr.sbin/bgpd/kroute.c
2730
htons(satosin6(sa)->sin6_scope_id);
usr.sbin/bgpd/kroute.c
2754
htons(satosin6(sa)->sin6_scope_id);
usr.sbin/bgpd/parse.y
4208
((struct sockaddr_in *)&la->sa)->sin_port = htons(BGP_PORT);
usr.sbin/bgpd/parse.y
4218
((struct sockaddr_in6 *)&la->sa)->sin6_port = htons(BGP_PORT);
usr.sbin/bgpd/parse.y
5866
u16 = htons(val);
usr.sbin/bgpd/pfkey.c
225
htons(sport);
usr.sbin/bgpd/pfkey.c
227
htons(0xffff);
usr.sbin/bgpd/pfkey.c
237
htons(sport);
usr.sbin/bgpd/pfkey.c
239
htons(0xffff);
usr.sbin/bgpd/pfkey.c
252
htons(dport);
usr.sbin/bgpd/pfkey.c
254
htons(0xffff);
usr.sbin/bgpd/pfkey.c
264
htons(dport);
usr.sbin/bgpd/pfkey.c
266
htons(0xffff);
usr.sbin/bgpd/rde.c
4587
i = htons(6); /* path attr len */
usr.sbin/bgpd/rde.c
4592
i = htons(afi);
usr.sbin/bgpd/rde_update.c
756
tas = htons(AS_TRANS);
usr.sbin/bgpd/rde_update.c
759
tas = htons(ntohl(tmp32));
usr.sbin/bgpd/session_bgp.c
1104
datalen = htons(datalen);
usr.sbin/bgpd/session_bgp.c
665
len = htons(len);
usr.sbin/bgpd/util.c
1177
sin6->sin6_port = htons(port);
usr.sbin/bgpd/util.c
1187
sin->sin_port = htons(port);
usr.sbin/bgplgd/slowcgi.c
1055
header->id = htons(c->id);
usr.sbin/bgplgd/slowcgi.c
1072
header->content_len = htons(n);
usr.sbin/bgplgd/slowcgi.c
1121
header->id = htons(c->id);
usr.sbin/bgplgd/slowcgi.c
1128
header->content_len = htons(n);
usr.sbin/bgplgd/slowcgi.c
1152
header->id = htons(c->id);
usr.sbin/bgplgd/slowcgi.c
1153
header->content_len = htons(sizeof(struct
usr.sbin/dhcpd/bootp.c
354
else if (!(raw.flags & htons(BOOTP_BROADCAST))) {
usr.sbin/dhcpd/convert.c
106
int16_t tmp = htons(val);
usr.sbin/dhcpd/convert.c
98
u_int16_t tmp = htons(val);
usr.sbin/dhcpd/dhcp.c
1434
(raw.flags & htons(BOOTP_BROADCAST))) &&
usr.sbin/dhcpd/dhcp.c
1445
} else if (!(raw.flags & htons(BOOTP_BROADCAST))) {
usr.sbin/dhcpd/dhcp.c
659
raw.flags = packet->raw->flags | htons(BOOTP_BROADCAST);
usr.sbin/dhcpd/dhcpd.c
189
server_port = htons(SERVER_PORT);
usr.sbin/dhcpd/dhcpd.c
190
client_port = htons(CLIENT_PORT);
usr.sbin/dhcpd/packet.c
109
eh.ether_type = htons(ETHERTYPE_IP);
usr.sbin/dhcpd/packet.c
126
ip.ip_len = htons(sizeof(ip) + sizeof(udp) + len);
usr.sbin/dhcpd/packet.c
141
udp.uh_ulen = htons(sizeof(udp) + len);
usr.sbin/dhcpd/packet.c
92
return (htons(sum));
usr.sbin/dhcpd/sync.c
102
shost->sh_addr.sin_port = htons(port);
usr.sbin/dhcpd/sync.c
169
sync_out.sin_port = htons(port);
usr.sbin/dhcpd/sync.c
200
sync_in.sin_port = htons(port);
usr.sbin/dhcpd/sync.c
421
hdr.sh_length = htons(sizeof(hdr) + sizeof(lv) + padlen + sizeof(end));
usr.sbin/dhcpd/sync.c
429
lv.lv_type = htons(DHCP_SYNC_LEASE);
usr.sbin/dhcpd/sync.c
430
lv.lv_length = htons(leaselen + padlen);
usr.sbin/dhcpd/sync.c
454
end.st_type = htons(DHCP_SYNC_END);
usr.sbin/dhcpd/sync.c
455
end.st_length = htons(sizeof(end));
usr.sbin/dhcrelay/dhcrelay.c
234
laddr.sin_port = htons(SERVER_PORT);
usr.sbin/dhcrelay/dhcrelay.c
241
ss2sin(&sp->to)->sin_port = htons(SERVER_PORT);
usr.sbin/dhcrelay/dhcrelay.c
332
if (!(packet->flags & htons(BOOTP_BROADCAST))) {
usr.sbin/dhcrelay/dhcrelay.c
334
to.sin_port = htons(CLIENT_PORT);
usr.sbin/dhcrelay/dhcrelay.c
337
to.sin_port = htons(CLIENT_PORT);
usr.sbin/dhcrelay/dhcrelay.c
348
if (!(packet->flags & htons(BOOTP_BROADCAST))) {
usr.sbin/dhcrelay/dhcrelay.c
505
ss2sin(&pc.pc_src)->sin_port = htons(SERVER_PORT);
usr.sbin/dhcrelay/dhcrelay.c
509
ss2sin(&pc.pc_dst)->sin_port = htons(CLIENT_PORT);
usr.sbin/dhcrelay/packet.c
115
eh.ether_type = htons(ETHERTYPE_IP);
usr.sbin/dhcrelay/packet.c
140
ip.ip_len = htons(sizeof(ip) + sizeof(udp) + datalen);
usr.sbin/dhcrelay/packet.c
155
udp.uh_ulen = htons(sizeof(udp) + datalen);
usr.sbin/dhcrelay/packet.c
97
return (htons(sum));
usr.sbin/dhcrelay6/dhcrelay6.c
548
dso->dso_code = htons(DHCP6_OPT_INTERFACEID);
usr.sbin/dhcrelay6/dhcrelay6.c
549
dso->dso_length = htons(pc->pc_raidatalen);
usr.sbin/dhcrelay6/dhcrelay6.c
557
dso->dso_code = htons(DHCP6_OPT_REMOTEID);
usr.sbin/dhcrelay6/dhcrelay6.c
559
htons(sizeof(pc->pc_enterpriseno) + pc->pc_remotelen);
usr.sbin/dhcrelay6/dhcrelay6.c
569
dso->dso_code = htons(DHCP6_OPT_RELAY_MSG);
usr.sbin/dhcrelay6/dhcrelay6.c
570
dso->dso_length = htons(*plen);
usr.sbin/dhcrelay6/dhcrelay6.c
669
htons(DHCP6_CLIENT_PORT);
usr.sbin/dhcrelay6/dhcrelay6.c
957
ss2sin6(&pc.pc_dst)->sin6_port = htons(DHCP6_SERVER_PORT);
usr.sbin/dhcrelay6/packet.c
107
eh.ether_type = htons(pc->pc_ethertype);
usr.sbin/dhcrelay6/packet.c
125
ip6.ip6_plen = htons(sizeof(uh) + plen);
usr.sbin/dhcrelay6/packet.c
97
return (htons(sum));
usr.sbin/dvmrpd/in_cksum.c
64
sum += htons(*(u_short *)cp);
usr.sbin/eigrpd/in_cksum.c
64
sum += htons(*(unsigned short *)cp);
usr.sbin/eigrpd/packet.c
60
eigrp_hdr.vrid = htons(EIGRP_VRID_UNICAST_AF);
usr.sbin/eigrpd/packet.c
61
eigrp_hdr.as = htons(as);
usr.sbin/eigrpd/packet.c
88
ip_hdr.ip_len = htons(ibuf_size(buf) + sizeof(ip_hdr));
usr.sbin/eigrpd/tlv.c
105
ts.type = htons(TLV_TYPE_SW_VERSION);
usr.sbin/eigrpd/tlv.c
106
ts.length = htons(TLV_TYPE_SW_VERSION_LEN);
usr.sbin/eigrpd/tlv.c
125
tm.type = htons(TLV_TYPE_MCAST_SEQ);
usr.sbin/eigrpd/tlv.c
126
tm.length = htons(TLV_TYPE_MCAST_SEQ_LEN);
usr.sbin/eigrpd/tlv.c
191
tlv.type = htons(tlv.type);
usr.sbin/eigrpd/tlv.c
222
emetric.reserved = htons(emetric.reserved);
usr.sbin/eigrpd/tlv.c
36
tp.type = htons(TLV_TYPE_PARAMETER);
usr.sbin/eigrpd/tlv.c
37
tp.length = htons(TLV_TYPE_PARAMETER_LEN);
usr.sbin/eigrpd/tlv.c
47
tp.holdtime = htons(ei->hello_holdtime);
usr.sbin/eigrpd/tlv.c
61
tlv.type = htons(TLV_TYPE_SEQ);
usr.sbin/eigrpd/util.c
271
tmp16 = htons(sin6->sin6_scope_id);
usr.sbin/ftp-proxy/filter.c
227
pfr.rule.dst.port[0] = htons(d_port);
usr.sbin/hostapd/hostapd.c
225
iapp->i_addr.sin_port = htons(IAPP_PORT);
usr.sbin/hostapd/iapp.c
104
frame.hdr.i_identifier = htons(iapp->i_cnt++);
usr.sbin/hostapd/iapp.c
108
frame.add.a_seqnum = htons(node->ni_rxseq);
usr.sbin/hostapd/iapp.c
157
hdr.i_identifier = htons(iapp->i_cnt++);
usr.sbin/hostapd/llc.c
90
llc->x_hdr.ether_type = htons(sizeof(buf));
usr.sbin/hostapd/parse.y
286
hostapd_cfg.c_iapp.i_addr.sin_port = htons($2);
usr.sbin/httpd/parse.y
1361
$$.val[0] = htons($2);
usr.sbin/httpd/parse.y
2463
s_conf->port = htons(tls ?
usr.sbin/httpd/parse.y
2506
return (htons((unsigned short)llval));
usr.sbin/httpd/server_fcgi.c
149
h->id = htons(1);
usr.sbin/httpd/server_fcgi.c
150
h->content_len = htons(sizeof(struct fcgi_begin_request_body));
usr.sbin/httpd/server_fcgi.c
155
begin->role = htons(FCGI_RESPONDER);
usr.sbin/httpd/server_fcgi.c
424
h.id = htons(1);
usr.sbin/httpd/server_fcgi.c
432
h.content_len = htons(EVBUFFER_LENGTH(evbuf));
usr.sbin/httpd/server_fcgi.c
493
h->content_len = htons(p->total_len);
usr.sbin/httpd/server_http.c
874
*portval = htons(*portval);
usr.sbin/identd/identd.c
1188
s4->sin_port = htons(c->client.port);
usr.sbin/identd/identd.c
1191
s4->sin_port = htons(c->server.port);
usr.sbin/identd/identd.c
1195
s6->sin6_port = htons(c->client.port);
usr.sbin/identd/identd.c
1198
s6->sin6_port = htons(c->server.port);
usr.sbin/inetd/inetd.c
638
u_short port = htons(strtonum(sep->se_service,
usr.sbin/inetd/inetd.c
694
u_short port = htons(strtonum(sep->se_service,
usr.sbin/iscsid/initiator.c
408
lreq->isid_qual = htons(tl->c->session->isid_qual);
usr.sbin/iscsid/initiator.c
410
lreq->cid = htons(tl->c->cid);
usr.sbin/ldapd/parse.y
180
$$ = htons($2);
usr.sbin/ldapd/parse.y
192
$4 = htons(LDAPS_PORT);
usr.sbin/ldapd/parse.y
194
$4 = htons(LDAP_PORT);
usr.sbin/ldpd/address.c
327
alt.type = htons(TLV_TYPE_ADDRLIST);
usr.sbin/ldpd/address.c
331
alt.family = htons(AF_IPV4);
usr.sbin/ldpd/address.c
335
alt.family = htons(AF_IPV6);
usr.sbin/ldpd/address.c
341
alt.length = htons(sizeof(alt.family) + addr_size * tlv_addr_count);
usr.sbin/ldpd/address.c
363
tlv.type = htons(TLV_TYPE_MAC_LIST);
usr.sbin/ldpd/address.c
365
tlv.length = htons(ETHER_ADDR_LEN);
usr.sbin/ldpd/hello.c
415
parms.type = htons(TLV_TYPE_COMMONHELLO);
usr.sbin/ldpd/hello.c
416
parms.length = htons(sizeof(parms.holdtime) + sizeof(parms.flags));
usr.sbin/ldpd/hello.c
417
parms.holdtime = htons(holdtime);
usr.sbin/ldpd/hello.c
418
parms.flags = htons(flags);
usr.sbin/ldpd/hello.c
429
parms.type = htons(type);
usr.sbin/ldpd/hello.c
430
parms.length = htons(sizeof(parms.value));
usr.sbin/ldpd/hello.c
442
parms.type = htons(type);
usr.sbin/ldpd/hello.c
443
parms.length = htons(sizeof(parms.value));
usr.sbin/ldpd/hello.c
470
if (tlv.type != htons(TLV_TYPE_COMMONHELLO))
usr.sbin/ldpd/init.c
386
parms.type = htons(TLV_TYPE_COMMONSESSION);
usr.sbin/ldpd/init.c
387
parms.length = htons(SESS_PRMS_LEN);
usr.sbin/ldpd/init.c
388
parms.proto_version = htons(LDP_VERSION);
usr.sbin/ldpd/init.c
389
parms.keepalive_time = htons(nbr_get_keepalive(nbr->af, nbr->id));
usr.sbin/ldpd/init.c
405
cap.type = htons(TLV_TYPE_DYNAMIC_CAP);
usr.sbin/ldpd/init.c
406
cap.length = htons(CAP_TLV_DYNAMIC_LEN);
usr.sbin/ldpd/init.c
419
cap.type = htons(TLV_TYPE_TWCARD_CAP);
usr.sbin/ldpd/init.c
420
cap.length = htons(CAP_TLV_TWCARD_LEN);
usr.sbin/ldpd/init.c
433
cap.type = htons(TLV_TYPE_UNOTIF_CAP);
usr.sbin/ldpd/init.c
434
cap.length = htons(CAP_TLV_UNOTIF_LEN);
usr.sbin/ldpd/l2vpn.c
311
st.msg_type = htons(MSG_TYPE_LABELMAPPING);
usr.sbin/ldpd/labelmapping.c
447
lt.type = htons(TLV_TYPE_GENERICLABEL);
usr.sbin/ldpd/labelmapping.c
448
lt.length = htons(LABEL_TLV_LEN);
usr.sbin/ldpd/labelmapping.c
471
switch (htons(lt.type)) {
usr.sbin/ldpd/labelmapping.c
506
rt.type = htons(TLV_TYPE_LABELREQUEST);
usr.sbin/ldpd/labelmapping.c
507
rt.length = htons(REQID_TLV_LEN);
usr.sbin/ldpd/labelmapping.c
518
st.type = htons(TLV_TYPE_PW_STATUS);
usr.sbin/ldpd/labelmapping.c
519
st.length = htons(PW_STATUS_TLV_LEN);
usr.sbin/ldpd/labelmapping.c
574
ft.type = htons(TLV_TYPE_FEC);
usr.sbin/ldpd/labelmapping.c
578
ft.length = htons(sizeof(uint8_t));
usr.sbin/ldpd/labelmapping.c
584
ft.length = htons(sizeof(map->type) + sizeof(family) +
usr.sbin/ldpd/labelmapping.c
590
family = htons(AF_IPV4);
usr.sbin/ldpd/labelmapping.c
593
family = htons(AF_IPV6);
usr.sbin/ldpd/labelmapping.c
613
ft.length = htons(len);
usr.sbin/ldpd/labelmapping.c
620
pw_type = htons(pw_type);
usr.sbin/ldpd/labelmapping.c
636
ifmtu = htons(map->fec.pwid.ifmtu);
usr.sbin/ldpd/labelmapping.c
650
ft.length = htons(len);
usr.sbin/ldpd/labelmapping.c
662
family = htons(AF_IPV4);
usr.sbin/ldpd/labelmapping.c
665
family = htons(AF_IPV6);
usr.sbin/ldpd/labelmapping.c
677
pw_type = htons(map->fec.twcard.u.pw_type);
usr.sbin/ldpd/lde_lib.c
558
htons(MSG_TYPE_LABELREQUEST));
usr.sbin/ldpd/lde_lib.c
572
htons(MSG_TYPE_LABELREQUEST));
usr.sbin/ldpd/notification.c
265
st.type = htons(TLV_TYPE_STATUS);
usr.sbin/ldpd/notification.c
266
st.length = htons(STATUS_TLV_LEN);
usr.sbin/ldpd/notification.c
286
rtlvs.type = htons(TLV_TYPE_RETURNED_TLVS);
usr.sbin/ldpd/notification.c
287
rtlvs.length = htons(length + TLV_HDR_SIZE);
usr.sbin/ldpd/notification.c
288
tlv.type = htons(type);
usr.sbin/ldpd/notification.c
289
tlv.length = htons(length);
usr.sbin/ldpd/packet.c
52
ldp_hdr.version = htons(LDP_VERSION);
usr.sbin/ldpd/packet.c
54
ldp_hdr.length = htons(size - LDP_HDR_DEAD_LEN);
usr.sbin/ldpd/packet.c
68
msg.type = htons(type);
usr.sbin/ldpd/packet.c
70
msg.length = htons(size - LDP_MSG_DEAD_LEN);
usr.sbin/ldpd/util.c
270
tmp16 = htons(sin6->sin6_scope_id);
usr.sbin/ldpd/util.c
326
sa_in->sin_port = htons(port);
usr.sbin/ldpd/util.c
332
sa_in6->sin6_port = htons(port);
usr.sbin/lldpd/lldpd.c
539
.sfrm_proto = htons(ETHERTYPE_LLDP),
usr.sbin/lpd/parse.y
207
listen_opts.port = htons($2);
usr.sbin/lpd/parse.y
222
listen_opts.port = htons(PORT_LPR);
usr.sbin/lpr/lpd/lpd.c
351
if (port == htons(20)) {
usr.sbin/map-mbone/mapper.c
874
addr.sin_port = htons(2000); /* any port over 1024 will do... */
usr.sbin/mopd/otherOS/pf-snit.c
172
*fwp++ = htons(prot);
usr.sbin/mopd/otherOS/pf-snit.c
175
*fwp++ = htons(prot);
usr.sbin/mopd/otherOS/pf-snit.c
178
*fwp++ = htons(0xaaaa);
usr.sbin/mrinfo/mrinfo.c
375
addr.sin_port = htons(2000); /* any port over 1024 will
usr.sbin/mrouted/igmp.c
311
ip->ip_len = htons(MIN_IP_HEADER_LEN + IGMP_MINLEN + datalen);
usr.sbin/mrouted/igmp.c
58
ip->ip_off = htons(0);
usr.sbin/mrouted/vif.c
704
addr.sin_port = htons(2000); /* any port over 1024 will do... */
usr.sbin/mrouted/vif.c
789
addr.sin_port = htons(2000); /* any port over 1024 will do... */
usr.sbin/mtrace/mtrace.c
1282
addr.sin_port = htons(2000); /* Any port above 1024 will do */
usr.sbin/ndp/ndp.c
781
htons(sin6.sin6_scope_id);
usr.sbin/npppd/l2tp/l2tp_call.c
444
hdr->length = htons(bytebuffer_remaining(buffer));
usr.sbin/npppd/l2tp/l2tp_call.c
445
hdr->tunnel_id = htons(_this->ctrl->peer_tunnel_id);
usr.sbin/npppd/l2tp/l2tp_call.c
446
hdr->session_id = htons(_this->peer_session_id);
usr.sbin/npppd/l2tp/l2tp_call.c
449
hdr->ns = htons(_this->snd_nxt++);
usr.sbin/npppd/l2tp/l2tp_call.c
450
hdr->nr = htons(_this->rcv_nxt);
usr.sbin/npppd/l2tp/l2tp_call.c
964
ppp_cause.code = htons(ppp->disconnect_code);
usr.sbin/npppd/l2tp/l2tp_call.c
965
ppp_cause.proto = htons(ppp->disconnect_proto);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1091
hdr->length = htons(bytebuffer_remaining(bytebuf));
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1092
hdr->tunnel_id = htons(_this->peer_tunnel_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1093
hdr->session_id = htons(call_id);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1097
hdr->ns = htons(seq);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1098
hdr->nr = htons(_this->rcv_nxt);
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1109
ntohs(hdr->ns), htons(hdr->nr),
usr.sbin/npppd/l2tp/l2tp_ctrl.c
532
header->nr = htons(_this->rcv_nxt);
usr.sbin/npppd/l2tp/l2tp_subr.c
321
avp1.vendor_id = htons(avp->vendor_id);
usr.sbin/npppd/l2tp/l2tp_subr.c
322
avp1.attr_type = htons(avp->attr_type);
usr.sbin/npppd/l2tp/l2tp_subr.c
323
*(uint16_t *)&avp1 = htons(*(uint16_t *)&avp1);
usr.sbin/npppd/l2tp/l2tpd.c
174
plistener->bind.sin6.sin6_port = htons(L2TPD_DEFAULT_UDP_PORT);
usr.sbin/npppd/npppd/mppe.c
513
proto = htons(proto);
usr.sbin/npppd/npppd/npppd.c
1084
eh->ether_type = htons(ETHERTYPE_PPPOE);
usr.sbin/npppd/npppd/npppd_auth.c
562
= htons(DEFAULT_RADIUS_AUTH_PORT);
usr.sbin/npppd/npppd/npppd_auth.c
583
= htons(DEFAULT_RADIUS_ACCT_PORT);
usr.sbin/npppd/npppd/npppd_subr.c
526
acc = htons(mss);
usr.sbin/npppd/npppd/npppd_subr.c
527
acc -= htons(maxmss);
usr.sbin/npppd/npppd/parse.y
567
((struct sockaddr_in *)&$5)->sin_port = htons(
usr.sbin/npppd/npppd/parse.y
637
((struct sockaddr_in *)&($$))->sin_port = htons($2);
usr.sbin/npppd/npppd/parse.y
814
htons($3);
usr.sbin/npppd/pppoe/pppoe_session.c
203
_this->ehdr.ether_type = htons(ETHERTYPE_PPPOEDISC);
usr.sbin/npppd/pppoe/pppoe_session.c
207
pppoe->length = htons(lpkt - sizeof(pppoe0));
usr.sbin/npppd/pppoe/pppoe_session.c
210
_this->ehdr.ether_type = htons(ETHERTYPE_PPPOE);
usr.sbin/npppd/pppoe/pppoe_session.c
214
pppoe0.session_id = htons(_this->session_id);
usr.sbin/npppd/pppoe/pppoe_session.c
215
pppoe0.length = htons(lpkt);
usr.sbin/npppd/pppoe/pppoe_session.c
257
pppoe.session_id = htons(_this->session_id);
usr.sbin/npppd/pppoe/pppoe_session.c
263
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoe_session.c
266
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoe_session.c
309
pppoe.session_id = htons(_this->session_id);
usr.sbin/npppd/pppoe/pppoe_session.c
317
tlv.type = htons(PPPOE_TAG_SERVICE_NAME);
usr.sbin/npppd/pppoe/pppoe_session.c
318
tlv.length = htons(service_name->length);
usr.sbin/npppd/pppoe/pppoe_session.c
333
tlv.type = htons(PPPOE_TAG_HOST_UNIQ);
usr.sbin/npppd/pppoe/pppoe_session.c
334
tlv.length = htons(hostuniq->length);
usr.sbin/npppd/pppoe/pppoe_session.c
338
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pppoe/pppoed.c
781
ether.ether_type = htons(ETHERTYPE_PPPOEDISC);
usr.sbin/npppd/pppoe/pppoed.c
785
pppoe->length = htons(lpkt - sizeof(struct pppoe_header));
usr.sbin/npppd/pppoe/pppoed.c
929
tlv.type = htons(PPPOE_TAG_SERVICE_NAME);
usr.sbin/npppd/pppoe/pppoed.c
931
tlv.length = htons(len);
usr.sbin/npppd/pppoe/pppoed.c
953
tlv.type = htons(PPPOE_TAG_AC_NAME);
usr.sbin/npppd/pppoe/pppoed.c
955
tlv.length = htons(len);
usr.sbin/npppd/pppoe/pppoed.c
973
tlv.type = htons(PPPOE_TAG_AC_COOKIE);
usr.sbin/npppd/pppoe/pppoed.c
984
tlv.type = htons(PPPOE_TAG_HOST_UNIQ);
usr.sbin/npppd/pppoe/pppoed.c
994
tlv.type = htons(PPPOE_TAG_END_OF_LIST);
usr.sbin/npppd/pptp/pptp_call.c
308
sli->peers_call_id = htons(sli->peers_call_id);
usr.sbin/npppd/pptp/pptp_call.c
373
cdn->call_id = htons(cdn->call_id);
usr.sbin/npppd/pptp/pptp_call.c
374
cdn->cause_code = htons(cdn->cause_code);
usr.sbin/npppd/pptp/pptp_call.c
413
ocrp->call_id = htons(ocrp->call_id);
usr.sbin/npppd/pptp/pptp_call.c
414
ocrp->peers_call_id = htons(ocrp->peers_call_id);
usr.sbin/npppd/pptp/pptp_call.c
415
ocrp->cause_code = htons(ocrp->cause_code);
usr.sbin/npppd/pptp/pptp_call.c
416
ocrp->connect_speed = htons(ocrp->connect_speed);
usr.sbin/npppd/pptp/pptp_call.c
417
ocrp->recv_winsz = htons(ocrp->recv_winsz);
usr.sbin/npppd/pptp/pptp_call.c
418
ocrp->packet_proccessing_delay = htons(ocrp->packet_proccessing_delay);
usr.sbin/npppd/pptp/pptp_call.c
586
grehdr->protocol_type = htons(PPTP_GRE_PROTOCOL_TYPE);
usr.sbin/npppd/pptp/pptp_call.c
587
grehdr->payload_length = htons(lpkt);
usr.sbin/npppd/pptp/pptp_call.c
588
grehdr->call_id = htons(_this->peers_call_id);
usr.sbin/npppd/pptp/pptp_ctrl.c
597
scc->max_channels = htons(scc->max_channels);
usr.sbin/npppd/pptp/pptp_ctrl.c
598
scc->firmware_revision = htons(scc->firmware_revision);
usr.sbin/npppd/pptp/pptp_ctrl.c
762
scc->protocol_version = htons(scc->protocol_version);
usr.sbin/npppd/pptp/pptp_ctrl.c
765
scc->max_channels = htons(scc->max_channels);
usr.sbin/npppd/pptp/pptp_ctrl.c
766
scc->firmware_revision = htons(scc->firmware_revision);
usr.sbin/npppd/pptp/pptp_ctrl.c
805
echo_rp->reserved1 = htons(0);
usr.sbin/npppd/pptp/pptp_ctrl.c
892
cdn->call_id = htons(cdn->call_id);
usr.sbin/npppd/pptp/pptp_ctrl.c
893
cdn->cause_code = htons(cdn->cause_code);
usr.sbin/npppd/pptp/pptp_subr.c
84
header->length = htons(length);
usr.sbin/npppd/pptp/pptp_subr.c
85
header->pptp_message_type = htons(PPTP_MES_TYPE_CTRL);
usr.sbin/npppd/pptp/pptp_subr.c
87
header->control_message_type = htons(ctrl_mes_type);
usr.sbin/npppd/pptp/pptpd.c
179
plistener->bind_sin.sin_port = htons(PPTPD_DEFAULT_TCP_PORT);
usr.sbin/npppd/pptp/pptpd.c
747
grehdr->protocol_type = htons(grehdr->protocol_type);
usr.sbin/npppd/pptp/pptpd.c
748
grehdr->payload_length = htons(grehdr->payload_length);
usr.sbin/npppd/pptp/pptpd.c
749
grehdr->call_id = htons(grehdr->call_id);
usr.sbin/nsd/dnstap/dnstap.c
317
sa.sin6_port = (in_port_t)htons((uint16_t)port);
usr.sbin/nsd/dnstap/dnstap.c
335
sa.sin_port = (in_port_t)htons((uint16_t)port);
usr.sbin/nsd/nsd-control.c
294
sa.sin6_port = (in_port_t)htons((uint16_t)port);
usr.sbin/nsd/nsd-control.c
307
sa.sin_port = (in_port_t)htons((uint16_t)port);
usr.sbin/nsd/query.c
522
sz = htons(sz);
usr.sbin/nsd/server.c
4761
uint16_t n_tcplen = htons(q->tcplen);
usr.sbin/nsd/tsig.c
101
uint16_t signed_time_high = htons(tsig->signed_time_high);
usr.sbin/nsd/tsig.c
103
uint16_t signed_time_fudge = htons(tsig->signed_time_fudge);
usr.sbin/nsd/tsig.c
104
uint16_t error_code = htons(tsig->error_code);
usr.sbin/nsd/tsig.c
105
uint16_t other_size = htons(tsig->other_size);
usr.sbin/nsd/tsig.c
472
uint16_t mac_size = htons(tsig->prior_mac_size);
usr.sbin/nsd/tsig.c
487
uint16_t original_query_id = htons(tsig->original_query_id);
usr.sbin/nsd/tsig.c
99
uint16_t klass = htons(CLASS_ANY);
usr.sbin/nsd/util.h
201
* (uint16_t *) dst = htons(data);
usr.sbin/nsd/xdp-server.c
842
udp->len = htons((uint16_t) (sizeof(*udp) + dnslen));
usr.sbin/nsd/xdp-server.c
850
ipv4->tot_len = htons(sizeof(*ipv4)) + udp->len;
usr.sbin/nsd/xdp-util.h
110
sum += htons(IPPROTO_UDP);
usr.sbin/nsd/xdp-util.h
87
sum += htons(IPPROTO_UDP);
usr.sbin/nsd/xfrd-disk.c
113
soa->type = htons(soa->type);
usr.sbin/nsd/xfrd-disk.c
114
soa->klass = htons(soa->klass);
usr.sbin/nsd/xfrd-tcp.c
1161
uint16_t sendlen = htons(tcp->msglen);
usr.sbin/nsd/xfrd-tcp.c
1231
uint16_t sendlen = htons(tcp->msglen);
usr.sbin/nsd/xfrd-tcp.c
512
sa->sin6_port = htons(port);
usr.sbin/nsd/xfrd-tcp.c
523
sa->sin_port = htons(port);
usr.sbin/nsd/xfrd.c
1397
soa->type = htons(rr->type);
usr.sbin/nsd/xfrd.c
1398
soa->klass = htons(rr->klass);
usr.sbin/nsd/xfrd.c
1973
soa->type = htons(buffer_read_u16(packet));
usr.sbin/nsd/xfrd.c
1974
soa->klass = htons(buffer_read_u16(packet));
usr.sbin/nsd/xfrd.c
731
soa.type = htons(TYPE_SOA);
usr.sbin/nsd/xfrd.c
732
soa.klass = htons(CLASS_IN);
usr.sbin/ntpd/client.c
78
sa_in->sin_port = htons(123);
usr.sbin/ntpd/client.c
84
sa_in6->sin6_port = htons(123);
usr.sbin/ntpd/constraint.c
127
sa_in->sin_port = htons(443);
usr.sbin/ntpd/constraint.c
133
sa_in6->sin6_port = htons(443);
usr.sbin/ntpd/util.c
143
sfp.int_parts = htons((u_int16_t)d);
usr.sbin/ntpd/util.c
144
sfp.fractions = htons((u_int16_t)((d - (u_int16_t)d) * S_DENOMINATOR));
usr.sbin/ocspcheck/http.c
242
((struct sockaddr_in *)&ss)->sin_port = htons(port);
usr.sbin/ocspcheck/http.c
249
((struct sockaddr_in6 *)&ss)->sin6_port = htons(port);
usr.sbin/ospf6d/database.c
115
dd_hdr.iface_mtu = htons(nbr->iface->mtu);
usr.sbin/ospf6d/database.c
119
dd_hdr.iface_mtu = htons(nbr->iface->mtu);
usr.sbin/ospf6d/hello.c
73
hello.hello_interval = htons(iface->hello_interval);
usr.sbin/ospf6d/hello.c
74
hello.rtr_dead_interval = htons(iface->dead_interval);
usr.sbin/ospf6d/ospfe.c
1024
lsa_hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospf6d/ospfe.c
1026
lsa_hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/ospfe.c
1028
lsa_hdr.type = htons(LSA_TYPE_NETWORK);
usr.sbin/ospf6d/ospfe.c
1033
lsa_hdr.len = htons(ibuf_size(buf));
usr.sbin/ospf6d/ospfe.c
1125
lsa_hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospf6d/ospfe.c
1126
lsa_hdr.type = htons(LSA_TYPE_LINK);
usr.sbin/ospf6d/ospfe.c
1131
lsa_hdr.len = htons(ibuf_size(buf));
usr.sbin/ospf6d/ospfe.c
538
if (lsa_hdr.type == htons(LSA_TYPE_EXTERNAL)) {
usr.sbin/ospf6d/ospfe.c
552
} else if (lsa_hdr.type == htons(LSA_TYPE_LINK)) {
usr.sbin/ospf6d/ospfe.c
822
rtr_link.metric = htons(iface->metric);
usr.sbin/ospf6d/ospfe.c
852
htons(iface->metric);
usr.sbin/ospf6d/ospfe.c
880
rtr_link.metric = htons(iface->metric);
usr.sbin/ospf6d/ospfe.c
895
rtr_link.metric = htons(iface->metric);
usr.sbin/ospf6d/ospfe.c
918
htons(iface->metric);
usr.sbin/ospf6d/ospfe.c
963
lsa_hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospf6d/ospfe.c
964
lsa_hdr.type = htons(LSA_TYPE_ROUTER);
usr.sbin/ospf6d/ospfe.c
969
lsa_hdr.len = htons(ibuf_size(buf));
usr.sbin/ospf6d/rde.c
1422
v = lsa_find(iface, htons(LSA_TYPE_LINK),
usr.sbin/ospf6d/rde.c
1437
v = lsa_find(iface, htons(LSA_TYPE_LINK),
usr.sbin/ospf6d/rde.c
1451
lsa->data.pref_intra.ref_type = htons(LSA_TYPE_NETWORK);
usr.sbin/ospf6d/rde.c
1461
lsa->data.pref_intra.numprefix = htons(numprefix);
usr.sbin/ospf6d/rde.c
1468
lsa->hdr.age = numprefix == 0 ? htons(MAX_AGE) : htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1469
lsa->hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX);
usr.sbin/ospf6d/rde.c
1473
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1474
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1497
lsa->data.pref_intra.ref_type = htons(LSA_TYPE_ROUTER);
usr.sbin/ospf6d/rde.c
1561
lsa_prefix->metric = htons(iface->metric);
usr.sbin/ospf6d/rde.c
1590
lsa->data.pref_intra.numprefix = htons(numprefix);
usr.sbin/ospf6d/rde.c
1594
lsa->hdr.age = numprefix == 0 ? htons(MAX_AGE) : htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1595
lsa->hdr.type = htons(LSA_TYPE_INTRA_A_PREFIX);
usr.sbin/ospf6d/rde.c
1599
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1600
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1615
old = lsa_find(iface, htons(LSA_TYPE_INTRA_A_PREFIX),
usr.sbin/ospf6d/rde.c
1623
old = lsa_find_tree(&area->lsa_tree, htons(LSA_TYPE_INTRA_A_PREFIX),
usr.sbin/ospf6d/rde.c
1670
lsa->hdr.age = htons(age);
usr.sbin/ospf6d/rde.c
1671
lsa->hdr.type = htons(LSA_TYPE_EXTERNAL);
usr.sbin/ospf6d/rde.c
1674
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1710
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde.c
1727
lsa->hdr.age = htons(invalid ? MAX_AGE : DEFAULT_AGE);
usr.sbin/ospf6d/rde.c
1731
lsa->hdr.len = htons(len);
usr.sbin/ospf6d/rde.c
1749
htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde_lsdb.c
287
if (lsa->hdr.age == htons(MAX_AGE) && !nbr->self && lsa_find(nbr->iface,
usr.sbin/ospf6d/rde_lsdb.c
443
dummy->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
570
v->lsa->hdr.age = htons(age);
usr.sbin/ospf6d/rde_lsdb.c
861
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
863
v->lsa->hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospf6d/rde_lsdb.c
873
v->lsa->hdr.ls_chksum = htons(iso_cksum(v->lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde_lsdb.c
906
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospf6d/rde_lsdb.c
950
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospf6d/rde_lsdb.c
968
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/ospf6d/rde_spf.c
481
htons(LSA_TYPE_LINK), rtr_link->iface_id,
usr.sbin/ospf6d/rde_spf.c
95
htons(LSA_TYPE_NETWORK),
usr.sbin/ospf6d/util.c
43
tmp16 = htons(sin6->sin6_scope_id);
usr.sbin/ospfd/database.c
120
dd_hdr.iface_mtu = htons(nbr->iface->mtu);
usr.sbin/ospfd/database.c
124
dd_hdr.iface_mtu = htons(nbr->iface->mtu);
usr.sbin/ospfd/hello.c
75
hello.hello_interval = htons(iface->hello_interval);
usr.sbin/ospfd/in_cksum.c
64
sum += htons(*(u_short *)cp);
usr.sbin/ospfd/ospfe.c
1001
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
1017
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
1041
htons(iface->metric);
usr.sbin/ospfd/ospfe.c
1062
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
1092
lsa_rtr.nlinks = htons(num_links);
usr.sbin/ospfd/ospfe.c
1098
lsa_hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospfd/ospfe.c
1104
lsa_hdr.len = htons(ibuf_size(buf));
usr.sbin/ospfd/ospfe.c
1161
lsa_hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospfd/ospfe.c
1163
lsa_hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/ospfe.c
1170
lsa_hdr.len = htons(ibuf_size(buf));
usr.sbin/ospfd/ospfe.c
869
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
896
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
919
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/ospfe.c
981
rtr_link.metric = htons(iface->metric);
usr.sbin/ospfd/packet.c
56
ospf_hdr.auth_type = htons(iface->auth_type);
usr.sbin/ospfd/packet.c
74
ip_hdr.ip_len = htons(ibuf_size(buf) + sizeof(ip_hdr));
usr.sbin/ospfd/rde.c
1339
lsa->hdr.age = htons(age);
usr.sbin/ospfd/rde.c
1345
lsa->hdr.len = htons(len);
usr.sbin/ospfd/rde.c
1374
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde.c
1458
lsa->hdr.age = htons(invalid ? MAX_AGE : DEFAULT_AGE);
usr.sbin/ospfd/rde.c
1463
lsa->hdr.len = htons(len);
usr.sbin/ospfd/rde.c
1481
htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde_lsdb.c
271
if (lsa->hdr.age == htons(MAX_AGE) && !nbr->self && lsa_find(nbr->iface,
usr.sbin/ospfd/rde_lsdb.c
359
dummy->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
484
v->lsa->hdr.age = htons(age);
usr.sbin/ospfd/rde_lsdb.c
711
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
713
v->lsa->hdr.age = htons(DEFAULT_AGE);
usr.sbin/ospfd/rde_lsdb.c
723
v->lsa->hdr.ls_chksum = htons(iso_cksum(v->lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde_lsdb.c
756
lsa->hdr.ls_chksum = htons(iso_cksum(lsa, len, LS_CKSUM_OFFSET));
usr.sbin/ospfd/rde_lsdb.c
799
v->lsa->hdr.age = htons(MAX_AGE);
usr.sbin/ospfd/rde_lsdb.c
865
if (a->hdr.age == htons(MAX_AGE) || b->hdr.age == htons(MAX_AGE))
usr.sbin/portmap/portmap.c
133
addr.sin_port = htons(PMAPPORT);
usr.sbin/portmap/portmap.c
139
laddr.sin_port = htons(PMAPPORT);
usr.sbin/portmap/portmap.c
347
htons(fromsin->sin_port) >= IPPORT_RESERVED) {
usr.sbin/portmap/portmap.c
406
htons(fromsin->sin_port) >= IPPORT_RESERVED) {
usr.sbin/portmap/portmap.c
617
me.sin_port = htons(port);
usr.sbin/rad/frontend.c
1252
htons(ra_options_conf->router_lifetime);
usr.sbin/rad/frontend.c
1393
ndopt_pref64->nd_opt_pref64_sltime_plc = htons(sltime_plc);
usr.sbin/radiusctl/radiusctl.c
271
htons(res->port);
usr.sbin/radiusd/parse.y
174
$$.addr.ipv4.sin_port = htons($3);
usr.sbin/radiusd/parse.y
177
htons(RADIUS_ACCT_DEFAULT_PORT);
usr.sbin/radiusd/parse.y
180
htons(RADIUS_DEFAULT_PORT);
usr.sbin/radiusd/parse.y
924
l->addr.ipv4.sin_port = htons(RADIUS_DEFAULT_PORT);
usr.sbin/radiusd/radiusd.c
246
hbuf, (int)htons(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
258
hbuf, (int)htons(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd_eap2mschap.c
369
chall->eap.length = htons(msgsiz);
usr.sbin/radiusd/radiusd_eap2mschap.c
373
chall->chap.length = htons(msgsiz -
usr.sbin/radiusd/radiusd_eap2mschap.c
475
htons(resp->chap.length) <
usr.sbin/radiusd/radiusd_eap2mschap.c
556
eapres.length = htons(sizeof(struct eap));
usr.sbin/radiusd/radiusd_eap2mschap.c
674
eap.chap.eap.length = htons(eapsiz);
usr.sbin/radiusd/radiusd_eap2mschap.c
677
eap.chap.chap.length = htons(
usr.sbin/radiusd/radiusd_eap2mschap.c
737
eap.length = htons(sizeof(eap));
usr.sbin/radiusd/radiusd_ipcp.c
1069
eap.length = htons(sizeof(eap));
usr.sbin/radiusd/radiusd_ipcp.c
531
htons(RADIUS_DAE_DEFAULT_PORT);
usr.sbin/radiusd/radiusd_radius.c
177
= htons(RADIUS_DEFAULT_PORT);
usr.sbin/rarpd/rarpd.c
611
ep->ether_type = htons(ETHERTYPE_REVARP);
usr.sbin/rarpd/rarpd.c
612
ap->ea_hdr.ar_hrd = htons(ARPHRD_ETHER);
usr.sbin/rarpd/rarpd.c
613
ap->ea_hdr.ar_pro = htons(ETHERTYPE_IP);
usr.sbin/rarpd/rarpd.c
614
ap->arp_op = htons(ARPOP_REVREPLY);
usr.sbin/rbootd/rmp_var.h
160
{ (w).val[_WORD_HIGHPART] = htons((u_int16_t) ((i >> 16) & 0xffff)); \
usr.sbin/rbootd/rmp_var.h
161
(w).val[_WORD_LOWPART] = htons((u_int16_t) (i & 0xffff)); \
usr.sbin/rbootd/rmpproto.c
179
rpl->r_brpl.rmp_version = htons(RMP_VERSION);
usr.sbin/rbootd/rmpproto.c
232
rpl->r_brpl.rmp_version = htons(RMP_VERSION);
usr.sbin/rbootd/rmpproto.c
301
rpl->r_brpl.rmp_session = htons(GenSessID());
usr.sbin/rbootd/rmpproto.c
302
rpl->r_brpl.rmp_version = htons(RMP_VERSION);
usr.sbin/rbootd/rmpproto.c
441
req->r_rrq.rmp_size = htons(RMPREADDATA);
usr.sbin/rbootd/rmpproto.c
562
rconn->rmp.hp_hdr.len = htons(rconn->rmplen - sizeof(struct hp_hdr));
usr.sbin/rbootd/rmpproto.c
567
rconn->rmp.hp_llc.dxsap = htons(HPEXT_SXSAP);
usr.sbin/rbootd/rmpproto.c
568
rconn->rmp.hp_llc.sxsap = htons(HPEXT_DXSAP);
usr.sbin/relayd/check_icmp.c
184
icp->icmp_id = htons(cie->env->sc_id);
usr.sbin/relayd/check_icmp.c
191
icp6->icmp6_id = htons(cie->env->sc_id);
usr.sbin/relayd/check_icmp.c
211
icp->icmp_seq = htons(i);
usr.sbin/relayd/check_icmp.c
217
icp6->icmp6_seq = htons(i);
usr.sbin/relayd/parse.y
350
$$.val[0] = htons($2);
usr.sbin/relayd/parse.y
3508
return (htons((u_short)llval));
usr.sbin/relayd/proxy_protocol.c
135
hdr.len = htons(len);
usr.sbin/relayd/relay_udp.c
487
hdr->dns_id = htons(priv->dp_inkey);
usr.sbin/relayd/relay_udp.c
529
hdr->dns_id = htons(priv->dp_outkey);
usr.sbin/relayd/relayd.c
1344
int useport = htons(rlay->rl_conf.port);
usr.sbin/ripd/auth.c
203
auth_head.auth_type = htons(iface->auth_type);
usr.sbin/ripd/auth.c
65
u_int16_t field2 = htons(0x01);
usr.sbin/ripd/message.c
112
dst.sin_port = htons(RIP_PORT);
usr.sbin/ripd/message.c
122
afi = htons(AF_INET);
usr.sbin/ripd/message.c
160
port = htons(nbr->port);
usr.sbin/ripd/message.c
165
port = htons(RIP_PORT);
usr.sbin/ripd/message.c
191
afi = htons(AF_INET);
usr.sbin/ripd/message.c
236
port = htons(nbr->port);
usr.sbin/ripd/message.c
241
port = htons(RIP_PORT);
usr.sbin/ripd/message.c
260
afi = htons(AF_INET);
usr.sbin/ripd/ripe.c
91
addr.sin_port = htons(RIP_PORT);
usr.sbin/route6d/route6d.c
1977
rrt->rrt_info.rip6_tag = htons(routetag & 0xffff);
usr.sbin/route6d/route6d.c
2166
rrt->rrt_info.rip6_tag = htons(routetag & 0xffff);
usr.sbin/route6d/route6d.c
2945
rrt->rrt_info.rip6_tag = htons(routetag & 0xffff);
usr.sbin/route6d/route6d.c
710
rrt_info.rip6_tag = htons(routetag & 0xffff);
usr.sbin/sasyncd/net.c
235
sin->sin_port = htons(cfgstate.listen_port);
usr.sbin/sasyncd/net.c
242
sin6->sin6_port = htons(cfgstate.listen_port);
usr.sbin/sasyncd/net.c
764
sin->sin_port = htons(port);
usr.sbin/sasyncd/net.c
771
sin->sin_port = htons(port);
usr.sbin/sasyncd/net.c
778
sin6->sin6_port = htons(port);
usr.sbin/slowcgi/slowcgi.c
1002
header->id = htons(c->id);
usr.sbin/slowcgi/slowcgi.c
1003
header->content_len = htons(sizeof(struct
usr.sbin/slowcgi/slowcgi.c
1034
header->id = htons(c->id);
usr.sbin/slowcgi/slowcgi.c
1051
header->content_len = htons(n);
usr.sbin/smtpd/mta_session.c
512
((struct sockaddr_in *)sa)->sin_port = htons(portno);
usr.sbin/smtpd/mta_session.c
514
((struct sockaddr_in6 *)sa)->sin6_port = htons(portno);
usr.sbin/smtpd/parse.y
3300
lo->port = htons(lo->port);
usr.sbin/smtpd/parse.y
3304
lo->port = htons(465);
usr.sbin/smtpd/parse.y
3309
lo->port = htons(25);
usr.sbin/smtpd/smtp_session.c
2622
tx->session->listener->port == htons(587)) {
usr.sbin/tcpdump/addrtoname.c
725
u_short etype = htons(eproto_db[i].p);
usr.sbin/tcpdump/in_cksum.c
102
sum += htons(byte << 8);
usr.sbin/tcpdump/interface.h
122
#define HTONS(x) (x) = htons(x)
usr.sbin/tcpdump/print-domain.c
664
(DNS_OPCODE(np) == NS_NOTIFY_OP ? htons(0x400) : 0))
usr.sbin/tcpdump/print-ether.c
138
etherproto_string(htons(extracted_ethertype)));
usr.sbin/tcpdump/print-ether.c
285
etherproto_string(htons(extracted_ethertype)));
usr.sbin/tcpdump/print-etherip.c
121
etherproto_string(htons(extracted_ethertype)));
usr.sbin/tcpdump/print-fddi.c
311
etherproto_string(htons(extracted_ethertype)));
usr.sbin/tcpdump/print-null.c
175
etherproto_string(htons(extracted_ethertype)));
usr.sbin/tcpdump/print-tcp.c
138
phu.ph.len = htons((u_int16_t)len);
usr.sbin/tcpdump/print-udp.c
398
cksum += htons(length);
usr.sbin/tcpdump/print-udp.c
415
cksum += htons(IPPROTO_UDP);
usr.sbin/tftp-proxy/filter.c
210
pfr.rule.dst.port[0] = htons(d_port);
usr.sbin/tftpd/tftpd.c
1157
dp->th_opcode = htons((u_short)DATA);
usr.sbin/tftpd/tftpd.c
1158
dp->th_block = htons(client->block);
usr.sbin/tftpd/tftpd.c
1297
ap->th_opcode = htons((u_short)ACK);
usr.sbin/tftpd/tftpd.c
1298
ap->th_block = htons(client->block);
usr.sbin/tftpd/tftpd.c
1477
tp->th_opcode = htons((u_short)ERROR);
usr.sbin/tftpd/tftpd.c
1478
tp->th_code = htons((u_short)error);
usr.sbin/tftpd/tftpd.c
1486
tp->th_code = htons(EUNDEF); /* set 'undef' errorcode */
usr.sbin/tftpd/tftpd.c
1520
tp->th_opcode = htons((u_short)OACK);
usr.sbin/traceroute/traceroute.c
708
ip->ip_off = htons(0);
usr.sbin/traceroute/traceroute.c
815
nxt.sin6_port = htons(DUMMY_PORT);
usr.sbin/traceroute/traceroute.c
832
from6.sin6_port = htons(0);
usr.sbin/traceroute/worker.c
316
ip->ip_len = htons(datalen);
usr.sbin/traceroute/worker.c
318
ip->ip_id = htons(conf->ident+seq);
usr.sbin/traceroute/worker.c
324
icmpp->icmp_seq = htons(seq);
usr.sbin/traceroute/worker.c
325
icmpp->icmp_id = htons(conf->ident);
usr.sbin/traceroute/worker.c
329
up->uh_sport = htons(conf->ident);
usr.sbin/traceroute/worker.c
330
up->uh_dport = htons(conf->port+seq);
usr.sbin/traceroute/worker.c
331
up->uh_ulen = htons((u_short)(datalen - sizeof(struct ip) -
usr.sbin/traceroute/worker.c
383
((struct sockaddr_in6*)to)->sin6_port = htons(conf->port + seq);
usr.sbin/traceroute/worker.c
394
icp->icmp6_seq = htons(seq);
usr.sbin/traceroute/worker.c
529
icp->icmp_id == htons(conf->ident)) {
usr.sbin/traceroute/worker.c
535
icmpp->icmp_id == htons(conf->ident)) {
usr.sbin/traceroute/worker.c
544
up->uh_sport == htons(conf->ident)) {
usr.sbin/traceroute/worker.c
635
up->uh_sport == htons(srcport)) {
usr.sbin/unbound/cachedb/cachedb.c
349
uint16_t t = htons(qinfo->qtype);
usr.sbin/unbound/cachedb/cachedb.c
350
uint16_t c = htons(qinfo->qclass);
usr.sbin/unbound/daemon/cachedump.c
490
rk->rk.type = htons(sldns_wirerr_get_type(rr, rr_len, dname_len));
usr.sbin/unbound/daemon/cachedump.c
491
rk->rk.rrset_class = htons(sldns_wirerr_get_class(rr, rr_len, dname_len));
usr.sbin/unbound/daemon/worker.c
783
htons(LDNS_RR_TYPE_CNAME) || rep->rrsets[0]->rk.type ==
usr.sbin/unbound/daemon/worker.c
784
htons(LDNS_RR_TYPE_DNAME))) {
usr.sbin/unbound/dns64/dns64.c
803
dk->rk.type = htons(LDNS_RR_TYPE_AAAA);
usr.sbin/unbound/dns64/dns64.c
870
if(i<rep->an_numrrsets && fk->rk.type == htons(LDNS_RR_TYPE_A)) {
usr.sbin/unbound/ipset/ipset.c
164
nfg->res_id = htons(0);
usr.sbin/unbound/iterator/iter_hints.c
368
sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/iterator/iter_hints.c
385
sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/iterator/iter_priv.c
231
sa.sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/iterator/iter_priv.c
254
sa.sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/iterator/iter_utils.c
1191
if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NS)) {
usr.sbin/unbound/iterator/iter_utils.c
1231
neg->rk.type = htons(qinfo->qtype);
usr.sbin/unbound/iterator/iter_utils.c
1232
neg->rk.rrset_class = htons(qinfo->qclass);
usr.sbin/unbound/respip/respip.c
253
rrset->rk.type = htons(rrtype);
usr.sbin/unbound/respip/respip.c
254
rrset->rk.rrset_class = htons(rrclass);
usr.sbin/unbound/respip/respip.c
273
raddr->data->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
usr.sbin/unbound/services/authzone.c
182
key.rk.type = htons(rrset->type);
usr.sbin/unbound/services/authzone.c
183
key.rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/authzone.c
2693
(*cname)->rk.type = htons(LDNS_RR_TYPE_CNAME);
usr.sbin/unbound/services/authzone.c
2694
(*cname)->rk.rrset_class = htons(dclass);
usr.sbin/unbound/services/authzone.c
5672
sa->sin_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/services/authzone.c
5679
sa->sin6_port = (in_port_t)htons(UNBOUND_DNS_PORT);
usr.sbin/unbound/services/authzone.c
6397
= htons((uint16_t)env->cfg->port);
usr.sbin/unbound/services/authzone.c
6402
= htons((uint16_t)env->cfg->port);
usr.sbin/unbound/services/authzone.c
7498
key.rk.type = htons(rrset->type);
usr.sbin/unbound/services/authzone.c
7499
key.rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/authzone.c
7642
key.rk.type = htons(LDNS_RR_TYPE_RRSIG);
usr.sbin/unbound/services/authzone.c
7643
key.rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/authzone.c
7845
pk.rk.type = htons(rrset->type);
usr.sbin/unbound/services/authzone.c
7846
pk.rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/authzone.c
8199
keystorage->rk.type = htons(LDNS_RR_TYPE_DNSKEY);
usr.sbin/unbound/services/authzone.c
8200
keystorage->rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/authzone.c
8261
keystorage->rk.type = htons(LDNS_RR_TYPE_DNSKEY);
usr.sbin/unbound/services/authzone.c
8262
keystorage->rk.rrset_class = htons(z->dclass);
usr.sbin/unbound/services/cache/dns.c
646
if(r->an_numrrsets > 0 && (r->rrsets[0]->rk.type == htons(
usr.sbin/unbound/services/cache/dns.c
647
LDNS_RR_TYPE_CNAME) || r->rrsets[0]->rk.type == htons(
usr.sbin/unbound/services/cache/dns.c
789
ck->rk.type = htons(LDNS_RR_TYPE_CNAME);
usr.sbin/unbound/services/cache/rrset.c
293
key.rk.type = htons(qtype);
usr.sbin/unbound/services/cache/rrset.c
294
key.rk.rrset_class = htons(qclass);
usr.sbin/unbound/services/cache/rrset.c
539
key.rk.rrset_class = htons(dclass);
usr.sbin/unbound/services/cache/rrset.c
540
key.rk.type = htons(type);
usr.sbin/unbound/services/listen_dnsport.c
3994
stream->outlen_wire = htons(stream->outlen);
usr.sbin/unbound/services/localzone.c
1403
r->rk.type = htons(rdr_type);
usr.sbin/unbound/services/localzone.c
1404
r->rk.rrset_class = htons(qinfo->qclass);
usr.sbin/unbound/services/localzone.c
1467
r->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
usr.sbin/unbound/services/localzone.c
1531
lr->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME)) {
usr.sbin/unbound/services/localzone.c
1727
lrr.rk.type = htons(qinfo->qtype);
usr.sbin/unbound/services/localzone.c
1728
lrr.rk.rrset_class = htons(qinfo->qclass);
usr.sbin/unbound/services/localzone.c
334
type = htons(type);
usr.sbin/unbound/services/localzone.c
338
if(alias_ok && p->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME))
usr.sbin/unbound/services/localzone.c
391
rrset->rrset->rk.type = htons(rrtype);
usr.sbin/unbound/services/localzone.c
392
rrset->rrset->rk.rrset_class = htons(rrclass);
usr.sbin/unbound/services/localzone.c
570
htons(LDNS_RR_TYPE_CNAME)) {
usr.sbin/unbound/services/mesh.c
1994
htons(LDNS_RR_TYPE_CNAME));
usr.sbin/unbound/services/outside_network.c
2022
sa.sin6_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/services/outside_network.c
2034
sa->sin_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/services/outside_network.c
3630
sa.sin6_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/services/outside_network.c
3636
sa->sin_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/services/rpz.c
1264
if(htons(qtype) == packed_rrset->type) {
usr.sbin/unbound/services/rpz.c
1829
csoa.rk.rrset_class = htons(LDNS_RR_CLASS_IN);
usr.sbin/unbound/services/rpz.c
1830
csoa.rk.type = htons(LDNS_RR_TYPE_SOA);
usr.sbin/unbound/services/rpz.c
2092
type = htons(type);
usr.sbin/unbound/services/rpz.c
2096
if(alias_ok && p->rrset->rk.type == htons(LDNS_RR_TYPE_CNAME))
usr.sbin/unbound/services/rpz.c
453
uint16_t rdlength = htons(ctlen);
usr.sbin/unbound/services/rpz.c
488
rrset->rk.type = htons(LDNS_RR_TYPE_CNAME);
usr.sbin/unbound/services/rpz.c
489
rrset->rk.rrset_class = htons(LDNS_RR_CLASS_IN);
usr.sbin/unbound/services/rpz.c
933
rrset->rrset->rk.type = htons(rrtype);
usr.sbin/unbound/services/rpz.c
934
rrset->rrset->rk.rrset_class = htons(rrclass);
usr.sbin/unbound/sldns/sbuffer.h
67
* (uint16_t *) dst = htons(data);
usr.sbin/unbound/sldns/str2wire.c
2729
shorts[0] = htons(a);
usr.sbin/unbound/sldns/str2wire.c
2730
shorts[1] = htons(b);
usr.sbin/unbound/sldns/str2wire.c
2731
shorts[2] = htons(c);
usr.sbin/unbound/sldns/str2wire.c
2732
shorts[3] = htons(d);
usr.sbin/unbound/sldns/wire2str.c
1848
(int)htons((uint16_t)port), proto_name);
usr.sbin/unbound/smallapp/unbound-anchor.c
533
sa->sin_port = (in_port_t)htons(p);
usr.sbin/unbound/smallapp/unbound-anchor.c
545
sa->sin6_port = (in_port_t)htons(p);
usr.sbin/unbound/smallapp/unbound-anchor.c
612
addr.a6.sin6_port = (in_port_t)htons(p);
usr.sbin/unbound/smallapp/unbound-anchor.c
618
addr.a.sin_port = (in_port_t)htons(p);
usr.sbin/unbound/testcode/doqclient.c
1843
str->data_tcplen = htons(str->data_len);
usr.sbin/unbound/testcode/petal.c
113
a6.sin6_port = (in_port_t)htons(p);
usr.sbin/unbound/testcode/petal.c
121
a.sin_port = (in_port_t)htons(p);
usr.sbin/unbound/testcode/streamtcp.c
243
len = htons(len);
usr.sbin/unbound/testcode/unitneg.c
226
nsec.rk.type = htons(LDNS_RR_TYPE_NSEC);
usr.sbin/unbound/testcode/unitneg.c
227
nsec.rk.rrset_class = htons(LDNS_RR_CLASS_IN);
usr.sbin/unbound/util/data/msgencode.c
306
*owner_ptr = htons(PTR_CREATE(p->offset));
usr.sbin/unbound/util/data/msgencode.c
321
*owner_ptr = htons(PTR_CREATE(owner_pos));
usr.sbin/unbound/util/data/msgreply.c
1484
rrset->rk.type != htons(LDNS_RR_TYPE_CNAME) ||
usr.sbin/unbound/util/data/msgreply.c
292
pkt_len = htons(rr->size - 2);
usr.sbin/unbound/util/data/msgreply.c
470
pk->rk.type = htons(pset->type);
usr.sbin/unbound/util/data/msgreply.h
598
} ede = { htons(CODE), TXT }; \
usr.sbin/unbound/util/net_help.c
276
sa->sin6_port = (in_port_t)htons(p);
usr.sbin/unbound/util/net_help.c
296
sa->sin_port = (in_port_t)htons(p);
usr.sbin/unbound/util/net_help.c
545
sa->sin6_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/util/net_help.c
548
sa->sin_port = (in_port_t)htons((uint16_t)port);
usr.sbin/unbound/util/netevent.c
1473
sa->sin6_port = htons(doq_sockaddr_get_port(
usr.sbin/unbound/util/netevent.c
1495
sa->sin_port = htons(doq_sockaddr_get_port(
usr.sbin/unbound/util/netevent.c
1515
sa->sin_port = htons(doq_sockaddr_get_port(
usr.sbin/unbound/util/netevent.c
3855
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(c->buffer));
usr.sbin/unbound/util/netevent.c
4323
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(buffer));
usr.sbin/unbound/util/netevent.c
4418
uint16_t len = htons(c->tcp_write_and_read?c->tcp_write_pkt_len:sldns_buffer_limit(buffer));
usr.sbin/unbound/validator/autotrust.c
1445
uint16_t rrtype = htons(LDNS_RR_TYPE_DNSKEY);
usr.sbin/unbound/validator/autotrust.c
1446
uint16_t rrclass = htons(LDNS_RR_CLASS_IN);
usr.sbin/unbound/validator/autotrust.c
1447
uint16_t rdlen = htons(rdata_len);
usr.sbin/unbound/validator/autotrust.c
641
k->rk.type = htons(sldns_wirerr_get_type(rr, rr_len, dname_len));
usr.sbin/unbound/validator/autotrust.c
642
k->rk.rrset_class = htons(sldns_wirerr_get_class(rr, rr_len, dname_len));
usr.sbin/unbound/validator/val_anchor.c
876
pkey->rk.type = htons(type);
usr.sbin/unbound/validator/val_anchor.c
877
pkey->rk.rrset_class = htons(ta->dclass);
usr.sbin/unbound/validator/val_kentry.c
373
rrk->rk.type = htons(d->rrset_type);
usr.sbin/unbound/validator/val_kentry.c
374
rrk->rk.rrset_class = htons(kkey->key_class);
usr.sbin/unbound/validator/val_nsec.c
252
if(rep->rrsets[i]->rk.type != htons(LDNS_RR_TYPE_NSEC))
usr.sbin/unbound/validator/val_nsec3.c
1457
if(list[i]->rk.type != htons(LDNS_RR_TYPE_NSEC3))
usr.sbin/unbound/validator/val_sigcrypt.c
1640
ktag = htons(dnskey_calc_keytag(dnskey, dnskey_idx));
usr.sbin/unbound/validator/val_utils.c
1282
if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NSEC))
usr.sbin/unbound/validator/val_utils.c
1284
else if(rep->rrsets[i]->rk.type == htons(LDNS_RR_TYPE_NSEC3))
usr.sbin/unbound/validator/val_utils.c
475
dnskey.rk.type = htons(kd->rrset_type);
usr.sbin/unbound/validator/val_utils.c
476
dnskey.rk.rrset_class = htons(kkey->key_class);
usr.sbin/vmd/dhcp.c
154
ss2sin(&pc.pc_dst)->sin_port = htons(CLIENT_PORT);
usr.sbin/vmd/dhcp.c
162
ss2sin(&pc.pc_src)->sin_port = htons(SERVER_PORT);
usr.sbin/vmd/packet.c
112
eh.ether_type = htons(ETHERTYPE_IP);
usr.sbin/vmd/packet.c
137
ip.ip_len = htons(sizeof(ip) + sizeof(udp) + datalen);
usr.sbin/vmd/packet.c
152
udp.uh_ulen = htons(sizeof(udp) + datalen);
usr.sbin/vmd/packet.c
205
if (ether_type != htons(ETHERTYPE_IP))
usr.sbin/vmd/packet.c
94
return (htons(sum));
usr.sbin/ypbind/ypbind.c
1001
ypserv_tcp = htons(ypserv_tcp);
usr.sbin/ypbind/ypbind.c
415
sin.sin_port = htons(udptransp->xp_port);
usr.sbin/ypbind/ypbind.c
439
sin.sin_port = htons(tcptransp->xp_port);
usr.sbin/ypbind/ypbind.c
708
bindsin.sin_port = htons(PMAPPORT);
usr.sbin/ypbind/ypbind.c
729
bindsin.sin_port = htons(PMAPPORT);
usr.sbin/ypbind/ypbind.c
791
bindsin.sin_port = htons(PMAPPORT);
usr.sbin/ypbind/ypbind.c
863
raddr.sin_port = htons((u_short)rmtcr_port);
usr.sbin/ypldap/ldapclient.c
79
sa_in->sin_port = htons(defport);
usr.sbin/ypldap/ldapclient.c
85
sa_in6->sin6_port = htons(defport);
usr.sbin/ypldap/yp.c
221
ypserv_tcp = htons(tcpport);
usr.sbin/ypldap/yp.c
222
ypserv_udp = htons(udpport);
usr.sbin/ypserv/common/yplib_host.c
60
rsrv_sin.sin_port = htons(port);
usr.sbin/ypset/ypset.c
65
port = htons(port);