Symbol: ntohs
games/hunt/hunt/hunt.c
156
Server_port = ntohs(se->s_port);
games/hunt/hunt/list.c
116
driver->response = ntohs(resp);
games/hunt/huntd/driver.c
1135
ntohs(((struct sockaddr_in *)&fromaddr)->sin_port));
games/hunt/huntd/driver.c
1138
query = ntohs(query);
games/hunt/huntd/driver.c
1166
response = ntohs(response);
games/hunt/huntd/driver.c
378
stat_port = ntohs(addr.sin_port);
games/hunt/huntd/driver.c
401
sock_port = ntohs(addr.sin_port);
games/hunt/huntd/driver.c
413
Server_port = ntohs(se->s_port);
games/hunt/huntd/driver.c
428
Server_port = ntohs(test_port.sin_port);
games/monop/cards.c
130
num = ntohs(num);
games/monop/cards.c
69
deck[0].num_cards = ntohs(deck[0].num_cards);
games/monop/cards.c
70
deck[0].top_card = ntohs(deck[0].top_card);
games/monop/cards.c
78
deck[1].num_cards = ntohs(deck[1].num_cards);
games/monop/cards.c
79
deck[1].top_card = ntohs(deck[1].top_card);
games/monop/initdeck.c
114
deck[0].num_cards = ntohs(deck[0].num_cards);
games/monop/initdeck.c
121
deck[1].num_cards = ntohs(deck[1].num_cards);
lib/libc/asr/asr_debug.c
239
portno = ntohs(s.sin->sin_port);
lib/libc/asr/asr_debug.c
243
portno = ntohs(s.sin6->sin6_port);
lib/libc/asr/asr_utils.c
205
*u16 = ntohs(*u16);
lib/libc/asr/asr_utils.c
260
h->flags = ntohs(h->flags);
lib/libc/asr/asr_utils.c
261
h->qdcount = ntohs(h->qdcount);
lib/libc/asr/asr_utils.c
262
h->ancount = ntohs(h->ancount);
lib/libc/asr/asr_utils.c
263
h->nscount = ntohs(h->nscount);
lib/libc/asr/asr_utils.c
264
h->arcount = ntohs(h->arcount);
lib/libc/asr/getaddrinfo_async.c
506
port = ntohs(se.s_port);
lib/libc/asr/getnameinfo.c
141
r = snprintf(buf, buflen, "%u", ntohs(port));
lib/libc/asr/getnameinfo_async.c
240
r = snprintf(buf, buflen, "%u", ntohs(port));
lib/libc/asr/getrrsetbyname_async.c
385
resp->header.qdcount = ntohs(resp->header.qdcount);
lib/libc/asr/getrrsetbyname_async.c
386
resp->header.ancount = ntohs(resp->header.ancount);
lib/libc/asr/getrrsetbyname_async.c
387
resp->header.nscount = ntohs(resp->header.nscount);
lib/libc/asr/getrrsetbyname_async.c
388
resp->header.arcount = ntohs(resp->header.arcount);
lib/libc/asr/res_send_async.c
602
as->as.dns.ibuflen = ntohs(as->as.dns.pktlen);
lib/libc/asr/res_send_async.c
766
flags = ntohs(h->flags);
lib/libc/net/rcmd.c
96
snprintf(pbuf, sizeof(pbuf), "%u", ntohs(rport));
lib/libc/net/rresvport.c
104
*alport = ntohs(*portp);
lib/libc/rpc/svc_tcp.c
173
xprt->xp_port = ntohs(addr.sin_port);
lib/libc/rpc/svc_udp.c
150
xprt->xp_port = ntohs(addr.sin_port);
lib/libcrypto/bio/b_sock.c
90
*port_ptr = ntohs(((struct sockaddr_in *)(res->ai_addr))->sin_port);
lib/libpcap/gencode.c
1188
(bpf_int32)ntohs(0x0681), (bpf_int32)ntohs(0x07FF));
lib/libpcap/gencode.c
1190
BPF_H, (bpf_int32)ntohs(addr));
lib/libpcap/gencode.c
1194
b2 = gen_cmp_nl(base_off + 2 + offset_lh, BPF_H, (bpf_int32)ntohs(addr));
lib/libpcap/gencode.c
1199
(bpf_int32)ntohs(0x0281), (bpf_int32)ntohs(0x07FF));
lib/libpcap/gencode.c
1201
BPF_H, (bpf_int32)ntohs(addr));
lib/libpcap/gencode.c
1206
b2 = gen_cmp_nl(base_off + 2 + offset_sh, BPF_H, (bpf_int32)ntohs(addr));
lib/libpcap/nametoaddr.c
54
#define NTOHS(x) (x) = ntohs(x)
lib/libradius/radius.c
311
return (ntohs(packet->pdata->length));
lib/libradius/radius.c
56
if (length != (size_t) ntohs(pdata->length))
lib/libradius/radius.c
90
if (ntohs(packet->pdata->length) + capacity > 0xfe00)
lib/libradius/radius.c
93
if (ntohs(packet->pdata->length) + capacity > packet->capacity) {
lib/libradius/radius.c
94
newsize = ntohs(packet->pdata->length) + capacity +
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/libradius/radius_local.h
66
((RADIUS_ATTRIBUTE*)(((char*)pdata) + ntohs(pdata->length)))
lib/libsndio/sio_aucat.c
333
par->pchan = ntohs(hdl->aucat.rmsg.u.par.pchan);
lib/libsndio/sio_aucat.c
335
par->rchan = ntohs(hdl->aucat.rmsg.u.par.rchan);
lib/libsndio/sioctl_aucat.c
121
ntohs(hdl->aucat.rmsg.u.ctlset.addr),
lib/libsndio/sioctl_aucat.c
122
ntohs(hdl->aucat.rmsg.u.ctlset.val));
lib/libsndio/sioctl_aucat.c
86
desc.node0.unit = (int16_t)ntohs(c->node0.unit);
lib/libsndio/sioctl_aucat.c
88
desc.node1.unit = (int16_t)ntohs(c->node1.unit);
lib/libsndio/sioctl_aucat.c
92
desc.addr = ntohs(c->addr);
lib/libsndio/sioctl_aucat.c
93
desc.maxval = ntohs(c->maxval);
lib/libsndio/sioctl_aucat.c
95
&desc, ntohs(c->curval));
libexec/ftpd/ftpcmd.y
175
ntohs(data_dest.su_sin.sin_port) < IPPORT_RESERVED) {
libexec/ftpd/ftpd.c
1386
ntohs(*p) < IPPORT_RESERVED) {
libexec/ftpd/ftpd.c
1462
ntohs(*p) < IPPORT_RESERVED || ntohs(*p) == 2049) { /* XXX */
libexec/ftpd/ftpd.c
2390
ntohs(pasv_addr.su_port));
libexec/ftpd/ftpd.c
546
data_source.su_port = htons(ntohs(ctrl_addr.su_port) - 1);
libexec/login_radius/raddauth.c
484
if (ntohs(auth.length) > total_length)
libexec/login_radius/raddauth.c
494
MD5_Update(&context, (u_char *)&auth, ntohs(auth.length));
libexec/login_radius/raddauth.c
617
length = ntohs(authhdr->length) - AUTH_HDR_LEN;
libexec/snmpd/snmpd_metrics/util.c
172
sa_in6.sin6_scope_id = ntohs(tmp16);
libexec/spamd-setup/spamd-setup.c
864
ent->s_port = ntohs(ent->s_port);
libexec/spamd/spamd.c
1254
port = ntohs(ent->s_port);
libexec/spamd/spamd.c
1257
cfg_port = ntohs(ent->s_port);
libexec/spamd/spamd.c
1260
sync_port = ntohs(ent->s_port);
libexec/spamd/spamd.c
1724
} else if (ntohs(lin.sin_port) >= IPPORT_RESERVED) {
libexec/spamd/sync.c
272
len < ntohs(hdr->sh_length))
libexec/spamd/sync.c
274
len = ntohs(hdr->sh_length);
libexec/spamd/sync.c
294
len < ntohs(tlv->st_length))
libexec/spamd/sync.c
297
switch (ntohs(tlv->st_type)) {
libexec/spamd/sync.c
301
ntohs(sg->sg_from_length) +
libexec/spamd/sync.c
302
ntohs(sg->sg_to_length) +
libexec/spamd/sync.c
303
ntohs(sg->sg_helo_length)) >
libexec/spamd/sync.c
304
ntohs(tlv->st_length))
libexec/spamd/sync.c
309
to = from + ntohs(sg->sg_from_length);
libexec/spamd/sync.c
310
helo = to + ntohs(sg->sg_to_length);
libexec/spamd/sync.c
329
if (sizeof(*sd) != ntohs(tlv->st_length))
libexec/spamd/sync.c
350
if (sizeof(*sd) != ntohs(tlv->st_length))
libexec/spamd/sync.c
372
printf("invalid type: %d\n", ntohs(tlv->st_type));
libexec/spamd/sync.c
375
len -= ntohs(tlv->st_length);
libexec/spamd/sync.c
376
p = ((u_int8_t *)tlv) + ntohs(tlv->st_length);
libexec/spamlogd/spamlogd.c
398
sync_port = ntohs(ent->s_port);
libexec/talkd/process.c
73
if (ntohs(mp->addr.sa_family) != AF_INET) {
libexec/talkd/process.c
75
ntohs(mp->addr.sa_family));
libexec/talkd/process.c
79
if (ntohs(mp->ctl_addr.sa_family) != AF_INET) {
libexec/talkd/process.c
81
ntohs(mp->ctl_addr.sa_family));
libexec/talkd/talkd.c
112
ctl_addr.sa_family = ntohs(request.ctl_addr.sa_family);
regress/lib/libc/asr/bin/common.c
401
ntohs(((struct sockaddr_in*)(sa))->sin_port));
regress/lib/libc/asr/bin/common.c
405
ntohs(((struct sockaddr_in6*)(sa))->sin6_port));
regress/lib/libc/asr/bin/common.c
499
*u16 = ntohs(*u16);
regress/lib/libc/asr/bin/common.c
554
h->flags = ntohs(h->flags);
regress/lib/libc/asr/bin/common.c
555
h->qdcount = ntohs(h->qdcount);
regress/lib/libc/asr/bin/common.c
556
h->ancount = ntohs(h->ancount);
regress/lib/libc/asr/bin/common.c
557
h->nscount = ntohs(h->nscount);
regress/lib/libc/asr/bin/common.c
558
h->arcount = ntohs(h->arcount);
regress/lib/libc/netdb/netdb.c
67
if (s->s_port != ntohs(port)) {
regress/lib/libc/sys/t_connect.c
94
ATF_REQUIRE(ntohs(sin.sin_port) <= IPPORT_RESERVEDMAX);
regress/lib/libpthread/netdb/netdb.c
58
printf("getservbyname -> port %d\n", ntohs(serv->s_port));
regress/sbin/ifconfig/ifaddr.c
1015
printf(":%u", ntohs(dstport));
regress/sbin/ifconfig/ifaddr.c
1291
ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]);
regress/sbin/isakmpd/util/utiltest.c
71
ntohs (sai->sin_port));
regress/sbin/isakmpd/util/utiltest.c
79
printf (" port %d\n", ntohs (sai6->sin6_port));
regress/sys/netinet/sendsrcaddr/runtest.c
163
errx(2, "receive port %d", ntohs(from_sin->sin_port));
sbin/dhcp6leased/dhcp6leased.c
939
s6->sin6_scope_id = ntohs(*(u_int16_t *)
sbin/dhcp6leased/engine.c
1040
status_code = ntohs(status_code);
sbin/dhcp6leased/engine.c
776
opt_hdr.code = ntohs(opt_hdr.code);
sbin/dhcp6leased/engine.c
777
opt_hdr.len = ntohs(opt_hdr.len);
sbin/dhcp6leased/engine.c
981
opt_hdr.code = ntohs(opt_hdr.code);
sbin/dhcp6leased/engine.c
982
opt_hdr.len = ntohs(opt_hdr.len);
sbin/dhcp6leased/frontend.c
168
dst.sin6_port = ntohs(SERVER_PORT);
sbin/dhcpleased/checksum.c
56
sum += (uint16_t)ntohs(*((uint16_t *)(buf + i)));
sbin/dhcpleased/dhcpleased.c
873
req_sin_addr->sin_port = ntohs(CLIENT_PORT);
sbin/dhcpleased/engine.c
812
if (rem < ntohs(ip->ip_len))
sbin/dhcpleased/engine.c
839
if (rem < ntohs(udp->uh_ulen))
sbin/dhcpleased/engine.c
842
if (rem > ntohs(udp->uh_ulen)) {
sbin/dhcpleased/engine.c
846
ntohs(udp->uh_ulen));
sbin/dhcpleased/engine.c
848
rem = ntohs(udp->uh_ulen);
sbin/dhcpleased/engine.c
859
IPPROTO_UDP + ntohs(udp->uh_ulen)))));
sbin/dhcpleased/engine.c
869
ntohs(udp->uh_sport), hbuf_dst, ntohs(udp->uh_dport));
sbin/dhcpleased/frontend.c
1083
to.sin_port = ntohs(SERVER_PORT);
sbin/dhcpleased/frontend.c
1134
IPPROTO_UDP + (uint32_t)ntohs(udp.uh_ulen)))));
sbin/ifconfig/ifconfig.c
3618
ntohs(*(u_int16_t *)&sin6->sin6_addr.s6_addr[2]);
sbin/ifconfig/ifconfig.c
5188
printf(":%u", ntohs(sin->sin_port));
sbin/ifconfig/ifconfig.c
5197
printf(":%u", ntohs(sin6->sin6_port));
sbin/ifconfig/ifconfig.c
5219
printf("%u ", ntohs(sin->sin_port));
sbin/ifconfig/ifconfig.c
5229
printf("%u ", ntohs(sin6->sin6_port));
sbin/iked/ikev2.c
1518
if (ntohs(port) == env->sc_nattport) {
sbin/iked/pfkey.c
592
ntohs(udpencap.sadb_x_udpencap_port));
sbin/iked/print.c
124
ntohs(flow->flow_src.addr_port));
sbin/iked/print.c
132
ntohs(flow->flow_dst.addr_port));
sbin/iked/util.c
66
return (ntohs(((struct sockaddr_in *)sa)->sin_port));
sbin/iked/util.c
68
return (ntohs(((struct sockaddr_in6 *)sa)->sin6_port));
sbin/ipsecctl/ike.c
723
ntohs(r->sport));
sbin/ipsecctl/ike.c
726
ntohs(r->dport));
sbin/ipsecctl/ike.c
853
snprintf(ssport, sizeof ssport, ":%u", ntohs(r->sport));
sbin/ipsecctl/ike.c
855
snprintf(sdport, sizeof sdport, ":%u", ntohs(r->dport));
sbin/ipsecctl/ipsecctl.c
427
printf("%u", ntohs(port));
sbin/ipsecctl/pfkdump.c
334
printf(" port %u", ntohs(sin4->sin_port));
sbin/ipsecctl/pfkdump.c
339
printf(" port %u", ntohs(sin6->sin6_port));
sbin/ipsecctl/pfkdump.c
616
printf("udpencap port %u", ntohs(x_udpencap->sadb_x_udpencap_port));
sbin/isakmpd/dnssec.c
195
key_rr.flags = ntohs((u_int16_t) * rr->rri_rdatas[i].rdi_data);
sbin/isakmpd/ipsec.c
1985
*port = ntohs(se->s_port);
sbin/isakmpd/ipsec.c
536
isa->tproto, ntohs(isa->sport),
sbin/isakmpd/ipsec.c
537
ntohs(isa->dport)));
sbin/isakmpd/log.c
521
if (ntohs(udp.uh_sport) == 4500 ||
sbin/isakmpd/log.c
522
ntohs(udp.uh_dport) == 4500) { /* XXX Quick and dirty */
sbin/isakmpd/log.c
552
i = ntohs(hdr.ip.ip4.ip_id) + 1;
sbin/isakmpd/log.c
604
int i, hdrlen, tlen = ntohs(u->uh_ulen) - sizeof(struct udphdr);
sbin/isakmpd/monitor.c
813
port = ntohs(port);
sbin/isakmpd/pf_key_v2.c
1667
tproto, ntohs(sport), ntohs(dport)));
sbin/isakmpd/pf_key_v2.c
2325
snprintf(sport, sizeof sport, ":%u", ntohs(port));
sbin/isakmpd/pf_key_v2.c
3004
ntohs(sport));
sbin/isakmpd/pf_key_v2.c
3056
ntohs(dport));
sbin/isakmpd/udp.c
182
tstr, ntohs(sockaddr_port(t->src))));
sbin/isakmpd/udp.c
394
src, ntohs(sport), dst ? dst : "<none>", ntohs(dport)));
sbin/isakmpd/udp_encap.c
184
tstr, ntohs(sockaddr_port(t->src))));
sbin/isakmpd/udp_encap.c
334
u->s, src, ntohs(sport), dst ? dst : "*", ntohs(dport)));
sbin/isakmpd/util.c
183
return ntohs(service->s_port);
sbin/isakmpd/virtual.c
691
port = ntohs(sockaddr_port(dst));
sbin/mountd/mountd.c
764
sport = ntohs(transp->xp_raddr.sin_port);
sbin/pfctl/parse.y
2502
yyerror("invalid divert port: %u", ntohs($4.a));
sbin/pfctl/parse.y
2528
yyerror("invalid divert port: %u", ntohs($3.a));
sbin/pfctl/parse.y
4304
u_int16_t a = ntohs(p1);
sbin/pfctl/parse.y
4305
u_int16_t b = ntohs(p2);
sbin/pfctl/parse.y
4704
snprintf(a1, sizeof(a1), "%u", ntohs(port->port[0]));
sbin/pfctl/parse.y
4705
snprintf(a2, sizeof(a2), "%u", ntohs(port->port[1]));
sbin/pfctl/parse.y
5053
rpool->proxy_port[0] = ntohs(rs->rdr->rport.a);
sbin/pfctl/parse.y
5057
rpool->proxy_port[1] = ntohs(rs->rdr->rport.a) +
sbin/pfctl/parse.y
5058
(ntohs(np->port[1]) - ntohs(np->port[0]));
sbin/pfctl/parse.y
5067
rpool->proxy_port[1] = ntohs(rs->rdr->rport.b);
sbin/pfctl/parse.y
5070
rpool->proxy_port[1] = ntohs(rs->rdr->rport.b);
sbin/pfctl/pf_print_state.c
168
printf("(%u) ", ntohs(rdom));
sbin/pfctl/pf_print_state.c
180
snprintf(ps, sizeof(ps), "%u", ntohs(port));
sbin/pfctl/pf_print_state.c
342
if (ntohs(s->state_flags) & PFSTATE_SLOPPY)
sbin/pfctl/pf_print_state.c
344
if (ntohs(s->state_flags) & PFSTATE_PFLOW)
sbin/pfctl/pfctl_parser.c
1177
printf(" port %u", ntohs(r->divert.port));
sbin/pfctl/pfctl_parser.c
1184
printf(" divert-packet port %u", ntohs(r->divert.port));
sbin/pfctl/pfctl_parser.c
385
p1 = ntohs(p1);
sbin/pfctl/pfctl_parser.c
386
p2 = ntohs(p2);
sbin/ping/ping.c
1139
CLR(ntohs(seq) % mx_dup_ck);
sbin/ping/ping.c
1307
ntohs(seq));
sbin/ping/ping.c
1329
if (TST(ntohs(seq) % mx_dup_ck)) {
sbin/ping/ping.c
1334
SET(ntohs(seq) % mx_dup_ck);
sbin/ping/ping.c
1352
pr_addr(from, fromlen), ntohs(seq));
sbin/ping/ping.c
1602
ntohs(icp->icmp_nextmtu));
sbin/ping/ping.c
1681
icp->icmp_num_addrs, ntohs(icp->icmp_lifetime));
sbin/ping/ping.c
1707
ntohs(icp->icmp_hun.ih_pptr));
sbin/ping/ping.c
1711
ntohs(icp->icmp_hun.ih_pptr));
sbin/ping/ping.c
1909
ntohs(value2));
sbin/ping/ping.c
2167
ntohs(ip6->ip6_plen), ip6->ip6_nxt, ip6->ip6_hlim);
sbin/ping/ping.c
525
from6.sin6_port = ntohs(DUMMY_PORT);
sbin/ping/ping.c
543
from4.sin_port = ntohs(DUMMY_PORT);
sbin/route/show.c
407
sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *)
sbin/route/show.c
511
ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]);
sbin/slaacd/engine.c
1463
radv->router_lifetime = ntohs(nd_ra->nd_ra_router_lifetime);
sbin/slaacd/engine.c
1751
ntohs(nd_ra->nd_ra_router_lifetime));
sbin/slaacd/frontend.c
579
sin6->sin6_scope_id = ntohs(*(u_int16_t *)
sbin/slaacd/frontend.c
881
(u_int32_t)ntohs(*(u_short *) &in6->s6_addr[2]);
sbin/unwind/frontend.c
1258
snprintf(buf, sizeof(buf), "[%s]:%d", hbuf, ntohs(
sbin/unwind/frontend.c
1261
snprintf(buf, sizeof(buf), "[%s]:%d", hbuf, ntohs(
sbin/unwind/libunbound/iterator/iter_delegpt.c
405
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/iterator/iter_delegpt.c
450
if(ntohs(s->rk.type) == LDNS_RR_TYPE_A) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
453
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_AAAA) {
sbin/unwind/libunbound/iterator/iter_delegpt.c
536
if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/iterator/iter_delegpt.c
538
else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_A)
sbin/unwind/libunbound/iterator/iter_delegpt.c
540
else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_AAAA)
sbin/unwind/libunbound/iterator/iter_priv.c
218
ntohs(rrset->rrset_class))) {
sbin/unwind/libunbound/iterator/iter_resptype.c
132
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/iterator/iter_resptype.c
169
ntohs(s->rk.type) == LDNS_RR_TYPE_NS &&
sbin/unwind/libunbound/iterator/iter_resptype.c
170
ntohs(s->rk.rrset_class) == request->qclass &&
sbin/unwind/libunbound/iterator/iter_resptype.c
183
if(ntohs(s->rk.type) == request->qtype &&
sbin/unwind/libunbound/iterator/iter_resptype.c
184
ntohs(s->rk.rrset_class) == request->qclass &&
sbin/unwind/libunbound/iterator/iter_resptype.c
197
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/iterator/iter_resptype.c
220
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA &&
sbin/unwind/libunbound/iterator/iter_resptype.c
239
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS) {
sbin/unwind/libunbound/iterator/iter_resptype.c
80
if(ntohs(s->rk.type) == request->qtype &&
sbin/unwind/libunbound/iterator/iter_resptype.c
81
ntohs(s->rk.rrset_class) == request->qclass &&
sbin/unwind/libunbound/iterator/iter_resptype.c
88
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/iterator/iter_scrub.c
397
rrset->type, ntohs(rrset->rrset_class));
sbin/unwind/libunbound/iterator/iter_scrub.c
71
(*rrset)->type, ntohs((*rrset)->rrset_class));
sbin/unwind/libunbound/iterator/iter_utils.c
1055
if(ntohs(rrx->rk.type) > ntohs(rry->rk.type))
sbin/unwind/libunbound/iterator/iter_utils.c
1060
if(ntohs(rrx->rk.rrset_class) > ntohs(rry->rk.rrset_class))
sbin/unwind/libunbound/iterator/iter_utils.c
1146
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS) {
sbin/unwind/libunbound/iterator/iter_utils.c
1366
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DS &&
sbin/unwind/libunbound/iterator/iter_utils.c
1370
s->rk.dname, ntohs(s->rk.type),
sbin/unwind/libunbound/iterator/iter_utils.c
1371
ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/iterator/iter_utils.c
1452
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME ||
sbin/unwind/libunbound/iterator/iter_utils.c
1453
ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) {
sbin/unwind/libunbound/iterator/iter_utils.c
1464
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DS)
sbin/unwind/libunbound/iterator/iter_utils.c
1470
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA) {
sbin/unwind/libunbound/iterator/iter_utils.c
1476
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC ||
sbin/unwind/libunbound/iterator/iter_utils.c
1477
ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/iterator/iter_utils.c
1625
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA) {
sbin/unwind/libunbound/iterator/iter_utils.c
1636
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC ||
sbin/unwind/libunbound/iterator/iter_utils.c
1637
ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/iterator/iter_utils.c
1645
(int)data->ttl, ((ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC)?"NSEC":"NSEC3"), (int)soa_ttl);
sbin/unwind/libunbound/iterator/iter_utils.c
1647
s->rk.dname, ntohs(s->rk.type),
sbin/unwind/libunbound/iterator/iter_utils.c
1648
ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/iterator/iter_utils.c
979
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS &&
sbin/unwind/libunbound/iterator/iter_utils.c
980
ntohs(s->rk.rrset_class) == dclass) {
sbin/unwind/libunbound/iterator/iterator.c
1172
if( !(ntohs(s->rk.type)==LDNS_RR_TYPE_A ||
sbin/unwind/libunbound/iterator/iterator.c
1173
ntohs(s->rk.type)==LDNS_RR_TYPE_AAAA)) {
sbin/unwind/libunbound/iterator/iterator.c
1177
if(qstate->qinfo.qtype == ntohs(s->rk.type) &&
sbin/unwind/libunbound/iterator/iterator.c
1178
qstate->qinfo.qclass == ntohs(s->rk.rrset_class) &&
sbin/unwind/libunbound/iterator/iterator.c
1187
s->rk.dname, ntohs(s->rk.type),
sbin/unwind/libunbound/iterator/iterator.c
1188
ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/iterator/iterator.c
1190
ntohs(s->rk.type), ntohs(s->rk.rrset_class),
sbin/unwind/libunbound/iterator/iterator.c
3121
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/iterator/iterator.c
3245
&& ntohs(iq->response->rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_DNAME) {
sbin/unwind/libunbound/iterator/iterator.c
547
if(ntohs(r->rk.type) == LDNS_RR_TYPE_DNAME &&
sbin/unwind/libunbound/iterator/iterator.c
555
if(ntohs(r->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/iterator/iterator.c
571
if(ntohs(r->rk.type) == LDNS_RR_TYPE_NSEC ||
sbin/unwind/libunbound/iterator/iterator.c
572
ntohs(r->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/respip/respip.c
1046
redirect_rrset->rk.type == ntohs(LDNS_RR_TYPE_CNAME) &&
sbin/unwind/libunbound/respip/respip.c
1326
ntohs(((struct sockaddr_in*)addr)->sin_port) :
sbin/unwind/libunbound/respip/respip.c
1327
ntohs(((struct sockaddr_in6*)addr)->sin6_port));
sbin/unwind/libunbound/respip/respip.c
625
uint16_t rtype = ntohs(rep->rrsets[i]->rk.type);
sbin/unwind/libunbound/respip/respip.c
696
dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type);
sbin/unwind/libunbound/respip/respip.c
697
dataqinfo.qclass = ntohs(rep->rrsets[rrset_id]->rk.rrset_class);
sbin/unwind/libunbound/respip/respip.c
984
if(!rdata2sockaddr(rep->rrsets[rrset_id]->entry.data, ntohs(rep->rrsets[rrset_id]->rk.type), rr_id, &ss, &ss_len))
sbin/unwind/libunbound/services/authzone.c
214
if(ntohs(k->rk.type) == type && k->rk.dname_len == nmlen &&
sbin/unwind/libunbound/services/authzone.c
215
ntohs(k->rk.rrset_class) == dclass &&
sbin/unwind/libunbound/services/authzone.c
3688
port = ntohs((uint16_t)sa->sin6_port);
sbin/unwind/libunbound/services/authzone.c
3691
port = ntohs((uint16_t)sa->sin_port);
sbin/unwind/libunbound/services/authzone.c
6394
&& (int)ntohs(((struct sockaddr_in *)&addr)->sin_port)
sbin/unwind/libunbound/services/authzone.c
6399
&& (int)ntohs(((struct sockaddr_in6 *)&addr)->sin6_port)
sbin/unwind/libunbound/services/cache/dns.c
1033
ntohs(data->rrsets[0]->rk.type) != LDNS_RR_TYPE_CNAME)
sbin/unwind/libunbound/services/cache/dns.c
1149
((ntohs(ref.key->rk.type)==LDNS_RR_TYPE_NS
sbin/unwind/libunbound/services/cache/dns.c
90
env->alloc, ((ntohs(rep->ref[i].key->rk.type)==
sbin/unwind/libunbound/services/cache/rrset.c
198
uint16_t rrset_type = ntohs(k->rk.type);
sbin/unwind/libunbound/services/cache/rrset.c
399
if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_NS ||
sbin/unwind/libunbound/services/listen_dnsport.c
163
ntohs(((struct sockaddr_in*)addr->ai_addr)->sin_port),
sbin/unwind/libunbound/services/listen_dnsport.c
4116
stream->inlen = ntohs(tcplen);
sbin/unwind/libunbound/services/localzone.c
1779
uint16_t port = ntohs(((struct sockaddr_in*)addr)->sin_port);
sbin/unwind/libunbound/services/localzone.c
2162
while(p && ntohs(p->rrset->rk.type) != dtype) {
sbin/unwind/libunbound/services/localzone.c
68
ntohs(p->rrset->rk.type),
sbin/unwind/libunbound/services/localzone.c
69
ntohs(p->rrset->rk.rrset_class));
sbin/unwind/libunbound/services/outside_network.c
379
port = ntohs(((struct sockaddr_in*)&reuse->addr)->sin_port);
sbin/unwind/libunbound/services/rpz.c
1267
if(ntohs(packed_rrset->type) == LDNS_RR_TYPE_CNAME && alias_ok)
sbin/unwind/libunbound/services/rpz.c
1298
while(p && ntohs(p->rrset->rk.type) != rr_type) {
sbin/unwind/libunbound/services/rpz.c
1339
if(ntohs(raddr->data->rk.type) != rr_type) {
sbin/unwind/libunbound/services/rpz.c
1437
while(p && ntohs(p->rrset->rk.type) != dtype) {
sbin/unwind/libunbound/services/rpz.c
1649
port = ntohs(((struct sockaddr_in*)&repinfo->client_addr)->sin_port);
sbin/unwind/libunbound/services/rpz.c
1654
port = ntohs(((struct sockaddr_in*)&ms->mesh_info->reply_list->query_reply.client_addr)->sin_port);
sbin/unwind/libunbound/sldns/keyraw.c
121
ac16 = ntohs(ac16);
sbin/unwind/libunbound/sldns/keyraw.c
391
exp = ntohs(int16);
sbin/unwind/libunbound/sldns/keyraw.c
74
exp = ntohs(int16);
sbin/unwind/libunbound/sldns/sbuffer.h
38
return ntohs(*(const uint16_t *) src);
sbin/unwind/libunbound/sldns/str2wire.c
2470
if(serv) serv_port=(int)ntohs((uint16_t)serv->s_port);
sbin/unwind/libunbound/util/data/msgencode.c
370
uint16_t t = ntohs(key->rk.type);
sbin/unwind/libunbound/util/data/msgencode.c
475
if(!rrset_belongs_in_reply(s, ntohs(key->rk.type), qtype, dnssec))
sbin/unwind/libunbound/util/data/msgencode.c
642
if(ntohs(rep->rrsets[i]->rk.type) == qtype) {
sbin/unwind/libunbound/util/data/msgencode.c
651
if(ntohs(rep->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/util/data/msgencode.c
653
ntohs(rep->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/util/data/msgencode.c
676
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
sbin/unwind/libunbound/util/data/msgencode.c
678
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/util/data/msgencode.c
724
rr_offset = RRSET_ROUNDROBIN?ntohs(id)+(timenow?timenow:time(NULL)):0;
sbin/unwind/libunbound/util/data/msgparse.c
1208
edns->udp_size = ntohs(found->rrset_class);
sbin/unwind/libunbound/util/data/msgparse.c
1351
rrset->type, ntohs(rrset->rrset_class));
sbin/unwind/libunbound/util/data/msgparse.c
731
siglen = ntohs(siglen);
sbin/unwind/libunbound/util/data/msgparse.c
873
(int)ntohs(dclass))?sldns_lookup_by_id(
sbin/unwind/libunbound/util/data/msgparse.c
874
sldns_rr_classes, (int)ntohs(dclass))->name:
sbin/unwind/libunbound/util/data/msgparse.c
875
"??", (int)ntohs(dclass));
sbin/unwind/libunbound/util/data/msgreply.c
1059
uint16_t t = ntohs(rep->rrsets[i]->rk.type);
sbin/unwind/libunbound/util/data/msgreply.c
849
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/util/data/msgreply.c
850
ntohs(s->rk.rrset_class) == qinfo->qclass &&
sbin/unwind/libunbound/util/data/msgreply.c
870
if(ntohs(s->rk.type) == qinfo->qtype &&
sbin/unwind/libunbound/util/data/msgreply.c
871
ntohs(s->rk.rrset_class) == qinfo->qclass &&
sbin/unwind/libunbound/util/data/msgreply.c
877
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/util/data/msgreply.c
878
ntohs(s->rk.rrset_class) == qinfo->qclass &&
sbin/unwind/libunbound/util/data/msgreply.c
893
if(ntohs(s->rk.type) == type &&
sbin/unwind/libunbound/util/data/msgreply.c
894
ntohs(s->rk.rrset_class) == dclass &&
sbin/unwind/libunbound/util/data/msgreply.c
909
if(ntohs(s->rk.type) == type &&
sbin/unwind/libunbound/util/data/msgreply.c
910
ntohs(s->rk.rrset_class) == dclass &&
sbin/unwind/libunbound/util/data/msgreply.c
925
if(ntohs(s->rk.type) == type &&
sbin/unwind/libunbound/util/data/msgreply.c
926
ntohs(s->rk.rrset_class) == dclass &&
sbin/unwind/libunbound/util/data/msgreply.c
990
port = ntohs(d->sin6_port);
sbin/unwind/libunbound/util/data/msgreply.c
997
port = ntohs(d->sin_port);
sbin/unwind/libunbound/util/data/packed_rrset.c
166
uint16_t t = ntohs(key->type);
sbin/unwind/libunbound/util/data/packed_rrset.c
201
if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/util/data/packed_rrset.c
202
ntohs(rrset->rk.type) != LDNS_RR_TYPE_DNAME)
sbin/unwind/libunbound/util/data/packed_rrset.c
269
ntohs(rrset->rk.type), ntohs(rrset->rk.rrset_class));
sbin/unwind/libunbound/util/module.c
225
sldns_wire2str_type_buf(ntohs(rr->rk.type), t, sizeof(t));
sbin/unwind/libunbound/util/module.c
226
sldns_wire2str_class_buf(ntohs(rr->rk.rrset_class), c, sizeof(c));
sbin/unwind/libunbound/util/net_help.c
234
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
sbin/unwind/libunbound/util/net_help.c
638
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
sbin/unwind/libunbound/util/net_help.c
660
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
sbin/unwind/libunbound/util/netevent.c
1311
snprintf(port, portlen, "%u", (unsigned)ntohs(sa->sin_port));
sbin/unwind/libunbound/util/netevent.c
1321
snprintf(port, portlen, "%u", (unsigned)ntohs(sa6->sin6_port));
sbin/unwind/libunbound/util/netevent.c
1438
return ntohs(sa->sin_port);
sbin/unwind/libunbound/util/netevent.c
1441
return ntohs(sa6->sin6_port);
sbin/unwind/libunbound/util/netevent.c
3668
want_read_size = ntohs(header->len);
sbin/unwind/libunbound/util/netevent.c
4069
want_read_size = ntohs(header->len);
sbin/unwind/libunbound/util/netevent.c
935
size = PP2_HEADER_SIZE + ntohs(header->len);
sbin/unwind/libunbound/util/proxy_protocol.c
179
size = PP2_HEADER_SIZE + ntohs(header->len);
sbin/unwind/libunbound/validator/autotrust.c
1545
log_assert(ntohs(dnskey_rrset->rk.type) == LDNS_RR_TYPE_DNSKEY);
sbin/unwind/libunbound/validator/autotrust.c
1548
if(!rr_is_dnskey_sep(ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
1550
!rr_is_dnskey_revoked(ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
1553
if(!find_key(tp, ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
1637
log_assert(ntohs(dnskey_rrset->rk.type) == LDNS_RR_TYPE_DNSKEY);
sbin/unwind/libunbound/validator/autotrust.c
1641
if(!rr_is_dnskey_sep(ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
1644
if(rr_is_dnskey_revoked(ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
1662
if(!find_key(tp, ntohs(dnskey_rrset->rk.type),
sbin/unwind/libunbound/validator/autotrust.c
284
f = ntohs(f);
sbin/unwind/libunbound/validator/val_kentry.c
321
d->rrset_type = ntohs(rrset->rk.type);
sbin/unwind/libunbound/validator/val_kentry.c
408
f = ntohs(f);
sbin/unwind/libunbound/validator/val_neg.c
1009
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC &&
sbin/unwind/libunbound/validator/val_neg.c
1010
ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC3)
sbin/unwind/libunbound/validator/val_neg.c
330
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/val_neg.c
570
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
sbin/unwind/libunbound/validator/val_neg.c
584
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/val_neg.c
687
if(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/val_neg.c
763
nsec->rk.dname, ntohs(nsec->rk.type),
sbin/unwind/libunbound/validator/val_neg.c
764
ntohs(nsec->rk.rrset_class));
sbin/unwind/libunbound/validator/val_neg.c
818
if(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/val_neg.c
860
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC ||
sbin/unwind/libunbound/validator/val_neg.c
861
ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/val_neg.c
869
*dclass = ntohs(rep->rrsets[i]->
sbin/unwind/libunbound/validator/val_neg.c
894
rrset_class = ntohs(soa->rk.rrset_class);
sbin/unwind/libunbound/validator/val_neg.c
926
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC)
sbin/unwind/libunbound/validator/val_nsec.c
153
log_assert(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC);
sbin/unwind/libunbound/validator/val_nsec3.c
195
i = ntohs(i);
sbin/unwind/libunbound/validator/val_nsec3.c
350
if(ntohs(filter->list[i]->rk.type) != LDNS_RR_TYPE_NSEC3 ||
sbin/unwind/libunbound/validator/val_nsec3.c
351
ntohs(filter->list[i]->rk.rrset_class) !=
sbin/unwind/libunbound/validator/val_nsec3.c
432
if(ntohs(list[i]->rk.type) != LDNS_RR_TYPE_NSEC3 ||
sbin/unwind/libunbound/validator/val_nsec3.c
433
ntohs(list[i]->rk.rrset_class) != qinfo->qclass)
sbin/unwind/libunbound/validator/val_secalgo.c
1194
exp = ntohs(int16);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1097
switch(ntohs(rrset->rk.type)) {
sbin/unwind/libunbound/validator/val_sigcrypt.c
121
return ntohs(t);
sbin/unwind/libunbound/validator/val_sigcrypt.c
1323
if(ntohs(k->rk.type) == LDNS_RR_TYPE_NSEC &&
sbin/unwind/libunbound/validator/val_sigcrypt.c
161
f = ntohs(f);
sbin/unwind/libunbound/validator/val_sigcrypt.c
242
return ntohs(t);
sbin/unwind/libunbound/validator/val_sigcrypt.c
936
uint16_t type = ntohs(rrset->rk.type);
sbin/unwind/libunbound/validator/val_utils.c
1028
} else if(seen_dname && ntohs(orig->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
1034
if(ntohs(orig->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
1038
} else if(ntohs(orig->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME
sbin/unwind/libunbound/validator/val_utils.c
1115
ntohs(rep->rrsets[i]->rk.type)
sbin/unwind/libunbound/validator/val_utils.c
1134
ntohs(rep->rrsets[i]->rk.type),
sbin/unwind/libunbound/validator/val_utils.c
1135
ntohs(rep->rrsets[i]->rk.rrset_class));
sbin/unwind/libunbound/validator/val_utils.c
1187
ntohs(rep->rrsets[i]->rk.rrset_class)))
sbin/unwind/libunbound/validator/val_utils.c
127
ntohs(rep->rrsets[i]->rk.type)
sbin/unwind/libunbound/validator/val_utils.c
136
if(ntohs(rep->rrsets[i]->rk.type)
sbin/unwind/libunbound/validator/val_utils.c
149
ntohs(rep->rrsets[i]->rk.type) == qinf->qtype)
sbin/unwind/libunbound/validator/val_utils.c
151
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME)
sbin/unwind/libunbound/validator/val_utils.c
252
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DNAME &&
sbin/unwind/libunbound/validator/val_utils.c
284
ntohs(rep->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
286
ntohs(rep->rrsets[i-1]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
305
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME
sbin/unwind/libunbound/validator/val_utils.c
311
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_DNAME)
sbin/unwind/libunbound/validator/val_utils.c
321
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC
sbin/unwind/libunbound/validator/val_utils.c
322
|| ntohs(rep->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
337
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC
sbin/unwind/libunbound/validator/val_utils.c
338
|| ntohs(rep->rrsets[i]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
358
ntohs(rep->rrsets[skip]->rk.type) ==
sbin/unwind/libunbound/validator/val_utils.c
417
rrset->rk.dname, ntohs(rrset->rk.type),
sbin/unwind/libunbound/validator/val_utils.c
418
ntohs(rrset->rk.rrset_class));
sbin/unwind/libunbound/validator/val_utils.c
426
rrset->rk.dname, ntohs(rrset->rk.type),
sbin/unwind/libunbound/validator/val_utils.c
427
ntohs(rrset->rk.rrset_class));
sbin/unwind/libunbound/validator/val_utils.c
432
ntohs(rrset->rk.type), ntohs(rrset->rk.rrset_class));
sbin/unwind/libunbound/validator/val_utils.c
691
ntohs(ds_rrset->rk.rrset_class), dnskey_rrset,
sbin/unwind/libunbound/validator/val_utils.c
697
ntohs(ds_rrset->rk.rrset_class),
sbin/unwind/libunbound/validator/val_utils.c
702
ds_rrset->rk.dname_len, ntohs(ds_rrset->rk.rrset_class),
sbin/unwind/libunbound/validator/val_utils.c
86
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
sbin/unwind/libunbound/validator/val_utils.c
867
ntohs(dnskey_rrset->rk.rrset_class), dnskey_rrset,
sbin/unwind/libunbound/validator/val_utils.c
872
ntohs(dnskey_rrset->rk.rrset_class),
sbin/unwind/libunbound/validator/val_utils.c
877
dnskey_rrset->rk.dname_len, ntohs(dnskey_rrset->rk.rrset_class),
sbin/unwind/libunbound/validator/val_utils.c
88
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DS)
sbin/unwind/libunbound/validator/val_utils.c
90
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/validator/val_utils.c
975
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/validator/val_utils.c
98
ntohs(rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_NS &&
sbin/unwind/libunbound/validator/validator.c
1031
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
1054
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1063
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/validator.c
1154
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1167
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/validator.c
1259
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1280
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3)
sbin/unwind/libunbound/validator/validator.c
1434
s->rk.dname, ntohs(s->rk.type),
sbin/unwind/libunbound/validator/validator.c
1435
ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
1453
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1462
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/validator.c
1551
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
1561
ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME && wc) {
sbin/unwind/libunbound/validator/validator.c
1564
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
1573
if (ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) {
sbin/unwind/libunbound/validator/validator.c
1587
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1596
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/validator.c
1685
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
sbin/unwind/libunbound/validator/validator.c
1712
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
sbin/unwind/libunbound/validator/validator.c
1827
vq->qchase.qtype = ntohs(vq->orig_msg->rep->
sbin/unwind/libunbound/validator/validator.c
1829
vq->qchase.qclass = ntohs(vq->orig_msg->rep->
sbin/unwind/libunbound/validator/validator.c
1839
ntohs(vq->orig_msg->rep->rrsets[vq->rrset_skip]->rk.type) ==
sbin/unwind/libunbound/validator/validator.c
3079
if(msg->rep->an_numrrsets != 0 && ntohs(msg->rep->
sbin/unwind/libunbound/validator/validator.c
707
if(i>0 && ntohs(chase_reply->rrsets[i-1]->rk.type) ==
sbin/unwind/libunbound/validator/validator.c
709
ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
sbin/unwind/libunbound/validator/validator.c
731
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
733
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME)
sbin/unwind/libunbound/validator/validator.c
735
else if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME)
sbin/unwind/libunbound/validator/validator.c
776
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
sbin/unwind/libunbound/validator/validator.c
917
if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS)
sbin/unwind/libunbound/validator/validator.c
961
if(ntohs(chase_reply->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS
sbin/unwind/libunbound/validator/validator.c
976
if(ntohs(orig_reply->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS
sbin/unwind/resolver.c
2007
dnskey_flags = ntohs(dnskey_flags);
sys/arch/hppa/stand/mkboot/mkboot.c
206
header_count = ntohs(elf_header.e_phnum);
sys/arch/octeon/dev/if_ogx.c
1274
switch (ntohs(eh->ether_type)) {
sys/dev/acpi/asmc.c
302
ntohs(*(uint16_t *)buf + 4));
sys/dev/acpi/asmc.c
524
return (((int16_t)ntohs(*(uint16_t *)buf)) >> 8) * 1000000 + 273150000;
sys/dev/acpi/asmc.c
531
return ntohs(*(uint16_t *)buf) >> 2;
sys/dev/acpi/asmc.c
547
ntohs(*(uint16_t *)(buf + 2)) * 1000000;
sys/dev/ic/am7990.c
562
ntohs(eh.ether_type));
sys/dev/ic/am7990.c
587
ntohs(eh.ether_type));
sys/dev/ic/am79900.c
585
ntohs(eh.ether_type));
sys/dev/ic/am79900.c
609
ntohs(eh.ether_type));
sys/dev/ic/an.c
1204
ntohs(len) + sizeof(struct ieee80211_frame),
sys/dev/ic/bwfm.c
2369
ntohs(e->ehdr.ether_type) == BWFM_ETHERTYPE_LINK_CTL &&
sys/dev/ic/bwfm.c
2371
ntohs(e->hdr.usr_subtype) == BWFM_BRCM_SUBTYPE_EVENT) {
sys/dev/ic/bwfm.c
2384
ntohs(e->ehdr.ether_type) == ETHERTYPE_EAPOL) {
sys/dev/ic/pgt.c
966
ntohs(pra->pra_ether_type)));
sys/dev/ic/re.c
1432
ntohs((rxvlan & RL_RDESC_VLANCTL_DATA));
sys/dev/ic/xl.c
540
*ptr = ntohs(word);
sys/dev/pci/if_alc.c
2528
m->m_pkthdr.ether_vtag = ntohs(vtag);
sys/dev/pci/if_ice.c
23931
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27292
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27526
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_ice.c
27538
typelen = ntohs(sub_tlv->hdr.typelen);
sys/dev/pci/if_ice.c
27613
typelen = ntohs(tlv->typelen);
sys/dev/pci/if_lge.c
216
*ptr = ntohs(word);
sys/dev/pci/if_nge.c
1075
ntohs(extsts & NGE_RXEXTSTS_VTCI);
sys/dev/pci/if_nge.c
310
*ptr = ntohs(word);
sys/dev/pci/if_oce.c
1345
etype = ntohs(eh->evl_proto);
sys/dev/pci/if_oce.c
1348
etype = ntohs(eh->evl_encap_proto);
sys/dev/pci/if_oce.c
1547
vtag = ntohs(cqe->u0.s.vlan_tag);
sys/dev/pci/if_rge.c
1421
ntohs(extsts & RGE_RDEXTSTS_VLAN_MASK);
sys/dev/pci/if_ste.c
482
*ptr = ntohs(word);
sys/dev/pci/if_tl.c
1950
*p = ntohs(*p);
sys/dev/pci/if_txp.c
667
m->m_pkthdr.ether_vtag = ntohs(rxd->rx_vlan >> 16);
sys/dev/pci/if_vge.c
234
*ptr = ntohs(word);
sys/dev/pci/if_wb.c
259
*ptr = ntohs(word);
sys/dev/usb/if_axe.c
594
val = ntohs(val);
sys/kern/uipc_syscalls.c
1612
if (ntohs(ypsin.sin_port) >= IPPORT_RESERVED || ntohs(ypsin.sin_port) == 20)
sys/lib/libsa/bootparam.c
174
inet_ntoa(bp_server_addr), ntohs(bp_server_port)));
sys/lib/libsa/bootparam.c
178
(int)ntohs(bp_server_port));
sys/lib/libsa/ether.c
117
*etype = ntohs(eh->ether_type);
sys/lib/libsa/in_cksum.c
85
sum = ntohs(sum);
sys/lib/libsa/netudp.c
186
if (n < ntohs(ip->ip_len)) {
sys/lib/libsa/netudp.c
190
n, ntohs(ip->ip_len));
sys/lib/libsa/netudp.c
214
d->myport, ntohs(uh->uh_dport));
sys/lib/libsa/netudp.c
220
n = ntohs(uh->uh_ulen) + sizeof(*ip);
sys/lib/libsa/netudp.c
241
if (ntohs(uh->uh_ulen) < sizeof(*uh)) {
sys/lib/libsa/netudp.c
245
ntohs(uh->uh_ulen), sizeof(*uh));
sys/lib/libsa/netudp.c
74
inet_ntoa(d->myip), ntohs(d->myport));
sys/lib/libsa/netudp.c
76
inet_ntoa(d->destip), ntohs(d->destport));
sys/lib/libsa/rarp.c
194
printf("bad op=0x%x\n", ntohs(ap->arp_op));
sys/lib/libsa/tftp.c
114
switch (ntohs(t->th_opcode)) {
sys/lib/libsa/tftp.c
132
if ((unsigned) ntohs(t->th_code) >= 8) {
sys/lib/libsa/tftp.c
133
printf("illegal tftp error %d\n", ntohs(t->th_code));
sys/lib/libsa/tftp.c
137
printf("tftp-error %d\n", ntohs(t->th_code));
sys/lib/libsa/tftp.c
139
errno = tftperrors[ntohs(t->th_code)];
sys/lib/libsa/tftp.c
144
printf("tftp type %d not handled\n", ntohs(t->th_opcode));
sys/net/bfd.c
594
sin->sin_port = ntohs(port);
sys/net/bfd.c
598
sin6->sin6_port = ntohs(port);
sys/net/bpf.c
1970
return ntohs(v);
sys/net/bpf_filter.c
104
return ntohs(v);
sys/net/bridgectl.c
668
if (ntohs(eh->ether_type) != ETHERTYPE_ARP)
sys/net/bridgectl.c
674
if (ntohs(ea.arp_hrd) != ARPHRD_ETHER ||
sys/net/bridgectl.c
675
ntohs(ea.arp_pro) != ETHERTYPE_IP ||
sys/net/bridgectl.c
680
ntohs(ea.arp_op) != ARPOP_REQUEST &&
sys/net/bridgectl.c
681
ntohs(ea.arp_op) != ARPOP_REPLY)
sys/net/bridgectl.c
684
ntohs(ea.arp_op) != ARPOP_REVREQUEST &&
sys/net/bridgectl.c
685
ntohs(ea.arp_op) != ARPOP_REVREPLY)
sys/net/bridgectl.c
687
if (n->brl_arpf.brla_op && ntohs(ea.arp_op) != n->brl_arpf.brla_op)
sys/net/bridgestp.c
404
(((u_int64_t)ntohs(cpdu->cbu_rootpri)) << 48) |
sys/net/bridgestp.c
413
(((u_int64_t)ntohs(cpdu->cbu_bridgepri)) << 48) |
sys/net/bridgestp.c
422
cu->cu_message_age = ntohs(cpdu->cbu_messageage);
sys/net/bridgestp.c
423
cu->cu_max_age = ntohs(cpdu->cbu_maxage);
sys/net/bridgestp.c
424
cu->cu_hello_time = ntohs(cpdu->cbu_hellotime);
sys/net/bridgestp.c
425
cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay);
sys/net/bridgestp.c
426
cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid);
sys/net/bridgestp.c
589
len = ntohs(eh->ether_type);
sys/net/if_aggr.c
1043
req->partner_prio = ntohs(sc->sc_partner_system.lacp_sysid_priority);
sys/net/if_aggr.c
1048
req->partner_key = ntohs(sc->sc_partner_key);
sys/net/if_aggr.c
1087
ntohs(p->p_partner.lacp_sysid.lacp_sysid_priority);
sys/net/if_aggr.c
1093
opreq->partner_key = ntohs(p->p_partner.lacp_key);
sys/net/if_aggr.c
1095
ntohs(p->p_partner.lacp_portid.lacp_portid_priority);
sys/net/if_aggr.c
1097
ntohs(p->p_partner.lacp_portid.lacp_portid_number);
sys/net/if_bridge.c
1378
etype = ntohs(eh->ether_type);
sys/net/if_bridge.c
1449
etype = ntohs(eh->ether_type);
sys/net/if_bridge.c
1467
etype = ntohs(llc.llc_snap.ether_type);
sys/net/if_bridge.c
1560
spi = htonl(ntohs(cpi));
sys/net/if_bridge.c
1629
tdb->tdb_mtu && ntohs(ip->ip_len) > tdb->tdb_mtu &&
sys/net/if_bridge.c
1671
etype = ntohs(eh->ether_type);
sys/net/if_bridge.c
1689
etype = ntohs(llc.llc_snap.ether_type);
sys/net/if_bridge.c
1817
etype = ntohs(eh->ether_type);
sys/net/if_bridge.c
1978
icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
sys/net/if_ethersubr.c
1116
ether_type = ntohs(ext->eh->ether_type);
sys/net/if_ethersubr.c
1134
ether_type = ntohs(ext->evh->evl_proto);
sys/net/if_ethersubr.c
1161
iplen = ntohs(ext->ip4->ip_len);
sys/net/if_ethersubr.c
1177
if (ISSET(ntohs(ext->ip4->ip_off), IP_MF|IP_OFFMASK))
sys/net/if_ethersubr.c
1196
iplen = hlen + ntohs(ext->ip6->ip6_plen);
sys/net/if_ethersubr.c
1573
etype = ntohs(sfrm->sfrm_proto);
sys/net/if_ethersubr.c
1626
etype = ntohs(sfrm->sfrm_proto);
sys/net/if_ethersubr.c
1734
etype = ntohs(sfrm->sfrm_proto);
sys/net/if_ethersubr.c
442
etype = ntohs(eh->ether_type);
sys/net/if_ethersubr.c
528
etype = ntohs(eh->ether_type);
sys/net/if_pfsync.c
2669
len = ntohs(ph->len);
sys/net/if_pfsync.c
2697
count = ntohs(subh->count);
sys/net/if_pfsync.c
3271
tdb = gettdb(ntohs(pt->rdomain), pt->spi,
sys/net/if_pppoe.c
464
session = ntohs(ph->session);
sys/net/if_pppoe.c
465
plen = ntohs(ph->plen);
sys/net/if_pppoe.c
488
tag = ntohs(pt->tag);
sys/net/if_pppoe.c
489
len = ntohs(pt->len);
sys/net/if_pppoe.c
642
ntohs(max_payload) != sc->sc_sppp.pp_if.if_mtu)) {
sys/net/if_pppoe.c
766
sc = pppoe_smr_find_by_session(ntohs(ph->session), ifp0->if_index);
sys/net/if_pppoe.c
775
plen = ntohs(ph->plen);
sys/net/if_pppoe.c
870
session = ntohs(ph->session);
sys/net/if_pppoe.c
881
plen = ntohs(ph->plen);
sys/net/if_spppsubr.c
1025
sppp_cp_type_name (h->type), h->ident, ntohs (h->len));
sys/net/if_spppsubr.c
1030
if (len > ntohs (h->len))
sys/net/if_spppsubr.c
1031
len = ntohs (h->len);
sys/net/if_spppsubr.c
1265
proto = ntohs(*((u_int16_t *)p));
sys/net/if_spppsubr.c
3389
if (len > ntohs (h->len))
sys/net/if_spppsubr.c
3390
len = ntohs (h->len);
sys/net/if_spppsubr.c
3406
h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
3419
ntohs(h->len));
sys/net/if_spppsubr.c
3497
h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
3529
h->ident, ntohs (h->len));
sys/net/if_spppsubr.c
3582
h->type, h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
3782
if (len > ntohs (h->len))
sys/net/if_spppsubr.c
3783
len = ntohs (h->len);
sys/net/if_spppsubr.c
3797
h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
3810
h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
3897
h->type, h->ident, ntohs(h->len));
sys/net/if_spppsubr.c
4115
lh->ident, ntohs(lh->len));
sys/net/if_spppsubr.c
425
switch (ntohs(proto)) {
sys/net/if_spppsubr.c
501
switch (ntohs (ht.protocol)) {
sys/net/if_spppsubr.c
511
ht.address, ht.control, ntohs(ht.protocol));
sys/net/if_spppsubr.c
567
ht.address, ht.control, ntohs(ht.protocol));
sys/net/if_spppsubr.c
981
ntohs (lh->len));
sys/net/if_tpmr.c
224
switch (ntohs(eh->ether_type)) {
sys/net/if_tpmr.c
287
switch (ntohs(eh->ether_type)) {
sys/net/if_trunk.c
1004
etype = ntohs(eh->ether_type);
sys/net/if_trunk.c
1018
etype = ntohs(vlan[1]);
sys/net/if_veb.c
1233
m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
sys/net/if_veb.c
2783
brla->brla_op = ntohs(vr->vr_arp_op);
sys/net/if_veb.c
635
switch (ntohs(eh->ether_type)) {
sys/net/if_veb.c
816
switch (ntohs(eh->ether_type)) {
sys/net/if_wg.c
1740
len = ntohs(ip->ip_len);
sys/net/if_wg.c
1750
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/if_wg.c
2482
iface_o.i_port = ntohs(sc->sc_udp_port);
sys/net/pf.c
1579
d->max_win = ntohs(s->max_win);
sys/net/pf.c
1580
d->mss = ntohs(s->mss);
sys/net/pf.c
1586
ntohs(s->scrub.pfss_flags) & PFSS_TIMESTAMP;
sys/net/pf.c
1758
skw->rdomain = ntohs(sp->key[PF_SK_WIRE].rdomain);
sys/net/pf.c
1770
sks->rdomain = ntohs(sp->key[PF_SK_STACK].rdomain);
sys/net/pf.c
1822
st->state_flags = ntohs(sp->state_flags);
sys/net/pf.c
1823
st->max_mss = ntohs(sp->max_mss);
sys/net/pf.c
2392
p = ntohs(p);
sys/net/pf.c
2428
b = ntohs(addr->addr16[i]);
sys/net/pf.c
2435
p = ntohs(p);
sys/net/pf.c
3482
mtu = ntohs(icmp4->icmp_nextmtu);
sys/net/pf.c
3907
return (pf_match(op, ntohs(a1), ntohs(a2), ntohs(p)));
sys/net/pf.c
4304
mss = ntohs(mss);
sys/net/pf.c
5201
st->src.max_win = MAX(ntohs(th->th_win), 1);
sys/net/pf.c
5544
u_int16_t win = ntohs(th->th_win);
sys/net/pf.c
6014
(*stp)->src.max_win = MAX(ntohs(th->th_win), 1);
sys/net/pf.c
6031
(*stp)->dst.max_win = MAX(ntohs(th->th_win), 1);
sys/net/pf.c
6288
ntohs(type), icmp_dir);
sys/net/pf.c
6464
pd2.tot_len = ntohs(h2.ip_len);
sys/net/pf.c
6484
pd2.tot_len = ntohs(h2_6.ip6_plen) +
sys/net/pf.c
7155
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/net/pf.c
7161
iplen = ntohs(h->ip_len);
sys/net/pf.c
7168
iplen = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/pf.c
7687
if (hlen < sizeof(struct ip) || hlen > ntohs(h->ip_len)) {
sys/net/pf.c
7699
end = pd->off + ntohs(h->ip_len);
sys/net/pf.c
7782
if (ntohs(h->ip6_plen) != 0) {
sys/net/pf.c
7825
end = pd->off + ntohs(h->ip6_plen);
sys/net/pf.c
7869
if (ntohs((frag.ip6f_offlg & IP6F_OFF_MASK)) != 0) {
sys/net/pf.c
7927
ntohs(h->ip6_plen) == 0 && pd->jumbolen != 0) {
sys/net/pf.c
8044
if (pd->m->m_pkthdr.len < ntohs(h->ip_len)) {
sys/net/pf.c
8054
pd->tot_len = ntohs(h->ip_len);
sys/net/pf.c
8074
sizeof(struct ip6_hdr) + ntohs(h->ip6_plen)) {
sys/net/pf.c
8095
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/net/pf.c
8140
pd->off + ntohs(uh->uh_ulen) > pd->tot_len ||
sys/net/pf.c
8141
ntohs(uh->uh_ulen) < sizeof(struct udphdr)) {
sys/net/pf_ioctl.c
4021
u_int16_t a = (order == PF_ORDER_NET) ? ntohs(port[0]) : port[0];
sys/net/pf_ioctl.c
4022
u_int16_t b = (order == PF_ORDER_NET) ? ntohs(port[1]) : port[1];
sys/net/pf_lb.c
737
tmp_nport = ((ntohs(pd->ndport) - ntohs(r->dst.port[0])) % div) +
sys/net/pf_lb.c
797
pd->ndport = ntohs(pd->ndport);
sys/net/pf_lb.c
804
pd->nsport = ntohs(pd->nsport);
sys/net/pf_lb.c
813
pd->ndport = ntohs(pd->ndport);
sys/net/pf_lb.c
820
pd->nsport = ntohs(pd->nsport);
sys/net/pf_norm.c
1022
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/net/pf_norm.c
1023
u_int16_t mff = (ntohs(h->ip_off) & IP_MF);
sys/net/pf_norm.c
1641
if (ntohs(mss) > maxmss) {
sys/net/pf_norm.c
777
frent->fe_len = ntohs(ip->ip_len) - (ip->ip_hl << 2);
sys/net/pf_norm.c
778
frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
sys/net/pf_norm.c
779
frent->fe_mff = ntohs(ip->ip_off) & IP_MF;
sys/net/pf_norm.c
822
DPFPRINTF(LOG_INFO, "complete: %p(%d)", m, ntohs(ip->ip_len));
sys/net/pf_norm.c
849
frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen;
sys/net/pf_norm.c
850
frent->fe_off = ntohs(fraghdr->ip6f_offlg & IP6F_OFF_MASK);
sys/net/pf_norm.c
926
DPFPRINTF(LOG_INFO, "complete: %p(%d)", m, ntohs(ip6->ip6_plen));
sys/net/pf_osfp.c
148
fp.fp_psize = ntohs(ip->ip_len);
sys/net/pf_osfp.c
171
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/net/pf_osfp.c
190
fp.fp_wsize = ntohs(tcp->th_win);
sys/net/pf_osfp.c
217
fp.fp_mss = ntohs(fp.fp_mss);
sys/net/pf_osfp.c
252
srcname, ntohs(tcp->th_sport),
sys/net/pipex.c
1243
pppoe.session_id = ntohs(pppoe.session_id);
sys/net/pipex.c
1281
m0 = pipex_common_input(session, m0, hlen, ntohs(pppoe.length), 0, ns);
sys/net/pipex.c
1473
flags = ntohs(gre.flags);
sys/net/pipex.c
1497
id = ntohs(gre.call_id);
sys/net/pipex.c
1542
flags = ntohs(gre->flags);
sys/net/pipex.c
1617
m0 = pipex_common_input(session, m0, hlen, ntohs(gre->len), 1, ns);
sys/net/pipex.c
1725
flags = ntohs(gre.flags);
sys/net/pipex.c
1742
id = ntohs(gre.call_id);
sys/net/pipex.c
1784
flags = ntohs(gre->flags);
sys/net/pipex.c
2065
flags = ntohs(flags) & PIPEX_L2TP_FLAG_MASK;
sys/net/pipex.c
2235
flags = ntohs(l2tp.flagsver);
sys/net/pipex.c
2250
session_id = ntohs(l2tp.session_id);
sys/net/pipex.c
2251
tunnel_id = ntohs(l2tp.tunnel_id);
sys/net/pipex.c
2295
KASSERT(ntohs(l2tp->flagsver) & PIPEX_L2TP_FLAG_SEQUENCE);
sys/net/pipex.c
2302
ns = ntohs(seq->ns);
sys/net/pipex.c
2303
nr = ntohs(seq->nr);
sys/net/pipex.c
2854
ip_off = ntohs(pip->ip_off);
sys/net/pipex.c
2944
ip_off = ntohs(pip->ip_off);
sys/net/pipex.c
2975
switch (ntohs(uh->uh_sport)) {
sys/net/pipex.c
2984
switch (ntohs(uh->uh_dport)) {
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
286
deltaS = ntohs(th->th_urp);
sys/net/slcompress.c
296
deltaS = (u_int16_t)(ntohs(th->th_win) - ntohs(oth->th_win));
sys/net/slcompress.c
330
ntohs(cs->cs_ip.ip_len) == hlen)
sys/net/slcompress.c
345
deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
sys/net/slcompress.c
353
if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
sys/net/slcompress.c
361
deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
sys/net/slcompress.c
372
deltaA = ntohs(th->th_sum);
sys/net/slcompress.c
540
u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
sys/net/slcompress.c
547
th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
sys/net/slcompress.c
568
cs->cs_ip.ip_id = htons(ntohs(cs->cs_ip.ip_id) + 1);
sys/net/trunklacp.c
1692
ntohs(mdu->mdu_info.mi_rq_port),
sys/net/trunklacp.c
1778
ntohs(sysid->lsi_prio),
sys/net/trunklacp.c
1788
ntohs(portid->lpi_prio),
sys/net/trunklacp.c
1789
ntohs(portid->lpi_portno));
sys/net/trunklacp.c
1802
ntohs(peer->lip_key),
sys/net/trunklacp.c
1868
printf("maxdelay=%d\n", ntohs(du->ldu_collector.lci_maxdelay));
sys/net/trunklacp.c
212
if (ntohs(eh->ether_type) == ETHERTYPE_SLOW) {
sys/net/trunklacp.c
432
ntohs(mdu->mdu_info.mi_rq_port),
sys/net/trunklacp.c
569
req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio);
sys/net/trunklacp.c
572
req->actor_key = ntohs(la->la_actor.lip_key);
sys/net/trunklacp.c
573
req->actor_portprio = ntohs(la->la_actor.lip_portid.lpi_prio);
sys/net/trunklacp.c
574
req->actor_portno = ntohs(la->la_actor.lip_portid.lpi_portno);
sys/net/trunklacp.c
577
req->partner_prio = ntohs(la->la_partner.lip_systemid.lsi_prio);
sys/net/trunklacp.c
580
req->partner_key = ntohs(la->la_partner.lip_key);
sys/net/trunklacp.c
582
ntohs(la->la_partner.lip_portid.lpi_prio);
sys/net/trunklacp.c
584
ntohs(la->la_partner.lip_portid.lpi_portno);
sys/net/trunklacp.c
615
req->actor_prio = ntohs(lp->lp_actor.lip_systemid.lsi_prio);
sys/net/trunklacp.c
618
req->actor_key = ntohs(lp->lp_actor.lip_key);
sys/net/trunklacp.c
619
req->actor_portprio = ntohs(lp->lp_actor.lip_portid.lpi_prio);
sys/net/trunklacp.c
620
req->actor_portno = ntohs(lp->lp_actor.lip_portid.lpi_portno);
sys/net/trunklacp.c
623
req->partner_prio = ntohs(lp->lp_partner.lip_systemid.lsi_prio);
sys/net/trunklacp.c
626
req->partner_key = ntohs(lp->lp_partner.lip_key);
sys/net/trunklacp.c
627
req->partner_portprio = ntohs(lp->lp_partner.lip_portid.lpi_prio);
sys/net/trunklacp.c
628
req->partner_portno = ntohs(lp->lp_partner.lip_portid.lpi_portno);
sys/net80211/ieee80211_input.c
1264
len = ntohs(eh->ether_type);
sys/netinet/if_ether.c
542
if (ntohs(ar->ar_hrd) != ARPHRD_ETHER ||
sys/netinet/if_ether.c
543
ntohs(ar->ar_pro) != ETHERTYPE_IP ||
sys/netinet/if_ether.c
609
op = ntohs(ea->arp_op);
sys/netinet/if_ether.c
922
op = ntohs(ar->arp_op);
sys/netinet/igmp.c
284
igmplen = ntohs(ip->ip_len) - iphlen;
sys/netinet/in_pcb.c
1227
__func__, ntohl(faddr.s_addr), ntohs(fport),
sys/netinet/in_pcb.c
1228
ntohl(laddr.s_addr), ntohs(lport), rdomain);
sys/netinet/in_pcb.c
1310
__func__, ntohl(laddr.s_addr), ntohs(lport), rdomain);
sys/netinet/in_pcb.c
333
if (in_rootonly(ntohs(lport), so->so_proto->pr_protocol) &&
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_icmp.c
1031
u_long mtu = ntohs(icp->icmp_nextmtu); /* Why a long? IPv6 */
sys/netinet/ip_icmp.c
1047
mtu = ntohs(icp->icmp_ip.ip_len);
sys/netinet/ip_icmp.c
1166
off = roundup(ntohs(ip->ip_len) - hlen, sizeof(u_int32_t));
sys/netinet/ip_icmp.c
197
icmplen = oiplen + min(8, ntohs(oip->ip_len));
sys/netinet/ip_icmp.c
343
icmplen = ntohs(ip->ip_len) - hlen;
sys/netinet/ip_input.c
1015
if (ntohs(q->ipqe_ip->ip_off) > ntohs(ipqe->ipqe_ip->ip_off))
sys/netinet/ip_input.c
1024
i = ntohs(p->ipqe_ip->ip_off) + ntohs(p->ipqe_ip->ip_len) -
sys/netinet/ip_input.c
1025
ntohs(ipqe->ipqe_ip->ip_off);
sys/netinet/ip_input.c
1027
if (i >= ntohs(ipqe->ipqe_ip->ip_len))
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
1042
ntohs(ipqe->ipqe_ip->ip_off) + ntohs(ipqe->ipqe_ip->ip_len) >
sys/netinet/ip_input.c
1043
ntohs(q->ipqe_ip->ip_off); q = nq) {
sys/netinet/ip_input.c
1044
i = (ntohs(ipqe->ipqe_ip->ip_off) +
sys/netinet/ip_input.c
1045
ntohs(ipqe->ipqe_ip->ip_len)) - ntohs(q->ipqe_ip->ip_off);
sys/netinet/ip_input.c
1046
if (i < ntohs(q->ipqe_ip->ip_len)) {
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
1074
if (ntohs(q->ipqe_ip->ip_off) != next)
sys/netinet/ip_input.c
1076
next += ntohs(q->ipqe_ip->ip_len);
sys/netinet/ip_input.c
1541
ip->ip_len = htons(ntohs(ip->ip_len) - olen);
sys/netinet/ip_input.c
1610
icmp_len = min(sizeof(icmp_buf), ntohs(ip->ip_len));
sys/netinet/ip_input.c
407
len = ntohs(ip->ip_len);
sys/netinet/ip_input.c
665
ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
sys/netinet/ip_input.c
672
if (ntohs(ip->ip_len) == 0 ||
sys/netinet/ip_input.c
673
(ntohs(ip->ip_len) & 0x7) != 0) {
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_ipip.c
413
ipo->ip_off = ntohs(ipo->ip_off);
sys/netinet/ip_ipsp.c
618
ntohs(tdb->tdb_udpencap_port));
sys/netinet/ip_output.c
1862
ip->ip_dst.s_addr, htonl(ntohs(ip->ip_len) -
sys/netinet/ip_output.c
369
if (ntohs(ip->ip_len) > ifp->if_mtu) {
sys/netinet/ip_output.c
615
len = ntohs(ip->ip_len);
sys/netinet/ip_output.c
725
(ntohs(ip->ip_off) & ~IP_MF);
sys/netinet/ip_output.c
780
if (optlen + ntohs(ip->ip_len) > IP_MAXPACKET)
sys/netinet/ip_output.c
813
ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
sys/netinet/ipsec_input.c
948
mtu = ntohs(icp->icmp_nextmtu);
sys/netinet/ipsec_input.c
984
mtu = ntohs(icp->icmp_nextmtu);
sys/netinet/raw_ip.c
359
ntohs(ip->ip_len) < hlen ||
sys/netinet/raw_ip.c
360
ntohs(ip->ip_len) != m->m_pkthdr.len) {
sys/netinet/tcp_input.c
2169
mss = ntohs(mss);
sys/netinet/tcp_input.c
547
th->th_win = ntohs(th->th_win);
sys/netinet/tcp_input.c
548
th->th_urp = ntohs(th->th_urp);
sys/netinet/tcp_subr.c
774
mtu = (u_int)ntohs(icp->icmp_nextmtu);
sys/netinet/udp_usrreq.c
235
len = ntohs((u_int16_t)uh->uh_ulen);
sys/netinet6/frag6.c
146
(((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
sys/netinet6/frag6.c
163
fragoff = ntohs(ip6f->ip6f_offlg & IP6F_OFF_MASK);
sys/netinet6/frag6.c
171
if (sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) <= offset) {
sys/netinet6/frag6.c
244
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
sys/netinet6/icmp6.c
1194
int icmp6len = ntohs(ip6->ip6_plen);
sys/netinet6/in6_pcb.c
627
__func__, ntohs(fport), ntohs(lport), rdomain);
sys/netinet6/in6_pcb.c
698
__func__, ntohs(lport), rdomain);
sys/netinet6/in6_src.c
466
scopeid = ntohs(sin6->sin6_addr.s6_addr16[1]);
sys/netinet6/ip6_divert.c
96
if (m->m_pkthdr.len < sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen))
sys/netinet6/ip6_input.c
650
plen = (u_int32_t)ntohs(ip6->ip6_plen);
sys/netinet6/ip6_input.c
733
lim = min(m->m_pkthdr.len, ntohs(ip6->ip6_plen) + sizeof(*ip6));
sys/netinet6/ip6_input.c
879
*rtalertp = ntohs(rtalert_val);
sys/netinet6/ip6_output.c
2867
len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netinet6/mld6.c
263
timer = ntohs(mldh->mld_maxdelay)*PR_FASTHZ/MLD_TIMER_SCALE;
sys/netinet6/mld6.h
56
#define MLD_MRC_EXP(x) ((ntohs((x)) >> 12) & 0x0007)
sys/netinet6/mld6.h
57
#define MLD_MRC_MANT(x) (ntohs((x)) & 0x0fff)
sys/netinet6/nd6.c
631
ntohs(*(u_int16_t *)&addr->sin6_addr.s6_addr[2]) == ifp->if_index)
sys/netmpls/mpls_input.c
421
ntohs(ip->ip_len) - sizeof(*ip));
sys/nfs/nfs_srvsubs.c
348
(ntohs(saddr->sin_port) >= IPPORT_RESERVED ||
sys/nfs/nfs_srvsubs.c
349
(slp->ns_so->so_type == SOCK_STREAM && ntohs(saddr->sin_port) == 20))) {
sys/nfs/nfs_syscalls.c
312
ntohs(sin->sin_port) >= IPPORT_RESERVED) {
sys/nfs/nfs_vfsops.c
309
if ((proc0.p_ucred->cr_ngroups = ntohs(nfs_diskless.swap_ucred.cr_ngroups)) >
sys/sys/endian.h
103
#define NTOHS(x) (x) = ntohs((u_int16_t)(x))
usr.bin/dig/lib/dns/tsig.c
1187
addcount_n = ntohs(addcount);
usr.bin/dig/lib/dns/tsig.c
874
addcount_n = ntohs(addcount);
usr.bin/dig/lib/isc/sockaddr.c
123
snprintf(pbuf, sizeof(pbuf), "%u", ntohs(sin->sin_port));
usr.bin/dig/lib/isc/sockaddr.c
127
snprintf(pbuf, sizeof(pbuf), "%u", ntohs(sin6->sin6_port));
usr.bin/dig/lib/isc/sockaddr.c
230
return (ntohs(sin->sin_port));
usr.bin/dig/lib/isc/sockaddr.c
234
return (ntohs(sin6->sin6_port));
usr.bin/fstat/fstat.c
587
ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]);
usr.bin/fstat/fstat.c
656
inet_ntoa(laddr), ntohs(kf->inp_lport));
usr.bin/fstat/fstat.c
664
inet_ntoa(faddr), ntohs(kf->inp_fport));
usr.bin/fstat/fstat.c
668
inet_ntoa(laddr), ntohs(kf->inp_lport));
usr.bin/fstat/fstat.c
672
inet_ntoa(faddr), ntohs(kf->inp_fport));
usr.bin/fstat/fstat.c
695
xaddrbuf, ntohs(kf->inp_lport));
usr.bin/fstat/fstat.c
705
xaddrbuf, ntohs(kf->inp_fport));
usr.bin/fstat/fstat.c
712
xaddrbuf, ntohs(kf->inp_lport));
usr.bin/fstat/fstat.c
718
xaddrbuf, ntohs(kf->inp_fport));
usr.bin/getent/getent.c
394
"%-16s %5d/%s", se->s_name, ntohs(se->s_port), se->s_proto)
usr.bin/kdump/ktrstruct.c
98
printf("%s:%u", addr, ntohs(sa_in->sin_port));
usr.bin/nc/netcat.c
1458
return ntohs(entry->s_port);
usr.bin/nc/socks.c
345
host, ntohs(serverport));
usr.bin/nc/socks.c
349
host, ntohs(serverport));
usr.bin/netstat/if.c
232
ntohs(*(u_int16_t *)
usr.bin/netstat/inet.c
894
else if (local && !nflag && (nam = getrpcportnam(ntohs(port),
usr.bin/netstat/inet.c
897
ntohs(port), nam);
usr.bin/netstat/inet.c
899
snprintf(cp, line + sizeof line - cp, "%d", ntohs(port));
usr.bin/netstat/inet6.c
903
snprintf(cp, len, "%d", ntohs((u_short)port));
usr.bin/netstat/inet6.c
960
ntohs(*(u_int16_t *)&in6p->s6_addr[2]);
usr.bin/netstat/show.c
350
sa6->sin6_scope_id = (u_int32_t)ntohs(*(u_short *)
usr.bin/netstat/show.c
453
ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]);
usr.bin/openssl/s_client.c
1784
ntohs(ladd.sin_port));
usr.bin/openssl/s_socket.c
322
*port_ptr = ntohs((unsigned short) s->s_port);
usr.bin/sndiod/sock.c
1080
c = ctlslot_lookup(f->ctlslot, ntohs(m->u.ctlset.addr));
usr.bin/sndiod/sock.c
1088
if (!ctl_setval(c, ntohs(m->u.ctlset.val))) {
usr.bin/sndiod/sock.c
1320
desc->node0.unit = ntohs(c->node0.unit);
usr.bin/sndiod/sock.c
1323
desc->node1.unit = ntohs(c->node1.unit);
usr.bin/sndiod/sock.c
595
rchan = ntohs(p->rchan);
usr.bin/sndiod/sock.c
596
pchan = ntohs(p->pchan);
usr.bin/sndiod/sock.c
718
mode = ntohs(p->mode);
usr.bin/ssh/misc.c
546
return ntohs(se->s_port);
usr.bin/ssh/readconf.c
511
port = sp ? ntohs(sp->s_port) : SSH_DEFAULT_PORT;
usr.bin/systat/inetname.c
61
ntohs(*(u_int16_t *)&in6->s6_addr[2]);
usr.bin/systat/netstat.c
436
tbprintf(":%d", ntohs((u_short)port));
usr.bin/systat/netstat.c
454
tbprintf(":%d", ntohs((u_short)port));
usr.bin/systat/pftop.c
1210
p1 = ntohs(p1);
usr.bin/systat/pftop.c
1211
p2 = ntohs(p2);
usr.bin/systat/pftop.c
494
if (ntohs(pa) > ntohs(pb))
usr.bin/systat/pftop.c
558
if (ntohs(pa) > ntohs(pb))
usr.bin/systat/pftop.c
560
if (ntohs(pa) < ntohs(pb))
usr.bin/systat/pftop.c
741
u_int16_t ps = ntohs(ks->port[idx]);
usr.bin/systat/pftop.c
742
u_int16_t pn = ntohs(kn->port[idx]);
usr.bin/talk/look_up.c
66
if (ntohs(response.addr.sa_family) != AF_INET)
usr.bin/tftp/tftp.c
223
ap->th_opcode = ntohs(ap->th_opcode);
usr.bin/tftp/tftp.c
230
ap->th_block = ntohs(ap->th_block);
usr.bin/tftp/tftp.c
370
dp->th_opcode = ntohs(dp->th_opcode);
usr.bin/tftp/tftp.c
378
dp->th_block = ntohs(dp->th_block);
usr.bin/tftp/tftp.c
514
u_short op = ntohs(tp->th_opcode);
usr.bin/tftp/tftp.c
533
printf("<block=%d, %d bytes>\n", ntohs(tp->th_block), n - 4);
usr.bin/tftp/tftp.c
536
printf("<block=%d>\n", ntohs(tp->th_block));
usr.bin/tftp/tftp.c
539
printf("<code=%d, msg=%s>\n", ntohs(tp->th_code), tp->th_msg);
usr.bin/tftp/tftp.c
588
u_short op = ntohs(tp->th_opcode);
usr.sbin/amd/amd/rpc_fwd.c
277
ntohs(fwdto->sin_port));
usr.sbin/amd/amd/util.c
291
*pp = ntohs(sin.sin_port);
usr.sbin/bgpctl/mrtparser.c
109
switch (ntohs(h.type)) {
usr.sbin/bgpctl/mrtparser.c
121
ntohs(h.type));
usr.sbin/bgpctl/mrtparser.c
132
ntohs(h.type));
usr.sbin/bgpctl/mrtparser.c
135
switch (ntohs(h.subtype)) {
usr.sbin/bgpctl/mrtparser.c
149
ntohs(h.subtype));
usr.sbin/bgpctl/mrtparser.c
154
switch (ntohs(h.subtype)) {
usr.sbin/bgpctl/mrtparser.c
184
ntohs(h.subtype));
usr.sbin/bgpctl/mrtparser.c
190
switch (ntohs(h.subtype)) {
usr.sbin/bgpctl/mrtparser.c
225
ntohs(h.subtype));
usr.sbin/bgpctl/mrtparser.c
231
printf("unknown MRT type %d\n", ntohs(h.type));
usr.sbin/bgpctl/mrtparser.c
355
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
401
errx(1, "unknown subtype %hd", ntohs(hdr->subtype));
usr.sbin/bgpctl/mrtparser.c
485
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
501
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
561
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
909
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
915
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpctl/mrtparser.c
972
if (ntohs(hdr->type) == MSG_PROTOCOL_BGP4MP_ET) {
usr.sbin/bgpctl/mrtparser.c
978
switch (ntohs(hdr->subtype)) {
usr.sbin/bgpd/config.c
616
la->sa_len), ntohs(((struct sockaddr_in *)
usr.sbin/bgpd/config.c
622
la->sa_len), ntohs(((struct sockaddr_in6 *)
usr.sbin/bgpd/rtr_proto.c
416
if (session_id != ntohs(rh->session_id)) {
usr.sbin/bgpd/rtr_proto.c
419
log_rtr_type(rh->type), ntohs(rh->session_id), session_id);
usr.sbin/bgpd/rtr_proto.c
486
errcode = ntohs(rh.session_id);
usr.sbin/bgpd/rtr_proto.c
588
rs->session_id = ntohs(notify.hdr.session_id);
usr.sbin/bgpd/rtr_proto.c
619
rs->session_id = ntohs(resp.hdr.session_id);
usr.sbin/bgpd/rtr_proto.c
995
errcode = ntohs(rh.errcode);
usr.sbin/bgpd/util.c
1247
*port = ntohs(sa_in->sin_port);
usr.sbin/bgpd/util.c
1263
sa_in6->sin6_scope_id = ntohs(tmp16);
usr.sbin/bgpd/util.c
1271
*port = ntohs(sa_in6->sin6_port);
usr.sbin/bgpd/util.c
141
sa_in6.sin6_scope_id = ntohs(tmp16);
usr.sbin/bgplgd/slowcgi.c
1228
ldebug("%srequestId: %d", p, ntohs(h->id));
usr.sbin/bgplgd/slowcgi.c
1229
ldebug("%scontentLength: %d", p, ntohs(h->content_len));
usr.sbin/bgplgd/slowcgi.c
1237
ldebug("%srole %d", p, ntohs(b->role));
usr.sbin/bgplgd/slowcgi.c
844
if (n < sizeof(struct fcgi_record_header) + ntohs(h->content_len)
usr.sbin/bgplgd/slowcgi.c
854
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/bgplgd/slowcgi.c
858
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/bgplgd/slowcgi.c
862
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/bgplgd/slowcgi.c
869
return (sizeof(struct fcgi_record_header) + ntohs(h->content_len)
usr.sbin/dhcpd/convert.c
76
return (ntohs(ibuf));
usr.sbin/dhcpd/dhcpd.c
118
sync_port = ntohs(ent->s_port);
usr.sbin/dhcpd/packet.c
147
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
usr.sbin/dhcpd/packet.c
212
if (ntohs(ip->ip_len) != buflen)
usr.sbin/dhcpd/packet.c
214
ntohs(ip->ip_len), buflen);
usr.sbin/dhcpd/packet.c
219
if (ntohs(ip->ip_len) > buflen)
usr.sbin/dhcpd/packet.c
229
if (ip_len + ntohs(udp->uh_ulen) > buflen)
usr.sbin/dhcpd/packet.c
239
len = ntohs(udp->uh_ulen) - sizeof(*udp);
usr.sbin/dhcpd/packet.c
264
IPPROTO_UDP + ntohs(udp->uh_ulen)))));
usr.sbin/dhcpd/packet.c
69
sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
usr.sbin/dhcpd/sync.c
269
len < ntohs(hdr->sh_length))
usr.sbin/dhcpd/sync.c
271
len = ntohs(hdr->sh_length);
usr.sbin/dhcpd/sync.c
290
len < ntohs(tlv->st_length))
usr.sbin/dhcpd/sync.c
293
switch (ntohs(tlv->st_type)) {
usr.sbin/dhcpd/sync.c
296
if (sizeof(*lv) > ntohs(tlv->st_length))
usr.sbin/dhcpd/sync.c
339
printf("invalid type: %d\n", ntohs(tlv->st_type));
usr.sbin/dhcpd/sync.c
342
len -= ntohs(tlv->st_length);
usr.sbin/dhcpd/sync.c
343
p = ((u_int8_t *)tlv) + ntohs(tlv->st_length);
usr.sbin/dhcpd/udpsock.c
81
ntohs(server_port));
usr.sbin/dhcrelay/packet.c
161
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
usr.sbin/dhcrelay/packet.c
266
if (buflen != offset + ntohs(ip->ip_len))
usr.sbin/dhcrelay/packet.c
268
ntohs(ip->ip_len), buflen - offset);
usr.sbin/dhcrelay/packet.c
272
if (buflen < offset + ntohs(ip->ip_len))
usr.sbin/dhcrelay/packet.c
282
if (buflen < offset + ip_len + ntohs(udp->uh_ulen))
usr.sbin/dhcrelay/packet.c
292
len = ntohs(udp->uh_ulen) - sizeof(*udp);
usr.sbin/dhcrelay/packet.c
317
IPPROTO_UDP + ntohs(udp->uh_ulen)))));
usr.sbin/dhcrelay/packet.c
74
sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
usr.sbin/dhcrelay6/bpf.c
231
ntohs(ss2sin6(&pc->pc_dst)->sin6_port), intf->name);
usr.sbin/dhcrelay6/dhcrelay6.c
607
optcode = ntohs(dso->dso_code);
usr.sbin/dhcrelay6/dhcrelay6.c
608
dsolen = sizeof(*dso) + ntohs(dso->dso_length);
usr.sbin/dhcrelay6/dhcrelay6.c
647
dhcplen = ntohs(dso->dso_length);
usr.sbin/dhcrelay6/packet.c
139
IPPROTO_UDP + ntohs(ip6.ip6_plen)
usr.sbin/dhcrelay6/packet.c
154
pc->pc_ethertype = ntohs(ether->ether_type);
usr.sbin/dhcrelay6/packet.c
185
ptotal = ntohs(ip6->ip6_plen);
usr.sbin/dhcrelay6/packet.c
220
IPPROTO_UDP + ntohs(uh->uh_ulen))))));
usr.sbin/dhcrelay6/packet.c
74
sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
usr.sbin/dvmrpd/in_cksum.c
80
sum = ntohs(sum);
usr.sbin/dvmrpd/packet.c
250
if (ntohs(ip_hdr->ip_len) != len) {
usr.sbin/dvmrpd/packet.c
252
ntohs(ip_hdr->ip_len));
usr.sbin/eigrpd/hello.c
126
nbr = nbr_new(ei, src, ntohs(tp->holdtime), 0);
usr.sbin/eigrpd/in_cksum.c
80
sum = ntohs(sum);
usr.sbin/eigrpd/packet.c
207
buffer, ntohs(eigrp_hdr.as), ntohl(eigrp_hdr.seq_num),
usr.sbin/eigrpd/packet.c
358
if (ntohs(tlv.length) > len) {
usr.sbin/eigrpd/packet.c
364
tlv_type = ntohs(tlv.type);
usr.sbin/eigrpd/packet.c
414
buf += ntohs(tlv.length);
usr.sbin/eigrpd/packet.c
415
len -= ntohs(tlv.length);
usr.sbin/eigrpd/packet.c
418
ei = eigrp_if_lookup(iface, af, ntohs(eigrp_hdr->as));
usr.sbin/eigrpd/packet.c
560
if (ntohs(ip_hdr.ip_len) != len) {
usr.sbin/eigrpd/packet.c
562
ntohs(ip_hdr.ip_len));
usr.sbin/eigrpd/packet.c
638
if (ntohs(eigrp_hdr->vrid) != EIGRP_VRID_UNICAST_AF) {
usr.sbin/eigrpd/packet.c
640
__func__, ntohs(eigrp_hdr->vrid), iface->name);
usr.sbin/eigrpd/tlv.c
267
if (ntohs(tlv->length) != TLV_TYPE_PARAMETER_LEN) {
usr.sbin/eigrpd/tlv.c
283
len = ntohs(tlv->length);
usr.sbin/eigrpd/tlv.c
336
if (ntohs(tlv->length) != TLV_TYPE_SW_VERSION_LEN) {
usr.sbin/eigrpd/tlv.c
349
if (ntohs(tlv->length) != TLV_TYPE_MCAST_SEQ_LEN) {
usr.sbin/eigrpd/tlv.c
376
switch (ntohs(tlv->type) & TLV_TYPE_MASK) {
usr.sbin/eigrpd/tlv.c
388
tlv_len = ntohs(tlv->length);
usr.sbin/eigrpd/tlv.c
416
ri->emetric.reserved = ntohs(ri->emetric.reserved);
usr.sbin/eigrpd/util.c
269
__func__, log_sockaddr(sin6), ntohs(tmp16));
usr.sbin/eigrpd/util.c
288
sin6->sin6_scope_id = ntohs(tmp16);
usr.sbin/httpd/server.c
1288
ibuf, ntohs(clt->clt_port), obuf, vmsg == NULL ? "" : vmsg,
usr.sbin/httpd/server_fcgi.c
292
(void)snprintf(hbuf, sizeof(hbuf), "%d", ntohs(clt->clt_port));
usr.sbin/httpd/server_fcgi.c
331
ntohs(server_socket_getport(&clt->clt_srv_ss)));
usr.sbin/httpd/server_fcgi.c
359
ntohs(h->content_len)) == -1) {
usr.sbin/httpd/server_fcgi.c
546
h->version, h->type, ntohs(h->id),
usr.sbin/httpd/server_fcgi.c
547
ntohs(h->content_len), h->padding_len);
usr.sbin/httpd/server_fcgi.c
549
clt->clt_fcgi.toread = ntohs(h->content_len);
usr.sbin/httpd/server_http.c
1211
"%u", ntohs(clt->clt_port));
usr.sbin/httpd/server_http.c
1267
ntohs(srv_conf->port));
usr.sbin/httpd/server_http.c
1359
ntohs(srv_conf->port), host->kv_value,
usr.sbin/httpd/server_http.c
811
port = ntohs(server_socket_getport(ss));
usr.sbin/inetd/inetd.c
1711
ntohs(sep->se_ctrladdr_in.sin_port) >=
usr.sbin/inetd/inetd.c
443
port = ntohs(((struct sockaddr_in *)sa)->sin_port);
usr.sbin/inetd/inetd.c
455
port = ntohs(((struct sockaddr_in6 *)sa)->sin6_port);
usr.sbin/inetd/inetd.c
919
ntohs(sin.sin_port));
usr.sbin/inetd/inetd.c
921
if (!pmap_set(sep->se_rpcprog, n, pp->p_proto, ntohs(sin.sin_port)))
usr.sbin/inetd/inetd.c
925
ntohs(sin.sin_port));
usr.sbin/iscsid/initiator.c
596
loresp->response, ntohs(loresp->time2wait),
usr.sbin/iscsid/initiator.c
597
ntohs(loresp->time2retain));
usr.sbin/ldapd/ldape.c
400
log_info("listening on %s:%d", host, ntohs(l->port));
usr.sbin/ldpd/address.c
189
msg_type = ntohs(msg.type);
usr.sbin/ldpd/address.c
209
alt_len = ntohs(alt.length);
usr.sbin/ldpd/address.c
210
alt_family = ntohs(alt.family);
usr.sbin/ldpd/address.c
215
if (ntohs(alt.type) != TLV_TYPE_ADDRLIST) {
usr.sbin/ldpd/address.c
293
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/address.c
294
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/address.c
304
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/hello.c
472
if (ntohs(tlv.length) != sizeof(tlv) - TLV_HDR_SIZE)
usr.sbin/ldpd/hello.c
475
*holdtime = ntohs(tlv.holdtime);
usr.sbin/ldpd/hello.c
476
*flags = ntohs(tlv.flags);
usr.sbin/ldpd/hello.c
507
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/hello.c
514
switch (ntohs(tlv.type)) {
usr.sbin/ldpd/hello.c
556
*trans_pref = ntohs(*trans_pref);
usr.sbin/ldpd/hello.c
559
*trans_pref = ntohs(*trans_pref) >> 12;
usr.sbin/ldpd/hello.c
565
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/init.c
113
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/init.c
114
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/init.c
194
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/init.c
205
ntohs(sess.keepalive_time));
usr.sbin/ldpd/init.c
207
max_pdu_len = ntohs(sess.max_pdu_len);
usr.sbin/ldpd/init.c
293
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/init.c
294
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/init.c
365
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/init.c
80
if (ntohs(sess.length) != SESS_PRMS_LEN) {
usr.sbin/ldpd/init.c
84
if (ntohs(sess.proto_version) != LDP_VERSION) {
usr.sbin/ldpd/init.c
88
if (ntohs(sess.keepalive_time) < MIN_KEEPALIVE) {
usr.sbin/ldpd/init.c
93
ntohs(sess.lspace_id) != 0) {
usr.sbin/ldpd/labelmapping.c
149
if (ntohs(ft.type) != TLV_TYPE_FEC) {
usr.sbin/ldpd/labelmapping.c
153
feclen = ntohs(ft.length);
usr.sbin/ldpd/labelmapping.c
254
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/labelmapping.c
255
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/labelmapping.c
347
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/labelmapping.c
466
if (!(ntohs(lt.type) & TLV_TYPE_GENERICLABEL)) {
usr.sbin/ldpd/labelmapping.c
473
if (ntohs(lt.length) != sizeof(lt) - TLV_HDR_SIZE) {
usr.sbin/ldpd/labelmapping.c
722
map->fec.prefix.af = ntohs(map->fec.prefix.af);
usr.sbin/ldpd/labelmapping.c
765
map->fec.pwid.type = ntohs(map->fec.pwid.type);
usr.sbin/ldpd/labelmapping.c
829
map->fec.pwid.ifmtu = ntohs(map->fec.pwid.ifmtu);
usr.sbin/ldpd/labelmapping.c
869
ntohs(map->fec.twcard.u.prefix_af);
usr.sbin/ldpd/labelmapping.c
895
ntohs(map->fec.twcard.u.pw_type);
usr.sbin/ldpd/notification.c
129
if (ntohs(st.length) > STATUS_SIZE - TLV_HDR_SIZE ||
usr.sbin/ldpd/notification.c
130
ntohs(st.length) > len - TLV_HDR_SIZE) {
usr.sbin/ldpd/notification.c
152
tlv_type = ntohs(tlv.type);
usr.sbin/ldpd/notification.c
153
tlv_len = ntohs(tlv.length);
usr.sbin/ldpd/notification.c
190
if (!(ntohs(tlv.type) & UNKNOWN_FLAG))
usr.sbin/ldpd/packet.c
209
if (ntohs(ldp_hdr.version) != LDP_VERSION) {
usr.sbin/ldpd/packet.c
211
ntohs(ldp_hdr.version), log_addr(af, &src));
usr.sbin/ldpd/packet.c
214
if (ntohs(ldp_hdr.lspace_id) != 0) {
usr.sbin/ldpd/packet.c
216
ntohs(ldp_hdr.lspace_id), log_addr(af, &src));
usr.sbin/ldpd/packet.c
220
pdu_len = ntohs(ldp_hdr.length);
usr.sbin/ldpd/packet.c
224
__func__, ntohs(ldp_hdr.length), log_addr(af, &src));
usr.sbin/ldpd/packet.c
240
msg_len = ntohs(msg.length);
usr.sbin/ldpd/packet.c
243
__func__, ntohs(msg.length), log_addr(af, &src));
usr.sbin/ldpd/packet.c
250
switch (ntohs(msg.type)) {
usr.sbin/ldpd/packet.c
457
if (ntohs(ldp_hdr->version) != LDP_VERSION) {
usr.sbin/ldpd/packet.c
463
pdu_len = ntohs(ldp_hdr->length);
usr.sbin/ldpd/packet.c
495
type = ntohs(msg->type);
usr.sbin/ldpd/packet.c
496
msg_len = ntohs(msg->length);
usr.sbin/ldpd/packet.c
566
if (!(ntohs(msg->type) & UNKNOWN_FLAG))
usr.sbin/ldpd/packet.c
664
dlen = ntohs(l.length) + LDP_HDR_DEAD_LEN;
usr.sbin/ldpd/util.c
268
__func__, log_sockaddr(sin6), ntohs(tmp16));
usr.sbin/ldpd/util.c
287
sin6->sin6_scope_id = ntohs(tmp16);
usr.sbin/lpd/parse.y
178
$$ = ntohs(servent->s_port);
usr.sbin/lpr/common_source/common.c
384
ntohs(*(u_int16_t *)&sin6p->sin6_addr.s6_addr[2]);
usr.sbin/mrinfo/mrinfo.c
466
ipdatalen = ntohs(ip->ip_len) - iphdrlen;
usr.sbin/mrouted/igmp.c
153
ipdatalen = ntohs(ip->ip_len) - iphdrlen;
usr.sbin/mrouted/igmp.c
333
if (sendto(igmp_socket, send_buf, ntohs(ip->ip_len), 0,
usr.sbin/mtrace/mtrace.c
475
ipdatalen = ntohs(ip->ip_len) - iphdrlen;
usr.sbin/mtrace/mtrace.c
629
ipdatalen = ntohs(ip->ip_len) - iphdrlen;
usr.sbin/ndp/ndp.c
532
ntohs(*(u_short *)&in6->s6_addr[2]);
usr.sbin/ndp/ndp.c
865
sin->sin6_scope_id = (u_int32_t)ntohs(*(u_short *)
usr.sbin/npppd/l2tp/l2tp_ctrl.c
1109
ntohs(hdr->ns), htons(hdr->nr),
usr.sbin/npppd/l2tp/l2tp_ctrl.c
537
ntohs(header->ns));
usr.sbin/npppd/npppd/npppd_subr.c
315
ip_off = ntohs(pip->ip_off);
usr.sbin/npppd/npppd/npppd_subr.c
347
switch (ntohs(uh->uh_sport)) {
usr.sbin/npppd/npppd/npppd_subr.c
356
switch (ntohs(uh->uh_dport)) {
usr.sbin/npppd/npppd/npppd_subr.c
492
ip_off = ntohs(pip->ip_off);
usr.sbin/npppd/npppd/parse.y
566
if (ntohs(((struct sockaddr_in *)&$5)->sin_port) == 0)
usr.sbin/npppd/pppoe/pppoed.c
600
ether->ether_type = ntohs(ether->ether_type);
usr.sbin/npppd/pppoe/pppoed.c
642
session_id = pppoe->session_id = ntohs(pppoe->session_id);
usr.sbin/npppd/pppoe/pppoed.c
643
pppoe->length = ntohs(pppoe->length);
usr.sbin/npppd/pppoe/pppoed.c
974
tlv.length = ntohs(sizeof(uint32_t));
usr.sbin/npppd/pppoe/pppoed.c
985
tlv.length = ntohs(tlv_hostuniq->length);
usr.sbin/npppd/pppoe/pppoed.c
995
tlv.length = ntohs(0);
usr.sbin/npppd/pptp/pptp_call.c
332
ccr->call_id = ntohs(ccr->call_id);
usr.sbin/npppd/pptp/pptp_call.c
443
ocrq->call_id = ntohs(ocrq->call_id);
usr.sbin/npppd/pptp/pptp_call.c
444
ocrq->call_serial_number = ntohs(ocrq->call_serial_number);
usr.sbin/npppd/pptp/pptp_call.c
445
ocrq->recv_winsz = ntohs(ocrq->recv_winsz);
usr.sbin/npppd/pptp/pptp_call.c
447
ntohs(ocrq->packet_proccessing_delay);
usr.sbin/npppd/pptp/pptp_call.c
448
ocrq->phone_number_length = ntohs(ocrq->phone_number_length);
usr.sbin/npppd/pptp/pptp_call.c
449
ocrq->reservied1 = ntohs(ocrq->reservied1);
usr.sbin/npppd/pptp/pptp_ctrl.c
1054
call_id = ntohs(*(uint16_t *)pkt);
usr.sbin/npppd/pptp/pptp_ctrl.c
594
scc->protocol_version = ntohs(scc->protocol_version);
usr.sbin/npppd/pptp/pptp_ctrl.c
911
hdr->length = ntohs(hdr->length);
usr.sbin/npppd/pptp/pptp_ctrl.c
912
hdr->pptp_message_type = ntohs(hdr->pptp_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
914
hdr->control_message_type = ntohs(hdr->control_message_type);
usr.sbin/npppd/pptp/pptp_ctrl.c
915
hdr->reserved0 = ntohs(hdr->reserved0);
usr.sbin/npppd/pptp/pptpd.c
325
ntohs(_this->bind_sin.sin_port), __func__);
usr.sbin/npppd/pptp/pptpd.c
332
ntohs(_this->bind_sin.sin_port), __func__);
usr.sbin/npppd/pptp/pptpd.c
337
ntohs(_this->bind_sin.sin_port), _this->tun_name);
usr.sbin/npppd/pptp/pptpd.c
374
ntohs(bind_sin_gre.sin_port), __func__);
usr.sbin/npppd/pptp/pptpd.c
467
ntohs(_this->bind_sin.sin_port));
usr.sbin/npppd/pptp/pptpd.c
730
iphdr->ip_len = ntohs(iphdr->ip_len);
usr.sbin/nsd/dnstap/dnstap.c
762
*qport = ntohs(s->sin6_port);
usr.sbin/nsd/dnstap/dnstap.c
780
*qport = ntohs(s->sin_port);
usr.sbin/nsd/dnstap/dnstap.c
795
*rport = ntohs(s->sin6_port);
usr.sbin/nsd/dnstap/dnstap.c
809
*rport = ntohs(s->sin_port);
usr.sbin/nsd/namedb.c
672
return ntohs(type);
usr.sbin/nsd/options.c
2128
return acl_addr_matches_ipv6host(acl, addr, ntohs(((struct sockaddr_in6*)addr)->sin6_port));
usr.sbin/nsd/options.c
2138
return acl_addr_matches_ipv4host(acl, addr, ntohs(addr->sin_port));
usr.sbin/nsd/options.c
2153
return acl_addr_matches_ipv6host(acl, addr, ntohs(((struct sockaddr_in6*)addr)->sin6_port));
usr.sbin/nsd/options.c
2163
return acl_addr_matches_ipv4host(acl, addr, ntohs(addr->sin_port));
usr.sbin/nsd/options.c
3136
port = ntohs(a6->sin6_port);
usr.sbin/nsd/options.c
3144
port = ntohs(a->sin_port);
usr.sbin/nsd/server.c
125
VERBOSITY(6, (LOG_INFO, "%s: address is: %s, port is: %d", descr, str_buf, ntohs(s->sin_port)));
usr.sbin/nsd/server.c
130
VERBOSITY(6, (LOG_INFO, "%s: address is: %s, port is: %d", descr, str_buf, ntohs(s6->sin6_port)));
usr.sbin/nsd/server.c
2314
if (atoi(tls_port) == ntohs(port))
usr.sbin/nsd/server.c
4530
want_read_size = ntohs(header->len);
usr.sbin/nsd/server.c
4593
data->query->tcplen = ntohs(data->query->tcplen);
usr.sbin/nsd/server.c
5145
want_read_size = ntohs(header->len);
usr.sbin/nsd/server.c
5206
data->query->tcplen = ntohs(data->query->tcplen);
usr.sbin/nsd/util.c
1041
(unsigned)ntohs(((struct sockaddr_in6 *)addr)->sin6_port));
usr.sbin/nsd/util.c
1050
(unsigned)ntohs(((struct sockaddr_in *)addr)->sin_port));
usr.sbin/nsd/util.h
245
return ntohs(* (const uint16_t *) src);
usr.sbin/nsd/util/proxy_protocol.c
178
size = PP2_HEADER_SIZE + ntohs(header->len);
usr.sbin/nsd/xdp-server.c
671
if (ntohs(udp->dest) != DNS_PORT)
usr.sbin/nsd/xdp-server.c
761
switch (ntohs(eth->h_proto)) {
usr.sbin/nsd/xdp-util.h
115
csum_add_data(&sum, udp, ntohs(udp->len));
usr.sbin/nsd/xdp-util.h
92
csum_add_data(&sum, udp, ntohs(udp->len));
usr.sbin/nsd/xfrd-disk.c
430
(unsigned)ntohs(soa->type), (unsigned)ntohs(soa->klass),
usr.sbin/nsd/xfrd-notify.c
197
if(ntohs(a2->sin6_port) != destport)
usr.sbin/nsd/xfrd-notify.c
211
if(ntohs(a3->sin_port) != destport)
usr.sbin/nsd/xfrd-tcp.c
1439
tcp->msglen = ntohs(tcp->msglen);
usr.sbin/nsd/xfrd-tcp.c
1530
tcp->msglen = ntohs(tcp->msglen);
usr.sbin/nsd/xfrd.c
1976
if(ntohs(soa->type) != TYPE_SOA || ntohs(soa->klass) != CLASS_IN)
usr.sbin/ntpd/client.c
77
if (ntohs(sa_in->sin_port) == 0)
usr.sbin/ntpd/client.c
83
if (ntohs(sa_in6->sin6_port) == 0)
usr.sbin/ntpd/constraint.c
126
if (ntohs(sa_in->sin_port) == 0)
usr.sbin/ntpd/constraint.c
132
if (ntohs(sa_in6->sin6_port) == 0)
usr.sbin/ntpd/util.c
130
sfp.int_parts = ntohs(sfp.int_parts);
usr.sbin/ntpd/util.c
131
sfp.fractions = ntohs(sfp.fractions);
usr.sbin/ospf6ctl/ospf6ctl.c
566
switch (ntohs(type)) {
usr.sbin/ospf6ctl/ospf6ctl.c
589
if (asprintf(&format, "LSA type %x", ntohs(type)) == -1)
usr.sbin/ospf6ctl/ospf6ctl.c
594
if (LSA_IS_SCOPE_AREA(ntohs(type))) {
usr.sbin/ospf6ctl/ospf6ctl.c
598
} else if (LSA_IS_SCOPE_LLOCAL(ntohs(type))) {
usr.sbin/ospf6ctl/ospf6ctl.c
634
ntohs(lsa->age), ntohl(lsa->seq_num),
usr.sbin/ospf6ctl/ospf6ctl.c
635
ntohs(lsa->ls_chksum));
usr.sbin/ospf6ctl/ospf6ctl.c
661
switch (ntohs(type)) {
usr.sbin/ospf6ctl/ospf6ctl.c
684
printf("LS age: %d\n", ntohs(lsa->age));
usr.sbin/ospf6ctl/ospf6ctl.c
687
switch (ntohs(lsa->type)) {
usr.sbin/ospf6ctl/ospf6ctl.c
707
printf("Checksum: 0x%04x\n", ntohs(lsa->ls_chksum));
usr.sbin/ospf6ctl/ospf6ctl.c
708
printf("Length: %d\n", ntohs(lsa->len));
usr.sbin/ospf6ctl/ospf6ctl.c
866
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr) -
usr.sbin/ospf6ctl/ospf6ctl.c
891
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospf6ctl/ospf6ctl.c
928
printf(" Metric: %d\n\n", ntohs(rtr_link->metric));
usr.sbin/ospf6ctl/ospf6ctl.c
946
nlinks = ntohs(lsa->data.pref_intra.numprefix);
usr.sbin/ospf6ctl/ospf6ctl.c
960
ntohs(prefix->metric));
usr.sbin/ospf6d/database.c
173
if (ntohs(dd_hdr.iface_mtu) > nbr->iface->mtu) {
usr.sbin/ospf6d/database.c
176
nbr->iface->name, ntohs(dd_hdr.iface_mtu),
usr.sbin/ospf6d/hello.c
131
if (ntohs(hello.hello_interval) != iface->hello_interval) {
usr.sbin/ospf6d/hello.c
133
"interface %s", ntohs(hello.hello_interval),
usr.sbin/ospf6d/hello.c
138
if (ntohs(hello.rtr_dead_interval) != iface->dead_interval) {
usr.sbin/ospf6d/lsack.c
144
if ((ntohs(lsa_hdr->age) < 1) || (ntohs(lsa_hdr->age) > MAX_AGE)) {
usr.sbin/ospf6d/lsack.c
151
switch (ntohs(lsa_hdr->type)) {
usr.sbin/ospf6d/lsupdate.c
208
age = ntohs(age);
usr.sbin/ospf6d/lsupdate.c
279
if (len < ntohs(lsa.len)) {
usr.sbin/ospf6d/lsupdate.c
286
buf, ntohs(lsa.len));
usr.sbin/ospf6d/lsupdate.c
287
buf += ntohs(lsa.len);
usr.sbin/ospf6d/lsupdate.c
288
len -= ntohs(lsa.len);
usr.sbin/ospf6d/lsupdate.c
347
ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) {
usr.sbin/ospf6d/lsupdate.c
507
ntohs(le->le_ref->hdr.type),
usr.sbin/ospf6d/lsupdate.c
625
if (ntohs(ref->hdr.age) >= MAX_AGE)
usr.sbin/ospf6d/ospfe.c
636
if (ntohs(age) >= MAX_AGE)
usr.sbin/ospf6d/packet.c
265
if (ntohs(ospf_hdr->len) > len ||
usr.sbin/ospf6d/packet.c
268
ntohs(ospf_hdr->len));
usr.sbin/ospf6d/packet.c
300
return (ntohs(ospf_hdr->len));
usr.sbin/ospf6d/rde.c
1570
lsa_prefix->prefixlen, ntohs(lsa_prefix->metric));
usr.sbin/ospf6d/rde.c
419
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde.c
474
ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde.c
480
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde.c
506
ntohs(db_hdr->age) == MAX_AGE)
usr.sbin/ospf6d/rde.c
516
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
160
a16 = ntohs(a->ls_chksum);
usr.sbin/ospf6d/rde_lsdb.c
161
b16 = ntohs(b->ls_chksum);
usr.sbin/ospf6d/rde_lsdb.c
168
a16 = ntohs(a->age);
usr.sbin/ospf6d/rde_lsdb.c
169
b16 = ntohs(b->age);
usr.sbin/ospf6d/rde_lsdb.c
194
if (ntohs(lsa->hdr.len) != len) {
usr.sbin/ospf6d/rde_lsdb.c
205
if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
usr.sbin/ospf6d/rde_lsdb.c
206
ntohs(lsa->hdr.age) > MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
217
switch (ntohs(lsa->hdr.type)) {
usr.sbin/ospf6d/rde_lsdb.c
282
log_warnx("lsa_check: unknown type %x", ntohs(lsa->hdr.type));
usr.sbin/ospf6d/rde_lsdb.c
351
npref = ntohs(iap->numprefix);
usr.sbin/ospf6d/rde_lsdb.c
440
if ((dummy = malloc(ntohs(lsa->hdr.len))) == NULL)
usr.sbin/ospf6d/rde_lsdb.c
442
memcpy(dummy, lsa, ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
472
if (LSA_IS_SCOPE_AS(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
474
else if (LSA_IS_SCOPE_AREA(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
476
else if (LSA_IS_SCOPE_LLOCAL(ntohs(lsa->hdr.type)))
usr.sbin/ospf6d/rde_lsdb.c
506
if (ntohs(lsa->hdr.type) == LSA_TYPE_LINK)
usr.sbin/ospf6d/rde_lsdb.c
508
if (ntohs(lsa->hdr.type) != LSA_TYPE_EXTERNAL)
usr.sbin/ospf6d/rde_lsdb.c
516
if (nbr->self && ntohs(new->lsa->hdr.age) == DEFAULT_AGE)
usr.sbin/ospf6d/rde_lsdb.c
519
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
564
age = ntohs(v->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
579
if (LSA_IS_SCOPE_AS(ntohs(type)))
usr.sbin/ospf6d/rde_lsdb.c
581
else if (LSA_IS_SCOPE_AREA(ntohs(type)))
usr.sbin/ospf6d/rde_lsdb.c
583
else if (LSA_IS_SCOPE_LLOCAL(ntohs(type)))
usr.sbin/ospf6d/rde_lsdb.c
601
key.type = ntohs(type);
usr.sbin/ospf6d/rde_lsdb.c
670
key.type = ntohs(lsa->hdr.type);
usr.sbin/ospf6d/rde_lsdb.c
707
nlinks += ((ntohs(v->lsa->hdr.len) -
usr.sbin/ospf6d/rde_lsdb.c
714
return ((ntohs(v->lsa->hdr.len) - sizeof(struct lsa_hdr) -
usr.sbin/ospf6d/rde_lsdb.c
734
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
737
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
802
ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
815
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospf6d/rde_lsdb.c
821
if (ntohs(v->lsa->hdr.type) == LSA_TYPE_LINK)
usr.sbin/ospf6d/rde_lsdb.c
823
if (ntohs(v->lsa->hdr.type) != LSA_TYPE_EXTERNAL)
usr.sbin/ospf6d/rde_lsdb.c
828
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
835
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospf6d/rde_lsdb.c
84
v->type = ntohs(lsa->hdr.type);
usr.sbin/ospf6d/rde_lsdb.c
843
if (v->self && ntohs(v->lsa->hdr.age) < MAX_AGE)
usr.sbin/ospf6d/rde_lsdb.c
847
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
859
if (v->self && ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospf6d/rde_lsdb.c
871
len = ntohs(v->lsa->hdr.len);
usr.sbin/ospf6d/rde_lsdb.c
897
lsa, ntohs(lsa->hdr.len));
usr.sbin/ospf6d/rde_lsdb.c
904
len = ntohs(lsa->hdr.len);
usr.sbin/ospf6d/rde_lsdb.c
970
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospf6d/rde_lsdb.c
994
p->metric = ntohs(lp->metric);
usr.sbin/ospf6d/rde_spf.c
1112
frag_nlinks = ((ntohs(v->lsa->hdr.len) -
usr.sbin/ospf6d/rde_spf.c
115
if (ntohs(w->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospf6d/rde_spf.c
134
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospf6d/rde_spf.c
212
if (ntohs(v->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospf6d/rde_spf.c
235
switch (ntohs(iap->ref_type)) {
usr.sbin/ospf6d/rde_spf.c
263
v->ls_id, ntohs(iap->ref_type));
usr.sbin/ospf6d/rde_spf.c
273
for (i = 0; i < ntohs(v->lsa->data.pref_intra.numprefix); i++) {
usr.sbin/ospf6d/rde_spf.c
283
v->type, w->cost + ntohs(prefix->metric), 0,
usr.sbin/ospf6d/rde_spf.c
320
w->cost + (ntohs(v->lsa->data.rtr_sum.metric) &
usr.sbin/ospf6d/rde_spf.c
349
(ntohs(v->lsa->data.rtr_sum.metric) & LSA_METRIC_MASK), 0,
usr.sbin/ospf6d/rde_spf.c
370
if (ntohs(v->lsa->hdr.age) == MAX_AGE ||
usr.sbin/ospf6d/util.c
41
"scope %u", log_sockaddr(sin6), ntohs(tmp16));
usr.sbin/ospf6d/util.c
61
sin6->sin6_scope_id = ntohs(tmp16);
usr.sbin/ospfctl/output.c
457
if (asprintf(&format, "LSA type %x", ntohs(type)) == -1)
usr.sbin/ospfctl/output.c
480
printf("LS age: %d\n", ntohs(lsa->age));
usr.sbin/ospfctl/output.c
514
printf("Checksum: 0x%04x\n", ntohs(lsa->ls_chksum));
usr.sbin/ospfctl/output.c
515
printf("Length: %d\n", ntohs(lsa->len));
usr.sbin/ospfctl/output.c
529
ntohs(lsa->age), ntohl(lsa->seq_num),
usr.sbin/ospfctl/output.c
530
ntohs(lsa->ls_chksum));
usr.sbin/ospfctl/output.c
567
nlinks = (ntohs(lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospfctl/output.c
581
nlinks = ntohs(lsa->data.rtr.nlinks);
usr.sbin/ospfctl/output.c
623
printf(" Metric: %d\n\n", ntohs(rtr_link->metric));
usr.sbin/ospfd/auth.c
104
auth_data += ntohs(ospf_hdr->len);
usr.sbin/ospfd/auth.c
116
MD5Update(&hash, buf, ntohs(ospf_hdr->len));
usr.sbin/ospfd/auth.c
43
if (ntohs(ospf_hdr->auth_type) != (u_int16_t)iface->auth_type) {
usr.sbin/ospfd/auth.c
63
if (in_cksum(ospf_hdr, ntohs(ospf_hdr->len))) {
usr.sbin/ospfd/auth.c
97
if (len - ntohs(ospf_hdr->len) < MD5_DIGEST_LENGTH) {
usr.sbin/ospfd/database.c
179
if (ntohs(dd_hdr.iface_mtu) > nbr->iface->mtu) {
usr.sbin/ospfd/database.c
182
nbr->iface->name, ntohs(dd_hdr.iface_mtu),
usr.sbin/ospfd/hello.c
143
if (ntohs(hello.hello_interval) != iface->hello_interval) {
usr.sbin/ospfd/hello.c
145
"interface %s", ntohs(hello.hello_interval),
usr.sbin/ospfd/in_cksum.c
80
sum = ntohs(sum);
usr.sbin/ospfd/lsack.c
150
if ((ntohs(lsa_hdr->age) < 1) || (ntohs(lsa_hdr->age) > MAX_AGE)) {
usr.sbin/ospfd/lsupdate.c
194
age = ntohs(age);
usr.sbin/ospfd/lsupdate.c
272
if (len < ntohs(lsa.len)) {
usr.sbin/ospfd/lsupdate.c
279
buf, ntohs(lsa.len));
usr.sbin/ospfd/lsupdate.c
280
buf += ntohs(lsa.len);
usr.sbin/ospfd/lsupdate.c
281
len -= ntohs(lsa.len);
usr.sbin/ospfd/lsupdate.c
340
ntohs(lsa_hdr->age) >= ntohs(le->le_ref->hdr.age)) {
usr.sbin/ospfd/lsupdate.c
614
if (ntohs(ref->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/ospfe.c
693
if (ntohs(age) >= MAX_AGE)
usr.sbin/ospfd/packet.c
267
if (ntohs(ip_hdr->ip_len) != len) {
usr.sbin/ospfd/packet.c
269
ntohs(ip_hdr->ip_len));
usr.sbin/ospfd/packet.c
292
if (ntohs(ospf_hdr->len) > len ||
usr.sbin/ospfd/packet.c
295
ntohs(ospf_hdr->len));
usr.sbin/ospfd/packet.c
326
return (ntohs(ospf_hdr->len));
usr.sbin/ospfd/rde.c
432
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
487
ntohs(lsa->hdr.len));
usr.sbin/ospfd/rde.c
493
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
519
ntohs(db_hdr->age) == MAX_AGE)
usr.sbin/ospfd/rde.c
529
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde.c
863
sumctl.ext_lsa_cksum += ntohs(v->lsa->hdr.ls_chksum);
usr.sbin/ospfd/rde.c
901
sumareactl.lsa_cksum += ntohs(v->lsa->hdr.ls_chksum);
usr.sbin/ospfd/rde_lsdb.c
156
a16 = ntohs(a->ls_chksum);
usr.sbin/ospfd/rde_lsdb.c
157
b16 = ntohs(b->ls_chksum);
usr.sbin/ospfd/rde_lsdb.c
164
a16 = ntohs(a->age);
usr.sbin/ospfd/rde_lsdb.c
165
b16 = ntohs(b->age);
usr.sbin/ospfd/rde_lsdb.c
191
if (ntohs(lsa->hdr.len) != len) {
usr.sbin/ospfd/rde_lsdb.c
202
if ((ntohs(lsa->hdr.age) < 1 && !nbr->self) ||
usr.sbin/ospfd/rde_lsdb.c
203
ntohs(lsa->hdr.age) > MAX_AGE) {
usr.sbin/ospfd/rde_lsdb.c
304
nlinks = ntohs(lsa->data.rtr.nlinks);
usr.sbin/ospfd/rde_lsdb.c
356
if ((dummy = malloc(ntohs(new->hdr.len))) == NULL)
usr.sbin/ospfd/rde_lsdb.c
358
memcpy(dummy, new, ntohs(new->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
430
if (nbr->self && ntohs(new->lsa->hdr.age) == DEFAULT_AGE)
usr.sbin/ospfd/rde_lsdb.c
433
tv.tv_sec = MAX_AGE - ntohs(new->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
478
age = ntohs(v->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
559
return (ntohs(v->lsa->data.rtr.nlinks));
usr.sbin/ospfd/rde_lsdb.c
561
return ((ntohs(v->lsa->hdr.len) - sizeof(struct lsa_hdr)
usr.sbin/ospfd/rde_lsdb.c
587
if (ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
589
0, &v->lsa->hdr, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
653
ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
666
if (ntohs(v->lsa->hdr.age) >= MAX_AGE) {
usr.sbin/ospfd/rde_lsdb.c
678
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
685
tv.tv_sec = MAX_AGE - ntohs(v->lsa->hdr.age);
usr.sbin/ospfd/rde_lsdb.c
693
if (v->self && ntohs(v->lsa->hdr.age) < MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
697
v->lsa, ntohs(v->lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
709
if (v->self && ntohs(v->lsa->hdr.age) >= MAX_AGE)
usr.sbin/ospfd/rde_lsdb.c
721
len = ntohs(v->lsa->hdr.len);
usr.sbin/ospfd/rde_lsdb.c
747
lsa, ntohs(lsa->hdr.len));
usr.sbin/ospfd/rde_lsdb.c
754
len = ntohs(lsa->hdr.len);
usr.sbin/ospfd/rde_lsdb.c
867
if (memcmp(&a->data, &b->data, ntohs(a->hdr.len) -
usr.sbin/ospfd/rde_spf.c
133
d = v->cost + ntohs(rtr_link->metric);
usr.sbin/ospfd/rde_spf.c
184
if (ntohs(v->lsa->hdr.age) == MAX_AGE)
usr.sbin/ospfd/rde_spf.c
203
v->cost + ntohs(rtr_link->metric), 0,
usr.sbin/ospfd/rde_spf.c
289
if (ntohs(v->lsa->hdr.age) == MAX_AGE ||
usr.sbin/radiusctl/radiusctl.c
992
if (ntohs(((struct sockaddr_in *)sa)->sin_port) == 0) {
usr.sbin/radiusd/radiusd.c
264
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
267
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
313
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd.c
316
(int)ntohs(l->addr.ipv4.sin_port));
usr.sbin/radiusd/radiusd_eap2mschap.c
326
ntohs(eap->length) > msgsiz) {
usr.sbin/radiusd/radiusd_eap2mschap.c
329
ntohs(eap->length));
usr.sbin/radiusd/radiusd_eap2mschap.c
355
namesiz = ntohs(eap->length) - offsetof(struct eap, value[1]);
usr.sbin/radiusd/radiusd_eap2mschap.c
434
msgsiz, ntohs(eap->length));
usr.sbin/radiusd/radiusd_eap2mschap.c
462
eapsiz = ntohs(chap->eap.length);
usr.sbin/radiusd/radiusd_eap2mschap.c
482
sizeof(buf)), eapsiz, ntohs(resp->eap.length),
usr.sbin/radiusd/radiusd_eap2mschap.c
483
ntohs(resp->chap.length), resp->chap.value[9]);
usr.sbin/radiusd/radiusd_eap2mschap.c
491
namelen = ntohs(resp->chap.length) -
usr.sbin/radiusd/radiusd_eap2mschap.c
739
ntohs(eap.length));
usr.sbin/radiusd/radiusd_ipcp.c
1071
ntohs(eap.length));
usr.sbin/radiusd/radiusd_ipcp.c
2130
if (ntohs(((struct sockaddr_in *)sa)->sin_port) == 0) {
usr.sbin/radiusd/radiusd_ipcp.c
529
if (ntohs(dae.nas_addr.sin4.sin_port) == 0)
usr.sbin/radiusd/radiusd_radius.c
174
if (ntohs(module->server[module->nserver].addr.sin4.sin_port)
usr.sbin/rarpd/rarpd.c
303
if (ntohs (ep->ether_type) != ETHERTYPE_REVARP ||
usr.sbin/rarpd/rarpd.c
304
ntohs (ap->arp_hrd) != ARPHRD_ETHER ||
usr.sbin/rarpd/rarpd.c
305
ntohs (ap->arp_op) != ARPOP_REVREQUEST ||
usr.sbin/rarpd/rarpd.c
306
ntohs (ap->arp_pro) != ETHERTYPE_IP ||
usr.sbin/rbootd/rmp_var.h
158
(i) = (((u_int32_t)ntohs((w).val[_WORD_HIGHPART])) << 16) | ntohs((w).val[_WORD_LOWPART])
usr.sbin/rbootd/rmpproto.c
104
if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) {
usr.sbin/rbootd/rmpproto.c
422
if (ntohs(req->r_rrq.rmp_session) !=
usr.sbin/rbootd/rmpproto.c
423
((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
usr.sbin/rbootd/rmpproto.c
424
ntohs(rpl->r_rrpl.rmp_session))) {
usr.sbin/rbootd/rmpproto.c
440
if (ntohs(req->r_rrq.rmp_size) > RMPREADDATA)
usr.sbin/rbootd/rmpproto.c
459
(int) ntohs(req->r_rrq.rmp_size))) <= 0) {
usr.sbin/rbootd/rmpproto.c
526
if (ntohs(rconn->rmp.r_rrq.rmp_session) !=
usr.sbin/rbootd/rmpproto.c
527
((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
usr.sbin/rbootd/rmpproto.c
528
ntohs(rpl->r_rrpl.rmp_session))) {
usr.sbin/rbootd/utils.c
102
ntohs(rmp->hp_llc.dxsap), ntohs(rmp->hp_llc.sxsap));
usr.sbin/rbootd/utils.c
112
if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) {
usr.sbin/rbootd/utils.c
120
t, ntohs(rmp->r_brq.rmp_session),
usr.sbin/rbootd/utils.c
121
ntohs(rmp->r_brq.rmp_version));
usr.sbin/rbootd/utils.c
131
t, ntohs(rmp->r_brpl.rmp_session),
usr.sbin/rbootd/utils.c
132
ntohs(rmp->r_brpl.rmp_version));
usr.sbin/rbootd/utils.c
139
t, ntohs(rmp->r_rrq.rmp_session));
usr.sbin/rbootd/utils.c
141
ntohs(rmp->r_rrq.rmp_size));
usr.sbin/rbootd/utils.c
147
t, ntohs(rmp->r_rrpl.rmp_session));
usr.sbin/rbootd/utils.c
155
ntohs(rmp->r_done.rmp_session));
usr.sbin/rbootd/utils.c
98
rmp->hp_llc.dsap, rmp->hp_llc.ssap, ntohs(rmp->hp_llc.cntrl));
usr.sbin/relayctl/relayctl.c
462
a, ntohs(con->se_in.port), b, ntohs(con->se_out.port),
usr.sbin/relayd/check_icmp.c
318
icpid = ntohs(icp->icmp_id);
usr.sbin/relayd/check_icmp.c
322
icpid = ntohs(icp6->icmp6_id);
usr.sbin/relayd/parse.y
3340
tb->conf.name, ntohs(tb->conf.port)) >= (int)sizeof(pname)) {
usr.sbin/relayd/parse.y
3435
ra->rl_conf.name, rb->rl_conf.id, ntohs(rc.port)) >=
usr.sbin/relayd/pfe_filter.c
459
ntohs(rdr->table->conf.port);
usr.sbin/relayd/pfe_filter.c
589
ibuf, ntohs(pnl.rsport), obuf, ntohs(pnl.rdport));
usr.sbin/relayd/proxy_protocol.c
85
ntohs(con->se_in.port), ntohs(con->se_relay->rl_conf.port));
usr.sbin/relayd/relay.c
1769
ntohs(con->se_out.port), msg, ptr == NULL ?
usr.sbin/relayd/relay.c
1777
ntohs(con->se_out.port), msg, ptr == NULL ?
usr.sbin/relayd/relay.c
736
obuf, ntohs(con->se_out.port)) == -1) {
usr.sbin/relayd/relay_http.c
1121
RELAYD_SERVERNAME, hbuf, ntohs(rlay->rl_conf.port))) == -1)
usr.sbin/relayd/relay_http.c
1210
snprintf(ibuf, sizeof(ibuf), "%u", ntohs(cre->port));
usr.sbin/relayd/relay_http.c
1227
ntohs(rlay->rl_conf.port));
usr.sbin/relayd/relay_udp.c
391
ntohs(hdr->dns_id),
usr.sbin/relayd/relay_udp.c
394
ntohs(hdr->dns_qdcount),
usr.sbin/relayd/relay_udp.c
395
ntohs(hdr->dns_ancount),
usr.sbin/relayd/relay_udp.c
396
ntohs(hdr->dns_nscount),
usr.sbin/relayd/relay_udp.c
397
ntohs(hdr->dns_arcount));
usr.sbin/relayd/relay_udp.c
413
key = ntohs(hdr->dns_id);
usr.sbin/ripd/auth.c
148
if (ntohs(a->auth_offset) != *len + RIP_HDR_LEN -
usr.sbin/ripd/auth.c
151
"offset %hu, interface %s", ntohs(a->auth_offset),
usr.sbin/ripd/auth.c
157
auth_data += ntohs(a->auth_offset);
usr.sbin/ripd/auth.c
168
MD5Update(&hash, b, ntohs(a->auth_offset) + RIP_HDR_LEN);
usr.sbin/ripd/auth.c
99
if (ntohs(auth_head->auth_type) !=
usr.sbin/ripd/message.c
409
if (ntohs(e->AFI) != AF_INET) {
usr.sbin/ripd/packet.c
153
srcport = ntohs(src.sin_port);
usr.sbin/route6d/route6d.c
1054
if (ntohs(fsock.sin6_port) != RIP6_PORT) {
usr.sbin/route6d/route6d.c
1104
ifcp->ifc_name, inet6_n2p(&nh), ntohs(fsock.sin6_port), nn);
usr.sbin/route6d/route6d.c
1156
ntohs(np->rip6_tag) & 0xffff);
usr.sbin/route6d/route6d.c
2838
ntohs(rrt->rrt_info.rip6_tag) & 0xffff);
usr.sbin/route6d/route6d.c
618
inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port));
usr.sbin/route6d/route6d.c
621
nrt, inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port));
usr.sbin/route6d/route6d.c
639
ntohs(np->rip6_tag) & 0xffff);
usr.sbin/rpki-client/ip.c
57
v = ntohs(v);
usr.sbin/slowcgi/slowcgi.c
1188
ldebug("%srequestId: %d", p, ntohs(h->id));
usr.sbin/slowcgi/slowcgi.c
1189
ldebug("%scontentLength: %d", p, ntohs(h->content_len));
usr.sbin/slowcgi/slowcgi.c
1197
ldebug("%srole %d", p, ntohs(b->role));
usr.sbin/slowcgi/slowcgi.c
836
if (n < sizeof(struct fcgi_record_header) + ntohs(h->content_len)
usr.sbin/slowcgi/slowcgi.c
846
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/slowcgi/slowcgi.c
850
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/slowcgi/slowcgi.c
854
ntohs(h->content_len), c, ntohs(h->id));
usr.sbin/slowcgi/slowcgi.c
861
return (sizeof(struct fcgi_record_header) + ntohs(h->content_len)
usr.sbin/smtpd/config.c
207
sin6->sin6_scope_id = ntohs(
usr.sbin/smtpd/lka_filter.c
1424
src_port = ntohs(((const struct sockaddr_in *)ss_src)->sin_port);
usr.sbin/smtpd/lka_filter.c
1426
src_port = ntohs(((const struct sockaddr_in6 *)ss_src)->sin6_port);
usr.sbin/smtpd/lka_filter.c
1429
dest_port = ntohs(((const struct sockaddr_in *)ss_dest)->sin_port);
usr.sbin/smtpd/lka_filter.c
1431
dest_port = ntohs(((const struct sockaddr_in6 *)ss_dest)->sin6_port);
usr.sbin/smtpd/parse.y
2240
listen_opts.port = ntohs(servent->s_port);
usr.sbin/smtpd/parse.y
2256
listen_opts.port = ntohs(servent->s_port);
usr.sbin/smtpd/parse.y
2272
listen_opts.port = ntohs(servent->s_port);
usr.sbin/smtpd/parse.y
3561
sin6->sin6_scope_id = ntohs(
usr.sbin/smtpd/proxy.c
311
s->header_total = ntohs(h->len);
usr.sbin/smtpd/smtp.c
236
ss_to_text(&l->ss), ntohs(l->port), l->flags);
usr.sbin/smtpd/smtp_session.c
610
listener->hostname, ntohs(listener->port), listener->tag);
usr.sbin/smtpd/unpack_dns.c
249
*u16 = ntohs(*u16);
usr.sbin/smtpd/unpack_dns.c
45
h->flags = ntohs(h->flags);
usr.sbin/smtpd/unpack_dns.c
46
h->qdcount = ntohs(h->qdcount);
usr.sbin/smtpd/unpack_dns.c
47
h->ancount = ntohs(h->ancount);
usr.sbin/smtpd/unpack_dns.c
48
h->nscount = ntohs(h->nscount);
usr.sbin/smtpd/unpack_dns.c
49
h->arcount = ntohs(h->arcount);
usr.sbin/snmpd/parse.y
2082
h->port = ntohs(sin->sin_port);
usr.sbin/snmpd/parse.y
2085
h->port = ntohs(sin6->sin6_port);
usr.sbin/tcpdump/addrtoname.c
647
port = ntohs(port);
usr.sbin/tcpdump/addrtoname.c
700
int j = ntohs(eproto_db[i].p) & (HASHNAMESIZE-1);
usr.sbin/tcpdump/addrtoname.c
705
table->addr = ntohs(eproto_db[i].p);
usr.sbin/tcpdump/in_cksum.c
84
shouldbe += ntohs(computed_sum);
usr.sbin/tcpdump/interface.h
120
#define NTOHS(x) (x) = ntohs(x)
usr.sbin/tcpdump/pf_print_state.c
141
printf("(%u) ", ntohs(rdom));
usr.sbin/tcpdump/pf_print_state.c
160
snprintf(ps, sizeof(ps), "%u", ntohs(port));
usr.sbin/tcpdump/print-atalk.c
194
if (ntohs(ap->htype) == 1 && ntohs(ap->ptype) == ETHERTYPE_ATALK &&
usr.sbin/tcpdump/print-atalk.c
196
switch (ntohs(ap->op)) {
usr.sbin/tcpdump/print-atalk.c
214
length, ntohs(ap->op), ntohs(ap->htype), ntohs(ap->ptype),
usr.sbin/tcpdump/print-bgp.c
114
ntohs((p)->bgpa_len.elen) : (p)->bgpa_len.len)
usr.sbin/tcpdump/print-bgp.c
1189
hlen = ntohs(bgp.bgp_len);
usr.sbin/tcpdump/print-bgp.c
852
printf(" AS #%u,", ntohs(bgpo.bgpo_myas));
usr.sbin/tcpdump/print-bgp.c
853
printf(" Holdtime %u,", ntohs(bgpo.bgpo_holdtime));
usr.sbin/tcpdump/print-bootp.c
390
printf("%u", ntohs(us));
usr.sbin/tcpdump/print-bootp.c
93
printf(" secs:%d", ntohs(bp->bp_secs));
usr.sbin/tcpdump/print-bootp.c
95
printf(" flags:0x%x", ntohs(bp->bp_flags));
usr.sbin/tcpdump/print-ether.c
124
ether_type = ntohs(ep->ether_type);
usr.sbin/tcpdump/print-ether.c
262
vlan = ntohs(*(unsigned short*)p);
usr.sbin/tcpdump/print-ether.c
270
ethertype = ntohs(*(unsigned short*)(p+2));
usr.sbin/tcpdump/print-frag6.c
59
sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) -
usr.sbin/tcpdump/print-frag6.c
61
ntohs(dp->ip6f_offlg & IP6F_OFF_MASK),
usr.sbin/tcpdump/print-frag6.c
65
if (ntohs(dp->ip6f_offlg & IP6F_OFF_MASK) != 0)
usr.sbin/tcpdump/print-gre.c
732
flags = ntohs(vh->flags);
usr.sbin/tcpdump/print-gre.c
835
printf("\n\toption class %u type %u", ntohs(go->class),
usr.sbin/tcpdump/print-gre.c
885
flags = ntohs(gh->flags);
usr.sbin/tcpdump/print-gre.c
919
proto = ntohs(gh->protocol);
usr.sbin/tcpdump/print-gtp.c
1007
len = ntohs(gh->length) - hlen + sizeof(*gh);
usr.sbin/tcpdump/print-gtp.c
1043
len = ntohs(gph->length);
usr.sbin/tcpdump/print-gtp.c
1044
printf(" (len %u, seq %u) ", len, ntohs(gph->seqno));
usr.sbin/tcpdump/print-gtp.c
1255
data, ntohs(dps[0]), ntohs(dps[1]), ntohs(dps[2]),
usr.sbin/tcpdump/print-gtp.c
1256
ntohs(dps[3]));
usr.sbin/tcpdump/print-gtp.c
1299
printf("Trace Reference: %u", ntohs(*dps));
usr.sbin/tcpdump/print-gtp.c
1309
printf("Trace Type: %u", ntohs(*dps));
usr.sbin/tcpdump/print-gtp.c
1360
len = ntohs(*lenp);
usr.sbin/tcpdump/print-gtp.c
1745
printf(" %u", ntohs(*seqno));
usr.sbin/tcpdump/print-gtp.c
1757
printf(" %u", ntohs(*seqno));
usr.sbin/tcpdump/print-gtp.c
1777
cp[0], cp[1], ntohs(*(u_int16_t *)(cp + 2)));
usr.sbin/tcpdump/print-gtp.c
1786
printf(" %u", ntohs(*seqno));
usr.sbin/tcpdump/print-gtp.c
504
len = ntohs(gh->length);
usr.sbin/tcpdump/print-gtp.c
507
ntohs(gh->length), ntohs(gh->seqno), ntohs(gh->flow),
usr.sbin/tcpdump/print-gtp.c
508
ntohs(gh->npduno), betoh64(tid));
usr.sbin/tcpdump/print-gtp.c
550
len = ntohs(gph->length);
usr.sbin/tcpdump/print-gtp.c
551
printf("GTPv0' (len %u, seq %u) ", len, ntohs(gph->seqno));
usr.sbin/tcpdump/print-gtp.c
705
printf("Flow Label Data I: %u", ntohs(*dps));
usr.sbin/tcpdump/print-gtp.c
714
printf("Flow Label Signalling: %u", ntohs(*dps));
usr.sbin/tcpdump/print-gtp.c
724
printf("Flow Label Data II: %u, NSAPI %u", ntohs(*dps), data);
usr.sbin/tcpdump/print-gtp.c
743
printf("Charging ID: %u", ntohs(*dps));
usr.sbin/tcpdump/print-gtp.c
766
len = ntohs(*lenp);
usr.sbin/tcpdump/print-gtp.c
834
cp[0], cp[1], ntohs(*(u_int16_t *)(cp + 2)));
usr.sbin/tcpdump/print-gtp.c
843
printf(" %u", ntohs(*seqno));
usr.sbin/tcpdump/print-gtp.c
908
printf(" (teid %u, len %u)", ntohl(gh->teid), ntohs(gh->length));
usr.sbin/tcpdump/print-gtp.c
917
printf(" [seq %u]", ntohs(ghe->seqno));
usr.sbin/tcpdump/print-gtp.c
948
ntohs(*(u_int16_t *)(p + 1)));
usr.sbin/tcpdump/print-gtp.c
991
len = ntohs(gh->length) - hlen + sizeof(*gh);
usr.sbin/tcpdump/print-icmp.c
197
ntohs(dp->icmp_id),
usr.sbin/tcpdump/print-icmp.c
198
ntohs(dp->icmp_seq));
usr.sbin/tcpdump/print-icmp.c
221
dport = ntohs(ouh->uh_dport);
usr.sbin/tcpdump/print-icmp.c
390
ip_print((u_char *)oip, ntohs(oip->ip_len));
usr.sbin/tcpdump/print-icmp6.c
145
icmp6len = (ntohs(ip->ip6_plen) + sizeof(struct ip6_hdr) -
usr.sbin/tcpdump/print-icmp6.c
187
dport = ntohs(ouh->uh_dport);
usr.sbin/tcpdump/print-icmp6.c
261
ntohs(dp->icmp6_id), ntohs(dp->icmp6_seq));
usr.sbin/tcpdump/print-icmp6.c
322
ntohs(p->nd_ra_router_lifetime));
usr.sbin/tcpdump/print-icmp6.c
736
printf("max resp delay: %d ", ntohs(mp->mld_maxdelay));
usr.sbin/tcpdump/print-icmp6.c
755
ngroups = ntohs(icp->icmp6_data16[1]);
usr.sbin/tcpdump/print-icmp6.c
823
mrc = ntohs(icp->icmp6_data16[0]);
usr.sbin/tcpdump/print-icmp6.c
857
nsrcs = ntohs(*(u_short *)&bp[MLDV2_QUERY_NSRCS]);
usr.sbin/tcpdump/print-ike.c
579
nspis = ntohs(dp->nspis);
usr.sbin/tcpdump/print-ike.c
623
type = ntohs (np->type);
usr.sbin/tcpdump/print-ip.c
212
sum += ntohs(*(u_char *) sp << 8);
usr.sbin/tcpdump/print-ip.c
363
len = ntohs(ip->ip_len);
usr.sbin/tcpdump/print-ip.c
382
off = ntohs(ip->ip_off);
usr.sbin/tcpdump/print-ip.c
571
ntohs(ip->ip_id), len,
usr.sbin/tcpdump/print-ip.c
607
printf("%sid %d", sep, (int)ntohs(ip->ip_id));
usr.sbin/tcpdump/print-ip.c
610
printf("%slen %u", sep, ntohs(ip->ip_len));
usr.sbin/tcpdump/print-ip6.c
105
len = ntohs(ip6->ip6_plen);
usr.sbin/tcpdump/print-ip6opts.c
71
printf("(rtalert: 0x%04x) ", ntohs(*(u_short *)&bp[i + 2]));
usr.sbin/tcpdump/print-ipsec.c
134
if (ntohs(ip->ip_off) & 0x3fff)
usr.sbin/tcpdump/print-ipsec.c
342
ntohs(ipc->ipcomp_cpi), ipc->ipcomp_flags, ipc->ipcomp_nxt_hdr);
usr.sbin/tcpdump/print-l2tp.c
223
printf("%u", ntohs(*dat));
usr.sbin/tcpdump/print-l2tp.c
240
if (ntohs(*ptr) < L2TP_MAX_MSGTYPE_INDEX) {
usr.sbin/tcpdump/print-l2tp.c
241
printf("%s", l2tp_message_type_string[ntohs(*ptr)]);
usr.sbin/tcpdump/print-l2tp.c
252
printf("%d", ntohs(*ptr));
usr.sbin/tcpdump/print-l2tp.c
254
printf("%d/%d", ntohs(*ptr), ntohs(*(ptr+1)));
usr.sbin/tcpdump/print-l2tp.c
256
printf("%u/%u ", ntohs(*ptr), ntohs(*(ptr+1)));
usr.sbin/tcpdump/print-l2tp.c
462
switch (ntohs(*ptr)) {
usr.sbin/tcpdump/print-l2tp.c
503
printf("%d", ntohs(*ptr) & L2TP_PROXY_AUTH_ID_MASK);
usr.sbin/tcpdump/print-l2tp.c
571
if ((len = (ntohs(*ptr) & L2TP_AVP_HDR_LEN_MASK)) <=
usr.sbin/tcpdump/print-l2tp.c
573
if (ntohs(*ptr) & L2TP_AVP_HDR_FLAG_MANDATORY) {
usr.sbin/tcpdump/print-l2tp.c
576
if (ntohs(*ptr) & L2TP_AVP_HDR_FLAG_HIDDEN) {
usr.sbin/tcpdump/print-l2tp.c
586
if (ntohs(*ptr)) { /* IETF == 0 */
usr.sbin/tcpdump/print-l2tp.c
587
printf("vendor=%04x", ntohs(*ptr));
usr.sbin/tcpdump/print-l2tp.c
591
if (ntohs(*ptr) < L2TP_MAX_AVP_INDEX) {
usr.sbin/tcpdump/print-l2tp.c
592
printf("%s", l2tp_avp[ntohs(*ptr)].name);
usr.sbin/tcpdump/print-l2tp.c
595
(l2tp_avp[ntohs(*ptr)].print)
usr.sbin/tcpdump/print-l2tp.c
602
printf(" invalid AVP %u", ntohs(*ptr));
usr.sbin/tcpdump/print-l2tp.c
633
if ((ntohs(val) & L2TP_VERSION_MASK) == L2TP_VERSION_L2TP) {
usr.sbin/tcpdump/print-l2tp.c
635
} else if ((ntohs(val) & L2TP_VERSION_MASK) == L2TP_VERSION_L2F) {
usr.sbin/tcpdump/print-l2tp.c
644
if (ntohs(val) & L2TP_FLAG_TYPE) {
usr.sbin/tcpdump/print-l2tp.c
648
if (ntohs(val) & L2TP_FLAG_LENGTH) {
usr.sbin/tcpdump/print-l2tp.c
652
if (ntohs(val) & L2TP_FLAG_SEQUENCE) {
usr.sbin/tcpdump/print-l2tp.c
656
if (ntohs(val) & L2TP_FLAG_OFFSET) {
usr.sbin/tcpdump/print-l2tp.c
660
if (ntohs(val) & L2TP_FLAG_PRIORITY) {
usr.sbin/tcpdump/print-l2tp.c
678
printf("(%d/", ntohs(val)); /* Tunnel ID */
usr.sbin/tcpdump/print-l2tp.c
683
printf("%d)", ntohs(val)); /* Session ID */
usr.sbin/tcpdump/print-l2tp.c
690
printf("Ns=%d,", ntohs(val));
usr.sbin/tcpdump/print-l2tp.c
695
printf("Nr=%d", ntohs(val));
usr.sbin/tcpdump/print-l2tp.c
703
pad = ntohs(val);
usr.sbin/tcpdump/print-llc.c
254
llc.llcis = ntohs(llc.llcis);
usr.sbin/tcpdump/print-lwres.c
318
l = ntohs(ap->length);
usr.sbin/tcpdump/print-lwres.c
359
v = ntohs(np->version);
usr.sbin/tcpdump/print-lwres.c
367
response = ntohs(np->pktflags) & LWRES_LWPACKETFLAG_RESPONSE;
usr.sbin/tcpdump/print-lwres.c
375
v = ntohs(np->pktflags);
usr.sbin/tcpdump/print-lwres.c
386
printf(" authtype:0x%x", ntohs(np->authtype));
usr.sbin/tcpdump/print-lwres.c
387
printf(" authlen:%u", ntohs(np->authlength));
usr.sbin/tcpdump/print-lwres.c
414
l = ntohs(gabn->namelen);
usr.sbin/tcpdump/print-lwres.c
486
l = ntohs(gabn->realnamelen);
usr.sbin/tcpdump/print-lwres.c
494
printf(" %u/%u", ntohs(gabn->naliases),
usr.sbin/tcpdump/print-lwres.c
495
ntohs(gabn->naddrs));
usr.sbin/tcpdump/print-lwres.c
503
na = ntohs(gabn->naliases);
usr.sbin/tcpdump/print-lwres.c
512
na = ntohs(gabn->naddrs);
usr.sbin/tcpdump/print-lwres.c
526
l = ntohs(gnba->realnamelen);
usr.sbin/tcpdump/print-lwres.c
534
printf(" %u", ntohs(gnba->naliases));
usr.sbin/tcpdump/print-lwres.c
542
na = ntohs(gnba->naliases);
usr.sbin/tcpdump/print-lwres.c
562
ntohs(grbn->rdtype)));
usr.sbin/tcpdump/print-lwres.c
563
if (ntohs(grbn->rdclass) != C_IN)
usr.sbin/tcpdump/print-lwres.c
565
ntohs(grbn->rdclass)));
usr.sbin/tcpdump/print-lwres.c
568
printf(" %u/%u", ntohs(grbn->nrdatas),
usr.sbin/tcpdump/print-lwres.c
569
ntohs(grbn->nsigs));
usr.sbin/tcpdump/print-lwres.c
580
na = ntohs(grbn->nrdatas);
usr.sbin/tcpdump/print-lwres.c
593
na = ntohs(grbn->nsigs);
usr.sbin/tcpdump/print-nsh.c
259
h.class = ntohs(h.class);
usr.sbin/tcpdump/print-ntp.c
204
i = ntohs(sfp->int_part);
usr.sbin/tcpdump/print-ntp.c
205
f = ntohs(sfp->fraction);
usr.sbin/tcpdump/print-null.c
163
ether_type = ntohs(ep->ether_type);
usr.sbin/tcpdump/print-ofp.c
1010
ahtype = ntohs(ah->ah_type);
usr.sbin/tcpdump/print-ofp.c
1012
print_map(ahtype, ofp_action_map), ntohs(ah->ah_len));
usr.sbin/tcpdump/print-ofp.c
1111
actionslen = ntohs(ia->ia_len) - sizeof(*ia);
usr.sbin/tcpdump/print-ofp.c
1128
ahlen = ntohs(ah->ah_len) - AH_UNPADDED;
usr.sbin/tcpdump/print-ofp.c
1178
itype = ntohs(i->i_type);
usr.sbin/tcpdump/print-ofp.c
1180
print_map(itype, ofp_instruction_t_map), ntohs(i->i_len));
usr.sbin/tcpdump/print-ofp.c
125
hetype = ntohs(he->he_type);
usr.sbin/tcpdump/print-ofp.c
126
helen = ntohs(he->he_length);
usr.sbin/tcpdump/print-ofp.c
187
print_map(ntohs(err->err_type), ofp_errtype_map),
usr.sbin/tcpdump/print-ofp.c
188
ntohs(err->err_code));
usr.sbin/tcpdump/print-ofp.c
229
ntohs(cfg->cfg_flags),
usr.sbin/tcpdump/print-ofp.c
230
print_map(ntohs(cfg->cfg_miss_send_len),
usr.sbin/tcpdump/print-ofp.c
278
omtype = ntohs(pin->pin_match.om_type);
usr.sbin/tcpdump/print-ofp.c
279
omlen = ntohs(pin->pin_match.om_length);
usr.sbin/tcpdump/print-ofp.c
283
ntohs(pin->pin_total_len),
usr.sbin/tcpdump/print-ofp.c
342
omtype = ntohs(fr->fr_match.om_type);
usr.sbin/tcpdump/print-ofp.c
343
omlen = ntohs(fr->fr_match.om_length);
usr.sbin/tcpdump/print-ofp.c
347
be64toh(fr->fr_cookie), ntohs(fr->fr_priority),
usr.sbin/tcpdump/print-ofp.c
351
ntohs(fr->fr_idle_timeout), ntohs(fr->fr_hard_timeout),
usr.sbin/tcpdump/print-ofp.c
384
actionslen = ntohs(pout->pout_actions_len);
usr.sbin/tcpdump/print-ofp.c
411
ahlen = ntohs(ah->ah_len) - AH_UNPADDED;
usr.sbin/tcpdump/print-ofp.c
454
omtype = ntohs(fm->fm_match.om_type);
usr.sbin/tcpdump/print-ofp.c
455
omlen = ntohs(fm->fm_match.om_length);
usr.sbin/tcpdump/print-ofp.c
462
ntohs(fm->fm_idle_timeout), ntohs(fm->fm_hard_timeout),
usr.sbin/tcpdump/print-ofp.c
467
ntohs(fm->fm_flags),
usr.sbin/tcpdump/print-ofp.c
509
ilen = ntohs(i->i_len) - sizeof(*i);
usr.sbin/tcpdump/print-ofp.c
573
ohlen = ntohs(oh->oh_length);
usr.sbin/tcpdump/print-ofp.c
577
oh->oh_type, ntohs(oh->oh_length), ntohl(oh->oh_xid));
usr.sbin/tcpdump/print-ofp.c
634
printf("%#02x", ntohs(*b));
usr.sbin/tcpdump/print-ofp.c
636
printf("%u", ntohs(*b));
usr.sbin/tcpdump/print-ofp.c
658
printf("%#04x", ntohs(*h));
usr.sbin/tcpdump/print-ofp.c
660
printf("%u", ntohs(*h));
usr.sbin/tcpdump/print-ofp.c
768
class = ntohs(oxm->oxm_class);
usr.sbin/tcpdump/print-ofp.c
826
if (ntohs(*vlan) & OFP_XM_VID_PRESENT)
usr.sbin/tcpdump/print-ofp.c
828
ntohs(*vlan) & (~OFP_XM_VID_PRESENT));
usr.sbin/tcpdump/print-ofp.c
898
print_map(ntohs(ao->ao_max_len), ofp_controller_maxlen_map));
usr.sbin/tcpdump/print-ofp.c
969
printf(" ethertype %#04x", ntohs(ap->ap_ethertype));
usr.sbin/tcpdump/print-ofp.c
983
printf(" ethertype %#04x", ntohs(apm->apm_ethertype));
usr.sbin/tcpdump/print-ofp.c
998
omlen = ntohs(asf->asf_len) - AH_UNPADDED;
usr.sbin/tcpdump/print-ospf.c
172
ospf_print_seqage(ntohl(lshp->ls_seq), ntohs(lshp->ls_age));
usr.sbin/tcpdump/print-ospf.c
200
ls_end = (u_char *)lsap + ntohs(lsap->ls_hdr.ls_length);
usr.sbin/tcpdump/print-ospf.c
209
j = ntohs(lsap->lsa_un.un_rla.rla_count);
usr.sbin/tcpdump/print-ospf.c
245
printf(" tos 0 metric %d", ntohs(rlp->link_tos0metric));
usr.sbin/tcpdump/print-ospf.c
252
ntohs(tosp->tos_metric));
usr.sbin/tcpdump/print-ospf.c
384
ntohs(op->ospf_hello.hello_helloint),
usr.sbin/tcpdump/print-ospf.c
425
printf(" mtu %u S %X", ntohs(op->ospf_db.db_mtu),
usr.sbin/tcpdump/print-ospf.c
466
ntohs(lsap->ls_hdr.ls_length));
usr.sbin/tcpdump/print-ospf.c
510
if (ntohs(op->ospf_authtype) == OSPF_AUTH_MD5) {
usr.sbin/tcpdump/print-ospf.c
524
if (length < ntohs(op->ospf_len)) {
usr.sbin/tcpdump/print-ospf.c
525
printf(" [len %d]", ntohs(op->ospf_len));
usr.sbin/tcpdump/print-ospf.c
527
} else if (length > ntohs(op->ospf_len)) {
usr.sbin/tcpdump/print-ospf.c
528
printf(" %d[%d]:", ntohs(op->ospf_len), length);
usr.sbin/tcpdump/print-ospf.c
529
length = ntohs(op->ospf_len);
usr.sbin/tcpdump/print-ospf.c
546
switch (ntohs(op->ospf_authtype)) {
usr.sbin/tcpdump/print-ospf.c
567
ntohs(auth.auth_md5_offset),
usr.sbin/tcpdump/print-ospf.c
574
printf(" ??authtype-%d??", ntohs(op->ospf_authtype));
usr.sbin/tcpdump/print-ospf6.c
208
ospf6_print_seqage(ntohl(lshp->ls_seq), ntohs(lshp->ls_age));
usr.sbin/tcpdump/print-ospf6.c
209
ospf6_print_ls_type(ntohs(lshp->ls_type), &lshp->ls_stateid,
usr.sbin/tcpdump/print-ospf6.c
268
ls_end = (u_char *)lsap + ntohs(lsap->ls_hdr.ls_length);
usr.sbin/tcpdump/print-ospf6.c
269
switch (ntohs(lsap->ls_hdr.ls_type)) {
usr.sbin/tcpdump/print-ospf6.c
309
printf(" metric %d", ntohs(rlp->link_metric));
usr.sbin/tcpdump/print-ospf6.c
436
ntohs(lsap->lsa_un.un_intra_ap.intra_ap_lstype),
usr.sbin/tcpdump/print-ospf6.c
442
ntohs(lsap->lsa_un.un_intra_ap.intra_ap_nprefix));
usr.sbin/tcpdump/print-ospf6.c
446
j < ntohs(lsap->lsa_un.un_intra_ap.intra_ap_nprefix);
usr.sbin/tcpdump/print-ospf6.c
457
ntohs(lsap->ls_hdr.ls_type));
usr.sbin/tcpdump/print-ospf6.c
495
ntohs(op->ospf6_hello.hello_helloint),
usr.sbin/tcpdump/print-ospf6.c
496
ntohs(op->ospf6_hello.hello_deadint));
usr.sbin/tcpdump/print-ospf6.c
536
printf(" mtu %u S %X", ntohs(op->ospf6_db.db_mtu),
usr.sbin/tcpdump/print-ospf6.c
557
ospf6_print_ls_type(ntohs(lsrp->ls_type),
usr.sbin/tcpdump/print-ospf6.c
577
ntohs(lsap->ls_hdr.ls_length));
usr.sbin/tcpdump/print-ospf6.c
622
if (length != ntohs(op->ospf6_len)) {
usr.sbin/tcpdump/print-ospf6.c
623
printf(" [len %d]", ntohs(op->ospf6_len));
usr.sbin/tcpdump/print-pflog.c
157
printf("src %s:%u", buf, ntohs(hdr->sport));
usr.sbin/tcpdump/print-pflog.c
163
printf("dst %s:%u", buf, ntohs(hdr->dport));
usr.sbin/tcpdump/print-pfsync.c
145
plen = ntohs(hdr->len);
usr.sbin/tcpdump/print-pfsync.c
175
count = ntohs(subh->count);
usr.sbin/tcpdump/print-radius.c
253
rhp->code, rhp->id, ntohs(rhp->len));
usr.sbin/tcpdump/print-radius.c
257
rhp->id, ntohs(rhp->len));
usr.sbin/tcpdump/print-radius.c
259
if(ntohs(rhp->len) > len) {
usr.sbin/tcpdump/print-ripng.c
49
l += printf(" [%d]", ntohs(ni->rip6_tag));
usr.sbin/tcpdump/print-tcp.c
227
sport = ntohs(tp->th_sport);
usr.sbin/tcpdump/print-tcp.c
228
dport = ntohs(tp->th_dport);
usr.sbin/tcpdump/print-tcp.c
260
win = ntohs(tp->th_win);
usr.sbin/tcpdump/print-tcp.c
261
urp = ntohs(tp->th_urp);
usr.sbin/tcpdump/print-tftp.c
114
printf(" block %d", ntohs(tp->th_block));
usr.sbin/tcpdump/print-tftp.c
121
ntohs(tp->th_code)));
usr.sbin/tcpdump/print-tftp.c
84
opcode = ntohs(tp->th_opcode);
usr.sbin/tcpdump/print-udp.c
119
(u_int32_t)(ntohs(up->uh_ulen) - sizeof(*up)),
usr.sbin/tcpdump/print-udp.c
126
(u_int32_t)(ntohs(up->uh_ulen) - sizeof(*up) - 8),
usr.sbin/tcpdump/print-udp.c
145
u_int dlen = ntohs(up->uh_ulen) - sizeof(*up) - 8;
usr.sbin/tcpdump/print-udp.c
217
len = (ntohs(rh->rh_len) + 1) * 4;
usr.sbin/tcpdump/print-udp.c
218
flags = ntohs(rh->rh_flags);
usr.sbin/tcpdump/print-udp.c
383
sport = ntohs(up->uh_sport);
usr.sbin/tcpdump/print-udp.c
384
dport = ntohs(up->uh_dport);
usr.sbin/tcpdump/print-udp.c
400
ulen = ntohs(up->uh_ulen);
usr.sbin/tcpdump/print-wb.c
194
nid = ntohs(id->pi_ps.nid);
usr.sbin/tcpdump/print-wb.c
50
DOP_ROUNDUP(ntohs((d)->dh_len) + sizeof(*(d)))))
usr.sbin/tftp-proxy/tftp-proxy.c
730
switch (ntohs(tp->th_opcode)) {
usr.sbin/tftp-proxy/tftp-proxy.c
751
ntohs(((struct sockaddr_in *)&r->addrs.src)->sin_port),
usr.sbin/tftp-proxy/tftp-proxy.c
753
ntohs(((struct sockaddr_in *)&r->addrs.dst)->sin_port),
usr.sbin/tftp-proxy/tftp-proxy.c
754
opcode(ntohs(tp->th_opcode)), tp->th_stuff);
usr.sbin/tftp-proxy/tftp-proxy.c
861
ntohs(((struct sockaddr_in *)&r->addrs.src)
usr.sbin/tftp-proxy/tftp-proxy.c
869
ntohs(((struct sockaddr_in *)&saddr)->sin_port),
usr.sbin/tftp-proxy/tftp-proxy.c
871
ntohs(((struct sockaddr_in *)&r->addrs.src)->
usr.sbin/tftp-proxy/tftp-proxy.c
878
ntohs(((struct sockaddr_in *)&r->addrs.src)->sin_port),
usr.sbin/tftpd/tftpd.c
1224
ap->th_opcode = ntohs((u_short)ap->th_opcode);
usr.sbin/tftpd/tftpd.c
1225
ap->th_block = ntohs((u_short)ap->th_block);
usr.sbin/tftpd/tftpd.c
1354
dp->th_opcode = ntohs((u_short)dp->th_opcode);
usr.sbin/tftpd/tftpd.c
1355
dp->th_block = ntohs((u_short)dp->th_block);
usr.sbin/tftpd/tftpd.c
1435
dp->th_opcode = ntohs((u_short)dp->th_opcode);
usr.sbin/tftpd/tftpd.c
1436
dp->th_block = ntohs((u_short)dp->th_block);
usr.sbin/tftpd/tftpd.c
1611
ap->th_opcode = ntohs((u_short)ap->th_opcode);
usr.sbin/tftpd/tftpd.c
1612
ap->th_block = ntohs((u_short)ap->th_block);
usr.sbin/tftpd/tftpd.c
769
client->opcode = ntohs(tp->th_opcode);
usr.sbin/traceroute/traceroute.c
845
srcport = ntohs(from6.sin6_port);
usr.sbin/traceroute/worker.c
180
olen = ntohs(objhdr.ieo_length);
usr.sbin/traceroute/worker.c
530
*seq = ntohs(icp->icmp_seq);
usr.sbin/traceroute/worker.c
536
*seq = ntohs(icmpp->icmp_seq);
usr.sbin/traceroute/worker.c
545
*seq = ntohs(up->uh_dport) - conf->port;
usr.sbin/traceroute/worker.c
632
*seq = ntohs(((struct icmp6_hdr *)up)->icmp6_seq);
usr.sbin/traceroute/worker.c
636
*seq = ntohs(up->uh_dport) - conf->port;
usr.sbin/traceroute/worker.c
641
*seq = ntohs(icp->icmp6_seq);
usr.sbin/trpt/trpt.c
328
inet_ntoa(ti->ti_src), ntohs(ti->ti_sport));
usr.sbin/trpt/trpt.c
330
inet_ntoa(ti->ti_dst), ntohs(ti->ti_dport));
usr.sbin/trpt/trpt.c
334
hbuf, sizeof(hbuf)), ntohs(ti->ti_sport));
usr.sbin/trpt/trpt.c
337
hbuf, sizeof(hbuf)), ntohs(ti->ti_dport));
usr.sbin/unbound/daemon/acl_list.c
805
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
usr.sbin/unbound/daemon/cachedump.c
293
tp = sldns_wire2str_type(ntohs(k->rk.type));
usr.sbin/unbound/daemon/cachedump.c
294
cl = sldns_wire2str_class(ntohs(k->rk.rrset_class));
usr.sbin/unbound/daemon/remote.c
3115
port = (int)ntohs(((struct sockaddr_in*)&k->addr)->sin_port);
usr.sbin/unbound/dnstap/dnstap.c
373
*qport = ntohs(q->sin6_port);
usr.sbin/unbound/dnstap/dnstap.c
388
*qport = ntohs(q->sin_port);
usr.sbin/unbound/dnstap/dnstap.c
405
*rport = ntohs(r->sin6_port);
usr.sbin/unbound/dnstap/dnstap.c
416
*rport = ntohs(r->sin_port);
usr.sbin/unbound/dnstap/dnstap.c
599
qflags = ntohs(qflags);
usr.sbin/unbound/edns-subnet/subnetmod.c
827
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/ipsecmod/ipsecmod.c
301
qtype = ntohs(rrset_key->rk.type);
usr.sbin/unbound/ipset/ipset.c
304
if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_A &&
usr.sbin/unbound/ipset/ipset.c
308
} else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_AAAA &&
usr.sbin/unbound/iterator/iter_delegpt.c
405
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
usr.sbin/unbound/iterator/iter_delegpt.c
450
if(ntohs(s->rk.type) == LDNS_RR_TYPE_A) {
usr.sbin/unbound/iterator/iter_delegpt.c
453
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_AAAA) {
usr.sbin/unbound/iterator/iter_delegpt.c
536
if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_NS)
usr.sbin/unbound/iterator/iter_delegpt.c
538
else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_A)
usr.sbin/unbound/iterator/iter_delegpt.c
540
else if(ntohs(rrset->rk.type) == LDNS_RR_TYPE_AAAA)
usr.sbin/unbound/iterator/iter_priv.c
218
ntohs(rrset->rrset_class))) {
usr.sbin/unbound/iterator/iter_resptype.c
132
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/iterator/iter_resptype.c
169
ntohs(s->rk.type) == LDNS_RR_TYPE_NS &&
usr.sbin/unbound/iterator/iter_resptype.c
170
ntohs(s->rk.rrset_class) == request->qclass &&
usr.sbin/unbound/iterator/iter_resptype.c
183
if(ntohs(s->rk.type) == request->qtype &&
usr.sbin/unbound/iterator/iter_resptype.c
184
ntohs(s->rk.rrset_class) == request->qclass &&
usr.sbin/unbound/iterator/iter_resptype.c
197
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/iterator/iter_resptype.c
220
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA &&
usr.sbin/unbound/iterator/iter_resptype.c
239
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS) {
usr.sbin/unbound/iterator/iter_resptype.c
80
if(ntohs(s->rk.type) == request->qtype &&
usr.sbin/unbound/iterator/iter_resptype.c
81
ntohs(s->rk.rrset_class) == request->qclass &&
usr.sbin/unbound/iterator/iter_resptype.c
88
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/iterator/iter_scrub.c
397
rrset->type, ntohs(rrset->rrset_class));
usr.sbin/unbound/iterator/iter_scrub.c
71
(*rrset)->type, ntohs((*rrset)->rrset_class));
usr.sbin/unbound/iterator/iter_utils.c
1055
if(ntohs(rrx->rk.type) > ntohs(rry->rk.type))
usr.sbin/unbound/iterator/iter_utils.c
1060
if(ntohs(rrx->rk.rrset_class) > ntohs(rry->rk.rrset_class))
usr.sbin/unbound/iterator/iter_utils.c
1146
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS) {
usr.sbin/unbound/iterator/iter_utils.c
1366
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DS &&
usr.sbin/unbound/iterator/iter_utils.c
1370
s->rk.dname, ntohs(s->rk.type),
usr.sbin/unbound/iterator/iter_utils.c
1371
ntohs(s->rk.rrset_class));
usr.sbin/unbound/iterator/iter_utils.c
1452
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME ||
usr.sbin/unbound/iterator/iter_utils.c
1453
ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) {
usr.sbin/unbound/iterator/iter_utils.c
1464
if(ntohs(s->rk.type) == LDNS_RR_TYPE_DS)
usr.sbin/unbound/iterator/iter_utils.c
1470
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA) {
usr.sbin/unbound/iterator/iter_utils.c
1476
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC ||
usr.sbin/unbound/iterator/iter_utils.c
1477
ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/iterator/iter_utils.c
1625
if(ntohs(s->rk.type) == LDNS_RR_TYPE_SOA) {
usr.sbin/unbound/iterator/iter_utils.c
1636
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC ||
usr.sbin/unbound/iterator/iter_utils.c
1637
ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/iterator/iter_utils.c
1645
(int)data->ttl, ((ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC)?"NSEC":"NSEC3"), (int)soa_ttl);
usr.sbin/unbound/iterator/iter_utils.c
1647
s->rk.dname, ntohs(s->rk.type),
usr.sbin/unbound/iterator/iter_utils.c
1648
ntohs(s->rk.rrset_class));
usr.sbin/unbound/iterator/iter_utils.c
979
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NS &&
usr.sbin/unbound/iterator/iter_utils.c
980
ntohs(s->rk.rrset_class) == dclass) {
usr.sbin/unbound/iterator/iterator.c
1172
if( !(ntohs(s->rk.type)==LDNS_RR_TYPE_A ||
usr.sbin/unbound/iterator/iterator.c
1173
ntohs(s->rk.type)==LDNS_RR_TYPE_AAAA)) {
usr.sbin/unbound/iterator/iterator.c
1177
if(qstate->qinfo.qtype == ntohs(s->rk.type) &&
usr.sbin/unbound/iterator/iterator.c
1178
qstate->qinfo.qclass == ntohs(s->rk.rrset_class) &&
usr.sbin/unbound/iterator/iterator.c
1187
s->rk.dname, ntohs(s->rk.type),
usr.sbin/unbound/iterator/iterator.c
1188
ntohs(s->rk.rrset_class));
usr.sbin/unbound/iterator/iterator.c
1190
ntohs(s->rk.type), ntohs(s->rk.rrset_class),
usr.sbin/unbound/iterator/iterator.c
3121
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
usr.sbin/unbound/iterator/iterator.c
3245
&& ntohs(iq->response->rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_DNAME) {
usr.sbin/unbound/iterator/iterator.c
547
if(ntohs(r->rk.type) == LDNS_RR_TYPE_DNAME &&
usr.sbin/unbound/iterator/iterator.c
555
if(ntohs(r->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/iterator/iterator.c
571
if(ntohs(r->rk.type) == LDNS_RR_TYPE_NSEC ||
usr.sbin/unbound/iterator/iterator.c
572
ntohs(r->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/respip/respip.c
1046
redirect_rrset->rk.type == ntohs(LDNS_RR_TYPE_CNAME) &&
usr.sbin/unbound/respip/respip.c
1326
ntohs(((struct sockaddr_in*)addr)->sin_port) :
usr.sbin/unbound/respip/respip.c
1327
ntohs(((struct sockaddr_in6*)addr)->sin6_port));
usr.sbin/unbound/respip/respip.c
625
uint16_t rtype = ntohs(rep->rrsets[i]->rk.type);
usr.sbin/unbound/respip/respip.c
696
dataqinfo.qtype = ntohs(rep->rrsets[rrset_id]->rk.type);
usr.sbin/unbound/respip/respip.c
697
dataqinfo.qclass = ntohs(rep->rrsets[rrset_id]->rk.rrset_class);
usr.sbin/unbound/respip/respip.c
984
if(!rdata2sockaddr(rep->rrsets[rrset_id]->entry.data, ntohs(rep->rrsets[rrset_id]->rk.type), rr_id, &ss, &ss_len))
usr.sbin/unbound/services/authzone.c
214
if(ntohs(k->rk.type) == type && k->rk.dname_len == nmlen &&
usr.sbin/unbound/services/authzone.c
215
ntohs(k->rk.rrset_class) == dclass &&
usr.sbin/unbound/services/authzone.c
3688
port = ntohs((uint16_t)sa->sin6_port);
usr.sbin/unbound/services/authzone.c
3691
port = ntohs((uint16_t)sa->sin_port);
usr.sbin/unbound/services/authzone.c
6394
&& (int)ntohs(((struct sockaddr_in *)&addr)->sin_port)
usr.sbin/unbound/services/authzone.c
6399
&& (int)ntohs(((struct sockaddr_in6 *)&addr)->sin6_port)
usr.sbin/unbound/services/cache/dns.c
1033
ntohs(data->rrsets[0]->rk.type) != LDNS_RR_TYPE_CNAME)
usr.sbin/unbound/services/cache/dns.c
1149
((ntohs(ref.key->rk.type)==LDNS_RR_TYPE_NS
usr.sbin/unbound/services/cache/dns.c
90
env->alloc, ((ntohs(rep->ref[i].key->rk.type)==
usr.sbin/unbound/services/cache/rrset.c
198
uint16_t rrset_type = ntohs(k->rk.type);
usr.sbin/unbound/services/cache/rrset.c
399
if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_NS ||
usr.sbin/unbound/services/listen_dnsport.c
163
ntohs(((struct sockaddr_in*)addr->ai_addr)->sin_port),
usr.sbin/unbound/services/listen_dnsport.c
4116
stream->inlen = ntohs(tcplen);
usr.sbin/unbound/services/localzone.c
1779
uint16_t port = ntohs(((struct sockaddr_in*)addr)->sin_port);
usr.sbin/unbound/services/localzone.c
2162
while(p && ntohs(p->rrset->rk.type) != dtype) {
usr.sbin/unbound/services/localzone.c
68
ntohs(p->rrset->rk.type),
usr.sbin/unbound/services/localzone.c
69
ntohs(p->rrset->rk.rrset_class));
usr.sbin/unbound/services/outside_network.c
379
port = ntohs(((struct sockaddr_in*)&reuse->addr)->sin_port);
usr.sbin/unbound/services/rpz.c
1267
if(ntohs(packed_rrset->type) == LDNS_RR_TYPE_CNAME && alias_ok)
usr.sbin/unbound/services/rpz.c
1298
while(p && ntohs(p->rrset->rk.type) != rr_type) {
usr.sbin/unbound/services/rpz.c
1339
if(ntohs(raddr->data->rk.type) != rr_type) {
usr.sbin/unbound/services/rpz.c
1437
while(p && ntohs(p->rrset->rk.type) != dtype) {
usr.sbin/unbound/services/rpz.c
1649
port = ntohs(((struct sockaddr_in*)&repinfo->client_addr)->sin_port);
usr.sbin/unbound/services/rpz.c
1654
port = ntohs(((struct sockaddr_in*)&ms->mesh_info->reply_list->query_reply.client_addr)->sin_port);
usr.sbin/unbound/sldns/keyraw.c
121
ac16 = ntohs(ac16);
usr.sbin/unbound/sldns/keyraw.c
391
exp = ntohs(int16);
usr.sbin/unbound/sldns/keyraw.c
74
exp = ntohs(int16);
usr.sbin/unbound/sldns/sbuffer.h
38
return ntohs(*(const uint16_t *) src);
usr.sbin/unbound/sldns/str2wire.c
2470
if(serv) serv_port=(int)ntohs((uint16_t)serv->s_port);
usr.sbin/unbound/testcode/delayer.c
857
port = (int)ntohs(((struct sockaddr_in*)&p->addr)->sin_port);
usr.sbin/unbound/testcode/doqclient.c
509
verbose(1, "answer length %d", (int)ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
510
str->answer = sldns_buffer_new(ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
513
sldns_buffer_set_limit(str->answer, ntohs(str->answer_len));
usr.sbin/unbound/testcode/doqclient.c
688
if(got_data && str->nread >= (size_t)(ntohs(str->answer_len))+2) {
usr.sbin/unbound/testcode/streamtcp.c
321
len = ntohs(len);
usr.sbin/unbound/testcode/unitmain.c
284
unit_assert(ntohs(((struct sockaddr_in*)&a)->sin_port)==53);
usr.sbin/unbound/testcode/unitmain.c
291
unit_assert(ntohs(((struct sockaddr_in6*)&a)->sin6_port)==53);
usr.sbin/unbound/testcode/unitmain.c
856
unit_assert(ntohs(rrs->rk.type) == type);
usr.sbin/unbound/testcode/unitmsgparse.c
217
flags = ntohs(flags);
usr.sbin/unbound/testcode/unitmsgparse.c
281
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_RRSIG)
usr.sbin/unbound/testcode/unitmsgparse.c
299
if(ntohs(s->rk.type) == LDNS_RR_TYPE_RRSIG) {
usr.sbin/unbound/testcode/unitmsgparse.c
331
flags = ntohs(flags);
usr.sbin/unbound/testcode/unitverify.c
124
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DNSKEY) {
usr.sbin/unbound/testcode/unitverify.c
193
rrset->rk.dname, ntohs(rrset->rk.type),
usr.sbin/unbound/testcode/unitverify.c
194
ntohs(rrset->rk.rrset_class));
usr.sbin/unbound/testcode/unitverify.c
246
if(ntohs(rep->rrsets[i]->rk.type) == type)
usr.sbin/unbound/testcode/unitverify.c
327
dnskey->rk.dname, ntohs(dnskey->rk.type),
usr.sbin/unbound/testcode/unitverify.c
328
ntohs(dnskey->rk.rrset_class));
usr.sbin/unbound/util/data/msgencode.c
370
uint16_t t = ntohs(key->rk.type);
usr.sbin/unbound/util/data/msgencode.c
475
if(!rrset_belongs_in_reply(s, ntohs(key->rk.type), qtype, dnssec))
usr.sbin/unbound/util/data/msgencode.c
642
if(ntohs(rep->rrsets[i]->rk.type) == qtype) {
usr.sbin/unbound/util/data/msgencode.c
651
if(ntohs(rep->rrsets[i]->rk.type) ==
usr.sbin/unbound/util/data/msgencode.c
653
ntohs(rep->rrsets[i]->rk.type) ==
usr.sbin/unbound/util/data/msgencode.c
676
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
usr.sbin/unbound/util/data/msgencode.c
678
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
usr.sbin/unbound/util/data/msgencode.c
724
rr_offset = RRSET_ROUNDROBIN?ntohs(id)+(timenow?timenow:time(NULL)):0;
usr.sbin/unbound/util/data/msgparse.c
1208
edns->udp_size = ntohs(found->rrset_class);
usr.sbin/unbound/util/data/msgparse.c
1351
rrset->type, ntohs(rrset->rrset_class));
usr.sbin/unbound/util/data/msgparse.c
731
siglen = ntohs(siglen);
usr.sbin/unbound/util/data/msgparse.c
873
(int)ntohs(dclass))?sldns_lookup_by_id(
usr.sbin/unbound/util/data/msgparse.c
874
sldns_rr_classes, (int)ntohs(dclass))->name:
usr.sbin/unbound/util/data/msgparse.c
875
"??", (int)ntohs(dclass));
usr.sbin/unbound/util/data/msgreply.c
1059
uint16_t t = ntohs(rep->rrsets[i]->rk.type);
usr.sbin/unbound/util/data/msgreply.c
849
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/util/data/msgreply.c
850
ntohs(s->rk.rrset_class) == qinfo->qclass &&
usr.sbin/unbound/util/data/msgreply.c
870
if(ntohs(s->rk.type) == qinfo->qtype &&
usr.sbin/unbound/util/data/msgreply.c
871
ntohs(s->rk.rrset_class) == qinfo->qclass &&
usr.sbin/unbound/util/data/msgreply.c
877
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/util/data/msgreply.c
878
ntohs(s->rk.rrset_class) == qinfo->qclass &&
usr.sbin/unbound/util/data/msgreply.c
893
if(ntohs(s->rk.type) == type &&
usr.sbin/unbound/util/data/msgreply.c
894
ntohs(s->rk.rrset_class) == dclass &&
usr.sbin/unbound/util/data/msgreply.c
909
if(ntohs(s->rk.type) == type &&
usr.sbin/unbound/util/data/msgreply.c
910
ntohs(s->rk.rrset_class) == dclass &&
usr.sbin/unbound/util/data/msgreply.c
925
if(ntohs(s->rk.type) == type &&
usr.sbin/unbound/util/data/msgreply.c
926
ntohs(s->rk.rrset_class) == dclass &&
usr.sbin/unbound/util/data/msgreply.c
990
port = ntohs(d->sin6_port);
usr.sbin/unbound/util/data/msgreply.c
997
port = ntohs(d->sin_port);
usr.sbin/unbound/util/data/packed_rrset.c
166
uint16_t t = ntohs(key->type);
usr.sbin/unbound/util/data/packed_rrset.c
201
if(ntohs(rrset->rk.type) != LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/util/data/packed_rrset.c
202
ntohs(rrset->rk.type) != LDNS_RR_TYPE_DNAME)
usr.sbin/unbound/util/data/packed_rrset.c
269
ntohs(rrset->rk.type), ntohs(rrset->rk.rrset_class));
usr.sbin/unbound/util/module.c
225
sldns_wire2str_type_buf(ntohs(rr->rk.type), t, sizeof(t));
usr.sbin/unbound/util/module.c
226
sldns_wire2str_class_buf(ntohs(rr->rk.rrset_class), c, sizeof(c));
usr.sbin/unbound/util/net_help.c
234
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
usr.sbin/unbound/util/net_help.c
638
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
usr.sbin/unbound/util/net_help.c
660
port = ntohs(((struct sockaddr_in*)addr)->sin_port);
usr.sbin/unbound/util/netevent.c
1311
snprintf(port, portlen, "%u", (unsigned)ntohs(sa->sin_port));
usr.sbin/unbound/util/netevent.c
1321
snprintf(port, portlen, "%u", (unsigned)ntohs(sa6->sin6_port));
usr.sbin/unbound/util/netevent.c
1438
return ntohs(sa->sin_port);
usr.sbin/unbound/util/netevent.c
1441
return ntohs(sa6->sin6_port);
usr.sbin/unbound/util/netevent.c
3668
want_read_size = ntohs(header->len);
usr.sbin/unbound/util/netevent.c
4069
want_read_size = ntohs(header->len);
usr.sbin/unbound/util/netevent.c
935
size = PP2_HEADER_SIZE + ntohs(header->len);
usr.sbin/unbound/util/proxy_protocol.c
179
size = PP2_HEADER_SIZE + ntohs(header->len);
usr.sbin/unbound/validator/autotrust.c
1541
log_assert(ntohs(dnskey_rrset->rk.type) == LDNS_RR_TYPE_DNSKEY);
usr.sbin/unbound/validator/autotrust.c
1544
if(!rr_is_dnskey_sep(ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
1546
!rr_is_dnskey_revoked(ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
1549
if(!find_key(tp, ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
1633
log_assert(ntohs(dnskey_rrset->rk.type) == LDNS_RR_TYPE_DNSKEY);
usr.sbin/unbound/validator/autotrust.c
1637
if(!rr_is_dnskey_sep(ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
1640
if(rr_is_dnskey_revoked(ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
1658
if(!find_key(tp, ntohs(dnskey_rrset->rk.type),
usr.sbin/unbound/validator/autotrust.c
284
f = ntohs(f);
usr.sbin/unbound/validator/val_kentry.c
321
d->rrset_type = ntohs(rrset->rk.type);
usr.sbin/unbound/validator/val_kentry.c
408
f = ntohs(f);
usr.sbin/unbound/validator/val_neg.c
1009
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC &&
usr.sbin/unbound/validator/val_neg.c
1010
ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC3)
usr.sbin/unbound/validator/val_neg.c
330
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/val_neg.c
570
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
usr.sbin/unbound/validator/val_neg.c
584
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/val_neg.c
687
if(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/val_neg.c
763
nsec->rk.dname, ntohs(nsec->rk.type),
usr.sbin/unbound/validator/val_neg.c
764
ntohs(nsec->rk.rrset_class));
usr.sbin/unbound/validator/val_neg.c
818
if(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/val_neg.c
860
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC ||
usr.sbin/unbound/validator/val_neg.c
861
ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/val_neg.c
869
*dclass = ntohs(rep->rrsets[i]->
usr.sbin/unbound/validator/val_neg.c
894
rrset_class = ntohs(soa->rk.rrset_class);
usr.sbin/unbound/validator/val_neg.c
926
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_NSEC)
usr.sbin/unbound/validator/val_nsec.c
153
log_assert(ntohs(nsec->rk.type) == LDNS_RR_TYPE_NSEC);
usr.sbin/unbound/validator/val_nsec3.c
195
i = ntohs(i);
usr.sbin/unbound/validator/val_nsec3.c
350
if(ntohs(filter->list[i]->rk.type) != LDNS_RR_TYPE_NSEC3 ||
usr.sbin/unbound/validator/val_nsec3.c
351
ntohs(filter->list[i]->rk.rrset_class) !=
usr.sbin/unbound/validator/val_nsec3.c
432
if(ntohs(list[i]->rk.type) != LDNS_RR_TYPE_NSEC3 ||
usr.sbin/unbound/validator/val_nsec3.c
433
ntohs(list[i]->rk.rrset_class) != qinfo->qclass)
usr.sbin/unbound/validator/val_secalgo.c
1194
exp = ntohs(int16);
usr.sbin/unbound/validator/val_sigcrypt.c
1097
switch(ntohs(rrset->rk.type)) {
usr.sbin/unbound/validator/val_sigcrypt.c
121
return ntohs(t);
usr.sbin/unbound/validator/val_sigcrypt.c
1323
if(ntohs(k->rk.type) == LDNS_RR_TYPE_NSEC &&
usr.sbin/unbound/validator/val_sigcrypt.c
161
f = ntohs(f);
usr.sbin/unbound/validator/val_sigcrypt.c
242
return ntohs(t);
usr.sbin/unbound/validator/val_sigcrypt.c
936
uint16_t type = ntohs(rrset->rk.type);
usr.sbin/unbound/validator/val_utils.c
1028
} else if(seen_dname && ntohs(orig->rrsets[i]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
1034
if(ntohs(orig->rrsets[i]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
1038
} else if(ntohs(orig->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME
usr.sbin/unbound/validator/val_utils.c
1115
ntohs(rep->rrsets[i]->rk.type)
usr.sbin/unbound/validator/val_utils.c
1134
ntohs(rep->rrsets[i]->rk.type),
usr.sbin/unbound/validator/val_utils.c
1135
ntohs(rep->rrsets[i]->rk.rrset_class));
usr.sbin/unbound/validator/val_utils.c
1187
ntohs(rep->rrsets[i]->rk.rrset_class)))
usr.sbin/unbound/validator/val_utils.c
127
ntohs(rep->rrsets[i]->rk.type)
usr.sbin/unbound/validator/val_utils.c
136
if(ntohs(rep->rrsets[i]->rk.type)
usr.sbin/unbound/validator/val_utils.c
149
ntohs(rep->rrsets[i]->rk.type) == qinf->qtype)
usr.sbin/unbound/validator/val_utils.c
151
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME)
usr.sbin/unbound/validator/val_utils.c
252
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DNAME &&
usr.sbin/unbound/validator/val_utils.c
284
ntohs(rep->rrsets[i]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
286
ntohs(rep->rrsets[i-1]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
305
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME
usr.sbin/unbound/validator/val_utils.c
311
if(ntohs(rep->rrsets[i]->rk.type) != LDNS_RR_TYPE_DNAME)
usr.sbin/unbound/validator/val_utils.c
321
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC
usr.sbin/unbound/validator/val_utils.c
322
|| ntohs(rep->rrsets[i]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
337
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NSEC
usr.sbin/unbound/validator/val_utils.c
338
|| ntohs(rep->rrsets[i]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
358
ntohs(rep->rrsets[skip]->rk.type) ==
usr.sbin/unbound/validator/val_utils.c
417
rrset->rk.dname, ntohs(rrset->rk.type),
usr.sbin/unbound/validator/val_utils.c
418
ntohs(rrset->rk.rrset_class));
usr.sbin/unbound/validator/val_utils.c
426
rrset->rk.dname, ntohs(rrset->rk.type),
usr.sbin/unbound/validator/val_utils.c
427
ntohs(rrset->rk.rrset_class));
usr.sbin/unbound/validator/val_utils.c
432
ntohs(rrset->rk.type), ntohs(rrset->rk.rrset_class));
usr.sbin/unbound/validator/val_utils.c
691
ntohs(ds_rrset->rk.rrset_class), dnskey_rrset,
usr.sbin/unbound/validator/val_utils.c
697
ntohs(ds_rrset->rk.rrset_class),
usr.sbin/unbound/validator/val_utils.c
702
ds_rrset->rk.dname_len, ntohs(ds_rrset->rk.rrset_class),
usr.sbin/unbound/validator/val_utils.c
86
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_SOA)
usr.sbin/unbound/validator/val_utils.c
867
ntohs(dnskey_rrset->rk.rrset_class), dnskey_rrset,
usr.sbin/unbound/validator/val_utils.c
872
ntohs(dnskey_rrset->rk.rrset_class),
usr.sbin/unbound/validator/val_utils.c
877
dnskey_rrset->rk.dname_len, ntohs(dnskey_rrset->rk.rrset_class),
usr.sbin/unbound/validator/val_utils.c
88
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_DS)
usr.sbin/unbound/validator/val_utils.c
90
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS)
usr.sbin/unbound/validator/val_utils.c
975
if(ntohs(rep->rrsets[i]->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/validator/val_utils.c
98
ntohs(rep->rrsets[0]->rk.type) == LDNS_RR_TYPE_NS &&
usr.sbin/unbound/validator/validator.c
1031
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
1054
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1063
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/validator.c
1154
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1167
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/validator.c
1259
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1280
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3)
usr.sbin/unbound/validator/validator.c
1434
s->rk.dname, ntohs(s->rk.type),
usr.sbin/unbound/validator/validator.c
1435
ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
1453
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1462
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/validator.c
1551
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
1561
ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME && wc) {
usr.sbin/unbound/validator/validator.c
1564
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
1573
if (ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME) {
usr.sbin/unbound/validator/validator.c
1587
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1596
if(wc != NULL && ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/validator.c
1685
if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC) {
usr.sbin/unbound/validator/validator.c
1712
} else if(ntohs(s->rk.type) == LDNS_RR_TYPE_NSEC3) {
usr.sbin/unbound/validator/validator.c
1827
vq->qchase.qtype = ntohs(vq->orig_msg->rep->
usr.sbin/unbound/validator/validator.c
1829
vq->qchase.qclass = ntohs(vq->orig_msg->rep->
usr.sbin/unbound/validator/validator.c
1839
ntohs(vq->orig_msg->rep->rrsets[vq->rrset_skip]->rk.type) ==
usr.sbin/unbound/validator/validator.c
3079
if(msg->rep->an_numrrsets != 0 && ntohs(msg->rep->
usr.sbin/unbound/validator/validator.c
707
if(i>0 && ntohs(chase_reply->rrsets[i-1]->rk.type) ==
usr.sbin/unbound/validator/validator.c
709
ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME &&
usr.sbin/unbound/validator/validator.c
731
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
733
if(ntohs(s->rk.type) == LDNS_RR_TYPE_CNAME)
usr.sbin/unbound/validator/validator.c
735
else if(ntohs(s->rk.type) == LDNS_RR_TYPE_DNAME)
usr.sbin/unbound/validator/validator.c
776
ntohs(s->rk.type), ntohs(s->rk.rrset_class));
usr.sbin/unbound/validator/validator.c
917
if(ntohs(rep->rrsets[ rep->an_numrrsets ]->rk.type) != LDNS_RR_TYPE_NS)
usr.sbin/unbound/validator/validator.c
961
if(ntohs(chase_reply->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS
usr.sbin/unbound/validator/validator.c
976
if(ntohs(orig_reply->rrsets[i]->rk.type) == LDNS_RR_TYPE_NS
usr.sbin/vmd/dhcp.c
80
if (ntohs(ss2sin(&pc.pc_src)->sin_port) != CLIENT_PORT ||
usr.sbin/vmd/dhcp.c
81
ntohs(ss2sin(&pc.pc_dst)->sin_port) != SERVER_PORT)
usr.sbin/vmd/packet.c
158
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
usr.sbin/vmd/packet.c
260
if (buflen != offset + ntohs(ip->ip_len))
usr.sbin/vmd/packet.c
262
ntohs(ip->ip_len), buflen - offset);
usr.sbin/vmd/packet.c
266
if (buflen < offset + ntohs(ip->ip_len))
usr.sbin/vmd/packet.c
275
if (buflen < offset + ip_len + ntohs(udp->uh_ulen))
usr.sbin/vmd/packet.c
284
len = ntohs(udp->uh_ulen) - sizeof(*udp);
usr.sbin/vmd/packet.c
297
IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen)))));
usr.sbin/vmd/packet.c
71
sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
usr.sbin/ypbind/ypbind.c
206
ntohs(ypdb->dom_server_addr.sin_port));
usr.sbin/ypbind/ypbind.c
239
if (ntohs(fromsin->sin_port) >= IPPORT_RESERVED) {
usr.sbin/ypbind/ypbind.c
969
if (insecure == 0 && ntohs(raddrp->sin_port) >= IPPORT_RESERVED)
usr.sbin/ypldap/ldapclient.c
78
if (ntohs(sa_in->sin_port) == 0)
usr.sbin/ypldap/ldapclient.c
84
if (ntohs(sa_in6->sin6_port) == 0)
usr.sbin/ypldap/parse.y
180
$$ = ntohs(servent->s_port);
usr.sbin/ypldap/yp.c
140
udpport = ntohs(addr.sin_port);
usr.sbin/ypldap/yp.c
150
tcpport = ntohs(addr.sin_port);
usr.sbin/ypserv/ypserv/ypserv_proc.c
121
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
usr.sbin/ypserv/ypserv/ypserv_proc.c
146
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
156
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
179
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
187
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
210
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
220
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
245
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
usr.sbin/ypserv/ypserv/ypserv_proc.c
252
ntohs(caller->sin_port) >= IPPORT_RESERVED) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
286
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
usr.sbin/ypserv/ypserv/ypserv_proc.c
294
if (ntohs(caller->sin_port) >= IPPORT_RESERVED)
usr.sbin/ypserv/ypserv/ypserv_proc.c
322
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
332
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
364
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
373
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
410
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
419
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
452
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
usr.sbin/ypserv/ypserv/ypserv_proc.c
520
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok));
usr.sbin/ypserv/ypserv/ypserv_proc.c
548
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
577
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok),
usr.sbin/ypserv/ypserv/ypserv_proc.c
617
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
628
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
667
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
67
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port), TORF(ok));
usr.sbin/ypserv/ypserv/ypserv_proc.c
677
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
716
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
727
if (secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED)) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
769
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
779
if (!(secure && (ntohs(caller->sin_port) >= IPPORT_RESERVED))) {
usr.sbin/ypserv/ypserv/ypserv_proc.c
813
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
817
if (ntohs(caller->sin_port) >= IPPORT_RESERVED)
usr.sbin/ypserv/ypserv/ypserv_proc.c
858
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
862
if (ntohs(caller->sin_port) >= IPPORT_RESERVED)
usr.sbin/ypserv/ypserv/ypserv_proc.c
902
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),
usr.sbin/ypserv/ypserv/ypserv_proc.c
907
if (ntohs(caller->sin_port) >= IPPORT_RESERVED)
usr.sbin/ypserv/ypserv/ypserv_proc.c
94
inet_ntoa(caller->sin_addr), ntohs(caller->sin_port),