Symbol: ntohs
crypto/heimdal/appl/ftp/ftp/ftp.c
1355
ntohs(socket_get_port (data_addr)));
crypto/heimdal/appl/ftp/ftp/ftp.c
1362
unsigned int p = ntohs(sin4->sin_port);
crypto/heimdal/appl/ftp/ftp/ftp.c
71
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
crypto/heimdal/appl/ftp/ftpd/ftpd.c
2050
ntohs(socket_get_port (pasv_addr)));
crypto/heimdal/appl/ftp/ftpd/ftpd.c
355
htons(ntohs(socket_get_port(ctrl_addr)) - 1));
crypto/heimdal/appl/gssmask/gssmaestro.c
299
put32(c, ntohs(port));
crypto/heimdal/appl/kf/kf.c
296
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
crypto/heimdal/appl/push/push.c
107
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
crypto/heimdal/appl/rsh/rsh.c
273
ntohs(socket_get_port(thataddr)),
crypto/heimdal/appl/rsh/rsh.c
481
ntohs(socket_get_port(erraddr)));
crypto/heimdal/appl/rsh/rshd.c
317
ntohs(socket_get_port (thisaddr)),
crypto/heimdal/appl/rsh/rshd.c
549
return ntohs(port) < IPPORT_RESERVED;
crypto/heimdal/appl/telnet/telnet/commands.c
2166
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
crypto/heimdal/appl/test/common.c
151
snprintf (portstr, sizeof(portstr), "%u", ntohs(port));
crypto/heimdal/kdc/connect.c
289
krb5_warn(context, errno, "bind %s/%d", a_str, ntohs(port));
crypto/heimdal/kdc/connect.c
299
krb5_warn(context, errno, "listen %s/%d", a_str, ntohs(port));
crypto/heimdal/kdc/connect.c
348
ntohs(ports[i].port),
crypto/heimdal/kdc/connect.c
777
ntohs(d[idx].port));
crypto/heimdal/kdc/connect.c
783
ntohs(d[idx].port));
crypto/heimdal/kdc/connect.c
809
ntohs(d[idx].port));
crypto/heimdal/kdc/hprop.c
295
ntohs(krb5_getportbyname (context, "hprop", "tcp",
crypto/heimdal/lib/kadm5/init_c.c
424
snprintf (portstr, sizeof(portstr), "%u", ntohs(ctx->kadmind_port));
crypto/heimdal/lib/krb5/krbhst.c
222
def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80));
crypto/heimdal/lib/krb5/krbhst.c
80
def_port = ntohs(krb5_getportbyname (context, "http", "tcp", 80));
crypto/heimdal/lib/krb5/krbhst.c
82
def_port = ntohs(krb5_getportbyname (context, service, proto, 88));
crypto/heimdal/lib/krb5/krbhst.c
929
def_port = ntohs(krb5_getportbyname (context, "kerberos", "udp", 88));
crypto/heimdal/lib/krb5/krbhst.c
934
def_port = ntohs(krb5_getportbyname (context, "kerberos-adm",
crypto/heimdal/lib/krb5/krbhst.c
940
def_port = ntohs(krb5_getportbyname (context, "kpasswd", "udp",
crypto/heimdal/lib/krb5/krbhst.c
946
def_port = ntohs(krb5_getportbyname (context, "krb524", "udp", 4444));
crypto/heimdal/lib/krb5/send_to_kdc.c
284
ntohs(init_port (colon, htons(80))));
crypto/heimdal/lib/roken/getaddrinfo-test.c
103
ntohs(socket_get_port (r->ai_addr)));
crypto/heimdal/lib/roken/getnameinfo.c
71
snprintf (serv, servlen, "%u", ntohs(port));
crypto/heimdal/lib/roken/getnameinfo.c
81
snprintf (serv, servlen, "%u", ntohs(port));
crypto/heimdal/lib/roken/mini_inetd.c
187
snprintf (portstr, sizeof(portstr), "%d", ntohs(port));
crypto/heimdal/lib/roken/socket_wrapper.c
1693
unsigned int prt = ntohs(((const struct sockaddr_in *)to)->sin_port);
crypto/heimdal/lib/roken/socket_wrapper.c
370
prt = ntohs(in->sin_port);
crypto/heimdal/lib/roken/socket_wrapper.c
409
prt = ntohs(in->sin6_port);
crypto/heimdal/lib/roken/socket_wrapper.c
459
prt = ntohs(in->sin_port);
crypto/heimdal/lib/roken/socket_wrapper.c
516
prt = ntohs(in->sin6_port);
crypto/krb5/src/appl/sample/sclient/sclient.c
236
recv_data.length = ntohs(xmitlen);
crypto/krb5/src/appl/simple/server/sim_server.c
167
printf("socket has port # %d\n", ntohs(s_sock.sin_port));
crypto/krb5/src/include/socket-utils.h
122
return ntohs(sa2sin(sa)->sin_port);
crypto/krb5/src/include/socket-utils.h
124
return ntohs(sa2sin6(sa)->sin6_port);
crypto/krb5/src/lib/kdb/kdb_default.c
236
enctype = ntohs((uint16_t) enctype);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1002
princ_size = ntohs(princ_size);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1053
enctype = ntohs(enctype);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
1064
count = ntohs(count);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
797
kt_vno = KTVERSION(id) = ntohs(kt_vno);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
947
count = ntohs(count);
crypto/krb5/src/lib/krb5/keytab/kt_file.c
972
princ_size = ntohs(princ_size);
crypto/krb5/src/lib/krb5/os/dnsglue.c
289
nqueries = ntohs((unsigned short)hdr->qdcount);
crypto/krb5/src/lib/krb5/os/dnsglue.c
290
nanswers = ntohs((unsigned short)hdr->ancount);
crypto/krb5/src/lib/krb5/os/t_std_conf.c
102
ntohs(s_sin->sin_port));
crypto/krb5/src/lib/krb5/os/t_std_conf.c
114
printf("/%d", ntohs(s_sin6->sin6_port));
crypto/krb5/src/lib/rpc/unit-test/client.c
132
sin.sin_port = ntohs(atoi(port));
crypto/krb5/src/lib/rpc/unit-test/server.c
179
ntohs(rqst->rq_xprt->xp_raddr.sin_port),
crypto/krb5/src/util/support/fake-addrinfo.c
984
port = ntohs (sinp->sin_port);
crypto/openssh/channels.c
1536
c->host_port = ntohs(s4_req.dest_port);
crypto/openssh/channels.c
1673
c->host_port = ntohs(dest_port);
crypto/openssh/misc.c
546
return ntohs(se->s_port);
crypto/openssh/openbsd-compat/bindresvport.c
92
port = ntohs(*portp);
crypto/openssh/openbsd-compat/fake-rfc2553.c
57
snprintf(tmpserv, sizeof(tmpserv), "%d", ntohs(sin->sin_port));
crypto/openssh/openbsd-compat/getrrsetbyname.c
410
resp->header.qdcount = ntohs(resp->header.qdcount);
crypto/openssh/openbsd-compat/getrrsetbyname.c
411
resp->header.ancount = ntohs(resp->header.ancount);
crypto/openssh/openbsd-compat/getrrsetbyname.c
412
resp->header.nscount = ntohs(resp->header.nscount);
crypto/openssh/openbsd-compat/getrrsetbyname.c
413
resp->header.arcount = ntohs(resp->header.arcount);
crypto/openssh/openbsd-compat/rresvport.c
104
*alport = ntohs(*portp);
crypto/openssh/readconf.c
528
port = sp ? ntohs(sp->s_port) : SSH_DEFAULT_PORT;
crypto/openssh/regress/netcat.c
1622
host, ntohs(serverport));
crypto/openssh/regress/netcat.c
1626
host, ntohs(serverport));
crypto/openssh/regress/netcat.c
498
ntohs(atoi(portlist[i])),
crypto/openssl/apps/s_client.c
3619
ntohs(BIO_ADDR_rawport(info.addr)));
crypto/openssl/crypto/bio/bio_addr.c
269
ntohs(BIO_ADDR_rawport(ap)));
crypto/openssl/crypto/bio/bio_addr.c
282
BIO_snprintf(serv, sizeof(serv), "%d", ntohs(ap->s_in.sin_port));
crypto/openssl/crypto/bio/bio_sock.c
91
*port_ptr = ntohs(BIO_ADDR_rawport(BIO_ADDRINFO_address(res)));
crypto/openssl/test/radix/quic_ops.c
1004
|| !TEST_int_ge(ntohs(BIO_ADDR_rawport(src_addr)), 0))
include/arpa/inet.h
142
uint16_t ntohs(uint16_t);
lib/libc/net/getaddrinfo.c
2017
ancount = ntohs(hp->ancount);
lib/libc/net/getaddrinfo.c
2018
qdcount = ntohs(hp->qdcount);
lib/libc/net/getaddrinfo.c
2187
RES_SET_H_ERRNO(res, ntohs(hp->ancount) > 0 ? NO_DATA : NO_RECOVERY);
lib/libc/net/getaddrinfo.c
2817
if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
lib/libc/net/getaddrinfo.c
2822
ntohs(hp->ancount));
lib/libc/net/getaddrinfo.c
2827
ancount += ntohs(hp->ancount);
lib/libc/net/gethostbydns.c
171
ancount = ntohs(hp->ancount);
lib/libc/net/gethostbydns.c
172
qdcount = ntohs(hp->qdcount);
lib/libc/net/getnameinfo.c
213
snprintf(numserv, sizeof(numserv), "%u", ntohs(port));
lib/libc/net/getnetbydns.c
181
ancount = ntohs(hp->ancount); /* #/records in the answer section */
lib/libc/net/getnetbydns.c
182
qdcount = ntohs(hp->qdcount); /* #/entries in the question section */
lib/libc/net/getservent.c
726
asprintf(&buf, "%d/%s", ntohs(port), proto);
lib/libc/net/hesiod.c
371
ancount = ntohs(hp->ancount);
lib/libc/net/hesiod.c
372
qdcount = ntohs(hp->qdcount);
lib/libc/net/rcmd.c
118
(void)snprintf(num, sizeof(num), "%d", ntohs(rport));
lib/libc/net/rcmd.c
250
aport = ntohs(((struct sockaddr_in *)&from)->sin_port);
lib/libc/net/rcmd.c
254
aport = ntohs(((struct sockaddr_in6 *)&from)->sin6_port);
lib/libc/net/rcmd.c
362
*alport = (int)ntohs(*sport);
lib/libc/net/rcmdsh.c
87
(unsigned int)ntohs(rport));
lib/libc/resolv/res_mkquery.c
243
hp->arcount = htons(ntohs(hp->arcount) + 1);
lib/libc/resolv/res_mkupdate.c
1116
port = ntohs(port);
lib/libc/resolv/res_mkupdate.c
990
slp->port = ntohs((u_int16_t)sp->s_port); /*%< host byt order */
lib/libc/resolv/res_query.c
164
if (hp->rcode != NOERROR || ntohs(hp->ancount) == 0) {
lib/libc/resolv/res_query.c
169
ntohs(hp->ancount),
lib/libc/resolv/res_query.c
170
ntohs(hp->nscount),
lib/libc/resolv/res_query.c
171
ntohs(hp->arcount));
lib/libc/resolv/res_send.c
219
int qdcount = ntohs(((const HEADER*)buf)->qdcount);
lib/libc/resolv/res_send.c
257
int qdcount = ntohs(((const HEADER*)buf1)->qdcount);
lib/libc/resolv/res_send.c
270
if (qdcount != ntohs(((const HEADER*)buf2)->qdcount))
lib/libc/rpc/rpc_generic.c
594
port = ntohs(sin->sin_port);
lib/libc/rpc/rpc_generic.c
607
port = ntohs(sin6->sin6_port);
lib/libc/rpc/rpc_soc.c
234
svc->xp_port = ntohs(port);
lib/libc/tests/nss/getserv_test.c
175
serv->s_name, ntohs(serv->s_port), serv->s_proto);
lib/libc/tests/nss/getserv_test.c
318
if (ntohs(serv->s_port < 0))
lib/libc/yp/yplib.c
455
if (ntohs(clnt_sin.sin_port) >= IPPORT_RESERVED) {
lib/libcompat/4.3/rexec.c
347
port = ntohs((u_short)sin2.sin_port);
lib/libfetch/common.c
255
return (ntohs(se->s_port));
lib/libfetch/ftp.c
824
p = ntohs(sin4->sin_port);
lib/libfetch/ftp.c
853
(ntohs(sin6->sin6_port) >> 8) & 0xff,
lib/libfetch/ftp.c
854
ntohs(sin6->sin6_port) & 0xff);
lib/libipsec/pfkey_dump.c
259
printf("[%u]", ntohs(natt_sport->sadb_x_nat_t_port_port));
lib/libipsec/pfkey_dump.c
268
printf("[%u]", ntohs(natt_dport->sadb_x_nat_t_port_port));
lib/libnetbsd/sockaddr_snprintf.c
145
p = ntohs(sin4->sin_port);
lib/libnetbsd/sockaddr_snprintf.c
151
p = ntohs(sin6->sin6_port);
lib/libpjdlog/pjdlog.c
184
port = ntohs(sin->sin_port);
lib/libpjdlog/pjdlog.c
200
port = ntohs(sin->sin6_port);
lib/libsdp/search.c
197
xpdu.pdu.tid = ntohs(xpdu.pdu.tid);
lib/libsdp/search.c
198
xpdu.pdu.len = ntohs(xpdu.pdu.len);
lib/libsdp/search.c
199
xpdu.len = ntohs(xpdu.len);
lib/libsdp/service.c
220
pdu->tid = ntohs(pdu->tid);
lib/libsdp/service.c
221
pdu->len = ntohs(pdu->len);
lib/libsdp/util.c
344
ntohs(*(uint16_t *)&value.int128.b[4]),
lib/libsdp/util.c
345
ntohs(*(uint16_t *)&value.int128.b[6]),
lib/libsdp/util.c
346
ntohs(*(uint16_t *)&value.int128.b[8]),
lib/libsdp/util.c
347
ntohs(*(uint16_t *)&value.int128.b[10]),
lib/libtacplus/taclib.c
1041
if (get_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1042
get_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
lib/libtacplus/taclib.c
1103
if (get_str(h, "msg", &h->srvr_msg, ntohs(ares->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1104
get_str(h, "data", &h->srvr_data, ntohs(ares->data_len)) ==-1)
lib/libtacplus/taclib.c
1159
if (get_str(h, "msg", &h->srvr_msg, ntohs(ar->msg_len)) == -1 ||
lib/libtacplus/taclib.c
1160
get_str(h, "data", &h->srvr_data, ntohs(ar->data_len)) == -1 ||
lib/libtacplus/taclib.c
99
len = ntohs(len);
libexec/bootpd/bootpd.c
1270
msgsz = ntohs(msgsz);
libexec/bootpd/bootpd.c
229
bootps_port = ntohs(bind_addr.sin_port);
libexec/bootpd/bootpd.c
435
bootps_port = ntohs((u_short) servp->s_port);
libexec/bootpd/bootpd.c
462
bootpc_port = ntohs(servp->s_port);
libexec/bootpd/bootpd.c
738
u_int32 t = (u_int32) ntohs(bp->bp_secs);
libexec/bootpd/bootpgw/bootpgw.c
198
bootps_port = ntohs(bind_addr.sin_port);
libexec/bootpd/bootpgw/bootpgw.c
390
bootps_port = ntohs((u_short) servp->s_port);
libexec/bootpd/bootpgw/bootpgw.c
416
bootpc_port = ntohs(servp->s_port);
libexec/bootpd/bootpgw/bootpgw.c
523
secs = ntohs(bp->bp_secs);
libexec/bootpd/tools/bootptest/bootptest.c
239
bootps_port = ntohs((u_short) sep->s_port);
libexec/bootpd/tools/bootptest/bootptest.c
272
bootpc_port = ntohs(sep->s_port);
libexec/bootpd/tools/bootptest/print-bootp.c
121
printf(" secs:%d", ntohs(bp->bp_secs));
libexec/bootpd/tools/bootptest/print-bootp.c
321
printf("%d", ntohs(us));
libexec/rbootd/rmp_var.h
155
(i) = (((u_int32_t)ntohs((w).val[_WORD_HIGHPART])) << 16) | ntohs((w).val[_WORD_LOWPART])
libexec/rbootd/rmpproto.c
105
if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) {
libexec/rbootd/rmpproto.c
416
if (ntohs(req->r_rrq.rmp_session) !=
libexec/rbootd/rmpproto.c
417
((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
libexec/rbootd/rmpproto.c
418
ntohs(rpl->r_rrpl.rmp_session))) {
libexec/rbootd/rmpproto.c
434
if (ntohs(req->r_rrq.rmp_size) > RMPREADDATA)
libexec/rbootd/rmpproto.c
453
(int) ntohs(req->r_rrq.rmp_size))) <= 0) {
libexec/rbootd/rmpproto.c
520
if (ntohs(rconn->rmp.r_rrq.rmp_session) !=
libexec/rbootd/rmpproto.c
521
((rpl->r_type == RMP_BOOT_REPL)? ntohs(rpl->r_brpl.rmp_session):
libexec/rbootd/rmpproto.c
522
ntohs(rpl->r_rrpl.rmp_session))) {
libexec/rbootd/utils.c
107
rmp->hp_llc.dsap, rmp->hp_llc.ssap, ntohs(rmp->hp_llc.cntrl));
libexec/rbootd/utils.c
111
ntohs(rmp->hp_llc.dxsap), ntohs(rmp->hp_llc.sxsap));
libexec/rbootd/utils.c
121
if (ntohs(rmp->r_brq.rmp_session) == RMP_PROBESID) {
libexec/rbootd/utils.c
129
t, ntohs(rmp->r_brq.rmp_session),
libexec/rbootd/utils.c
130
ntohs(rmp->r_brq.rmp_version));
libexec/rbootd/utils.c
140
t, ntohs(rmp->r_brpl.rmp_session),
libexec/rbootd/utils.c
141
ntohs(rmp->r_brpl.rmp_version));
libexec/rbootd/utils.c
148
t, ntohs(rmp->r_rrq.rmp_session));
libexec/rbootd/utils.c
150
ntohs(rmp->r_rrq.rmp_size));
libexec/rbootd/utils.c
156
t, ntohs(rmp->r_rrpl.rmp_session));
libexec/rbootd/utils.c
164
ntohs(rmp->r_done.rmp_session));
libexec/talkd/process.c
71
mp->addr.sa_family = ntohs(mp->addr.sa_family);
libexec/talkd/process.c
78
mp->ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family);
libexec/talkd/talkd.c
105
ctl_addr.sa_family = ntohs(mp->ctl_addr.sa_family);
libexec/tftpd/tftp-io.c
114
packettype(ntohs(((struct tftphdr *)
libexec/tftpd/tftp-io.c
120
packettype(ntohs(((struct tftphdr *)(pkt))->th_opcode)),
libexec/tftpd/tftp-io.c
418
pkt->th_opcode = ntohs((u_short)pkt->th_opcode);
libexec/tftpd/tftp-io.c
421
pkt->th_block = ntohs((u_short)pkt->th_block);
libexec/tftpd/tftpd.c
404
tp->th_opcode = ntohs(tp->th_opcode);
sbin/dhclient/convert.c
75
return (ntohs(ibuf));
sbin/dhclient/convert.c
84
return (ntohs(ibuf));
sbin/dhclient/packet.c
141
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
sbin/dhclient/packet.c
161
return (sizeof(eh) + (ntohs(eh.ether_type) == ETHERTYPE_VLAN ?
sbin/dhclient/packet.c
197
if (ntohs(ip->ip_len) != buflen)
sbin/dhclient/packet.c
199
ntohs(ip->ip_len), buflen);
sbin/dhclient/packet.c
210
len = ntohs(udp->uh_ulen) - sizeof(*udp);
sbin/dhclient/packet.c
237
IPPROTO_UDP + (u_int32_t)ntohs(udp->uh_ulen));
sbin/dhclient/packet.c
65
sum += (u_int16_t)ntohs(*((u_int16_t *)(buf + i)));
sbin/hastd/pjdlog.c
112
port = ntohs(sin->sin_port);
sbin/hastd/pjdlog.c
128
port = ntohs(sin->sin6_port);
sbin/ipf/common/ipf_y.y
1435
$$ = ntohs($$);
sbin/ipf/ipf/bpf_filter.c
85
#define EXTRACT_SHORT(p) ((u_short)ntohs(*(u_short *)p))
sbin/ipf/ipfstat/ipfstat.c
1605
ntohs(tp->st_sport));
sbin/ipf/ipfstat/ipfstat.c
1608
ntohs(tp->st_dport));
sbin/ipf/ipftest/ip_fil.c
143
write(fd, (char *)ip, ntohs(ip->ip_len));
sbin/ipf/ipftest/ip_fil.c
781
sum += ntohs(*(u_char *)sp << 8);
sbin/ipf/ipftest/ipftest.c
661
len = ntohs(ip->ip_len);
sbin/ipf/ipftest/ipftest.c
667
len = ntohs(((ip6_t *)ip)->ip6_plen);
sbin/ipf/iplang/iplang_y.y
1246
for (i = ntohs(ip->ip_len), j = 0; i; i--, j++, s++) {
sbin/ipf/iplang/iplang_y.y
1286
ip->ip_len = ntohs(ip->ip_len);
sbin/ipf/iplang/iplang_y.y
1655
ip->ip_len = ntohs(ip->ip_len);
sbin/ipf/iplang/iplang_y.y
1689
udp->uh_sum = c_chksum((u_short *)udp, (u_int)ntohs(iptmp.ip_len), sum);
sbin/ipf/iplang/iplang_y.y
1710
tcp->th_sum = c_chksum((u_short *)tcp, (u_int)ntohs(iptmp.ip_len), sum);
sbin/ipf/ipmon/ipmon.c
1137
ipoff = ntohs(ip->ip_off);
sbin/ipf/ipmon/ipmon.c
1142
plen = ntohs(ip->ip_len);
sbin/ipf/ipmon/ipmon.c
1153
plen = hl + ntohs(ip6->ip6_plen);
sbin/ipf/ipmon/ipmon.c
1206
ntohs(tp->th_win));
sbin/ipf/ipmon/ipmon.c
1239
i = ntohs(ipc->ip_len);
sbin/ipf/ipmon/ipmon.c
1246
ipoff = ntohs(ipc->ip_off);
sbin/ipf/ipmon/ipmon.c
1288
ntohs(ipc->ip_id),
sbin/ipf/ipmon/ipmon.c
1305
ntohs(ip->ip_id),
sbin/ipf/ipmon/ipmon.c
412
port = ntohs(s->s_port);
sbin/ipf/ipmon/ipmon.c
416
port = ntohs(s->s_port);
sbin/ipf/ipmon/ipmon.c
470
port = ntohs(port);
sbin/ipf/ipmon/ipmon_y.y
854
printf("%sdstport = %hu", coma, ntohs(a->ac_dport));
sbin/ipf/ipmon/ipmon_y.y
940
printf("%ssrcport = %hu", coma, ntohs(a->ac_sport));
sbin/ipf/ipnat/ipnat_y.y
539
nat->in_odport = ntohs(pnum);
sbin/ipf/ipnat/ipnat_y.y
540
nat->in_ndport = ntohs(pnum);
sbin/ipf/ipnat/ipnat_y.y
567
nat->in_odport = ntohs(pnum);
sbin/ipf/ipnat/ipnat_y.y
568
nat->in_ndport = ntohs(pnum);
sbin/ipf/ipnat/ipnat_y.y
719
$$ = ntohs($$);
sbin/ipf/ipsend/ip.c
191
iplen = ntohs(ip->ip_len) - hlen;
sbin/ipf/ipsend/ip.c
215
if (!(ntohs(ip->ip_off) & IP_MF))
sbin/ipf/ipsend/ip.c
264
if ((__tcp_get_flags(t2) == TH_SYN) && !ntohs(ip->ip_off) &&
sbin/ipf/ipsend/iptests.c
1094
ntohs(t->th_sport), ntohs(t->th_dport));
sbin/ipf/ipsend/iptests.c
1122
TCP_OFF_A(t, ntohs(i));
sbin/ipf/ipsend/iptests.c
115
ip->ip_len = sizeof(*ip) + ntohs(u->uh_ulen);
sbin/ipf/ipsend/iptests.c
128
for (i = 0; i < ((sizeof(*ip) + ntohs(u->uh_ulen)) >> 2); i++) {
sbin/ipf/ipsend/iptests.c
144
for (; i < ((sizeof(*ip) * 2 + ntohs(u->uh_ulen)) >> 2); i++) {
sbin/ipf/ipsend/iptests.c
765
ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
sbin/ipf/ipsend/iptests.c
767
for (i = ntohs(u->uh_ulen) * 2; i > sizeof(*u) + 4; i--) {
sbin/ipf/ipsend/iptests.c
782
ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
sbin/ipf/ipsend/iptests.c
784
for (i = ntohs(u->uh_ulen) * 2; i > sizeof(*u) + 4; i--) {
sbin/ipf/ipsend/iptests.c
800
ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
sbin/ipf/ipsend/iptests.c
839
u->uh_ulen = ntohs(sizeof(*u) + 4);
sbin/ipf/ipsend/iptests.c
841
ip->ip_len = (IP_HL(ip) << 2) + ntohs(u->uh_ulen);
sbin/ipf/ipsend/iptests.c
880
for (i = sizeof(*ip); i <= ntohs(u->uh_ulen); i++) {
sbin/ipf/ipsend/resend.c
101
len = ntohs(ip->ip_len);
sbin/ipf/ipsend/sock.c
277
printf("sport %d\n", ntohs(lsin.sin_port));
sbin/ipf/libipf/ipft_tx.c
139
mb->mb_len = ntohs(((ip6_t *)ip)->ip6_plen) +
sbin/ipf/libipf/ipft_tx.c
145
mb->mb_len = ntohs(ip->ip_len);
sbin/ipf/libipf/ipft_tx.c
75
return (ntohs(sp->s_port));
sbin/ipf/libipf/printactivenat.c
100
PRINTF(" %-5hu", ntohs(nat->nat_odport));
sbin/ipf/libipf/printactivenat.c
107
PRINTF(" %hu", ntohs(nat->nat_osport));
sbin/ipf/libipf/printactivenat.c
39
PRINTF(" %-5hu", ntohs(nat->nat_osport));
sbin/ipf/libipf/printactivenat.c
46
PRINTF(" %-5hu", ntohs(nat->nat_odport));
sbin/ipf/libipf/printactivenat.c
53
PRINTF(" %-5hu", ntohs(nat->nat_nsport));
sbin/ipf/libipf/printactivenat.c
59
PRINTF(" %-5hu", ntohs(nat->nat_ndport));
sbin/ipf/libipf/printactivenat.c
69
PRINTF(" %-5hu", ntohs(nat->nat_osport));
sbin/ipf/libipf/printactivenat.c
76
PRINTF(" %-5hu", ntohs(nat->nat_nsport));
sbin/ipf/libipf/printactivenat.c
83
PRINTF(" %hu", ntohs(nat->nat_odport));
sbin/ipf/libipf/printactivenat.c
93
PRINTF(" %-5hu", ntohs(nat->nat_ndport));
sbin/ipf/libipf/printfr.c
188
type = ntohs(fp->fr_icmp);
sbin/ipf/libipf/printfr.c
196
if (ntohs(fp->fr_icmpm) & 0xff)
sbin/ipf/libipf/printipfexpr.c
155
PRINTF("%d", ntohs(array[i + 4]));
sbin/ipf/libipf/printiphdr.c
16
ip->ip_v, ip->ip_hl, ntohs(ip->ip_len), ip->ip_tos,
sbin/ipf/libipf/printiphdr.c
17
ntohs(ip->ip_off), ntohs(ip->ip_sum), ntohl(ip->ip_src.s_addr),
sbin/ipf/libipf/printnatfield.c
196
PRINTF("%hu", ntohs(n->nat_odport));
sbin/ipf/libipf/printnatfield.c
200
PRINTF("%hu", ntohs(n->nat_osport));
sbin/ipf/libipf/printnatfield.c
204
PRINTF("%hu", ntohs(n->nat_ndport));
sbin/ipf/libipf/printnatfield.c
208
PRINTF("%hu", ntohs(n->nat_nsport));
sbin/ipf/libipf/printpacket.c
28
len = ntohs(((ip6_t *)ip)->ip6_plen);
sbin/ipf/libipf/printpacket.c
30
len = ntohs(((u_short *)ip)[2]);
sbin/ipf/libipf/printpacket.c
34
len = ntohs(ip->ip_len);
sbin/ipf/libipf/printpacket.c
70
off = ntohs(ip->ip_off);
sbin/ipf/libipf/printpacket.c
72
PRINTF("ip #%d %d(%d) %d", ntohs(ip->ip_id), ntohs(ip->ip_len),
sbin/ipf/libipf/printpacket.c
79
PRINTF(",%d", ntohs(tcp->th_sport));
sbin/ipf/libipf/printpacket.c
84
PRINTF(",%d", ntohs(tcp->th_dport));
sbin/ipf/libipf/printpacket6.c
29
plen = ntohs(*((u_short *)buf +2));
sbin/ipf/libipf/printpacket6.c
41
ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
sbin/ipf/libipf/printpacket6.c
42
ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
sbin/ipf/libipf/printpacket6.c
43
ntohs(addrs[6]), ntohs(addrs[7]));
sbin/ipf/libipf/printpacket6.c
46
(void)PRINTF(",%d", ntohs(tcp->th_sport));
sbin/ipf/libipf/printpacket6.c
50
ntohs(addrs[0]), ntohs(addrs[1]), ntohs(addrs[2]),
sbin/ipf/libipf/printpacket6.c
51
ntohs(addrs[3]), ntohs(addrs[4]), ntohs(addrs[5]),
sbin/ipf/libipf/printpacket6.c
52
ntohs(addrs[6]), ntohs(addrs[7]));
sbin/ipf/libipf/printpacket6.c
55
PRINTF(",%d", ntohs(tcp->th_dport));
sbin/ipf/libipf/printstate.c
34
PRINTF(",%d", ntohs(sp->is_sport));
sbin/ipf/libipf/printstate.c
42
PRINTF(",%d", ntohs(sp->is_dport));
sbin/ipf/libipf/printstate.c
78
PRINTF("\tcall %hx/%hx\n", ntohs(sp->is_gre.gs_call[0]),
sbin/ipf/libipf/printstate.c
79
ntohs(sp->is_gre.gs_call[1]));
sbin/ipf/libipf/printstatefields.c
230
PRINTF("%hu", ntohs(sp->is_sport));
sbin/ipf/libipf/printstatefields.c
234
PRINTF("%hu", ntohs(sp->is_dport));
sbin/ipfw/ipfw2.c
1076
return ntohs(se->s_port);
sbin/ipfw/ipfw2.c
4200
return (ntohs(s->s_port));
sbin/ipfw/nat.c
227
SETLOPORT(*portRange, ntohs(sp->s_port));
sbin/ipfw/tables.c
1949
printf("%s%d", comma, ntohs(tfe->sport));
sbin/ipfw/tables.c
1964
printf("%s%d", comma, ntohs(tfe->dport));
sbin/natd/icmp.c
51
if (ntohs (failedDgram->ip_off) & ~(IP_MF | IP_DF))
sbin/natd/natd.c
1913
SETLOPORT(*portRange, ntohs(sp->s_port));
sbin/natd/natd.c
588
bytes = ntohs (ip->ip_len);
sbin/natd/natd.c
746
bytes = ntohs (ip->ip_len);
sbin/natd/natd.c
855
ntohs (tcphdr->th_sport),
sbin/natd/natd.c
857
ntohs (tcphdr->th_dport));
sbin/natd/natd.c
864
ntohs (udphdr->uh_sport),
sbin/natd/natd.c
866
ntohs (udphdr->uh_dport));
sbin/pfctl/parse.y
3376
yyerror("invalid divert port: %u", ntohs($2.a));
sbin/pfctl/parse.y
3395
yyerror("invalid divert port: %u", ntohs($4.a));
sbin/pfctl/parse.y
5707
uint16_t a = ntohs(p1);
sbin/pfctl/parse.y
5708
uint16_t b = ntohs(p2);
sbin/pfctl/parse.y
6164
snprintf(a1, sizeof(a1), "%u", ntohs(addr->port[0]));
sbin/pfctl/parse.y
6165
snprintf(a2, sizeof(a2), "%u", ntohs(addr->port[1]));
sbin/pfctl/parse.y
6571
rpool->proxy_port[0] = ntohs(rs->rport.a);
sbin/pfctl/parse.y
6574
rpool->proxy_port[1] = ntohs(rs->rport.a) +
sbin/pfctl/parse.y
6575
(ntohs(r->dst.port[1]) - ntohs(r->dst.port[0]));
sbin/pfctl/parse.y
6582
r->rdr.proxy_port[1] = ntohs(rs->rport.b);
sbin/pfctl/parse.y
6604
rpool->proxy_port[0] = ntohs(rs->rport.a);
sbin/pfctl/parse.y
6605
rpool->proxy_port[1] = ntohs(rs->rport.b);
sbin/pfctl/pf_print_state.c
178
printf(":%u", ntohs(port));
sbin/pfctl/pf_print_state.c
180
printf("[%u]", ntohs(port));
sbin/pfctl/pfctl_parser.c
1319
printf(" divert-to %u", ntohs(r->divert.port));
sbin/pfctl/pfctl_parser.c
1326
printf(" port %u", ntohs(r->divert.port));
sbin/pfctl/pfctl_parser.c
355
p1 = ntohs(p1);
sbin/pfctl/pfctl_parser.c
356
p2 = ntohs(p2);
sbin/pflowctl/pflowctl.c
300
printf(":%u", ntohs(sin->sin_port));
sbin/pflowctl/pflowctl.c
309
printf(":%u", ntohs(sin6->sin6_port));
sbin/ping/ping.c
1184
seq = ntohs(icp.icmp_seq);
sbin/ping/ping.c
1447
ntohs(icp->icmp_nextmtu));
sbin/ping/ping.c
1568
ip->ip_v, ip->ip_hl, ip->ip_tos, ntohs(ip->ip_len),
sbin/ping/ping.c
1569
ntohs(ip->ip_id));
sbin/ping/ping.c
1571
(ntohs(ip->ip_off) & 0xe000) >> 13,
sbin/ping/ping.c
1572
ntohs(ip->ip_off) & 0x1fff);
sbin/ping/ping.c
1574
ntohs(ip->ip_sum));
sbin/ping/ping6.c
1426
if (ntohs(icp->icmp6_id) == ident)
sbin/ping/ping6.c
1581
seq = ntohs(icp->icmp6_seq);
sbin/ping/ping6.c
1651
seq = ntohs(seq);
sbin/ping/ping6.c
1667
switch (ntohs(ni->ni_code)) {
sbin/ping/ping6.c
1671
printf("refused, type 0x%x", ntohs(ni->ni_type));
sbin/ping/ping6.c
1674
printf("unknown, type 0x%x", ntohs(ni->ni_type));
sbin/ping/ping6.c
1678
ntohs(ni->ni_code), ntohs(ni->ni_type));
sbin/ping/ping6.c
1682
switch (ntohs(ni->ni_qtype)) {
sbin/ping/ping6.c
1904
ntohs(value2));
sbin/ping/ping6.c
2057
if (sizeof(cbit) + ntohs(cbit.words) * sizeof(v) >
sbin/ping/ping6.c
2061
clen = ntohs(cbit.words) * sizeof(v);
sbin/ping/ping6.c
2062
if (cur + clen * 8 + (u_long)ntohs(cbit.skip) * 32 >
sbin/ping/ping6.c
2078
cur += ntohs(cbit.skip) * 32;
sbin/ping/ping6.c
2391
switch (ntohs(ni->ni_qtype)) {
sbin/ping/ping6.c
2462
switch (ntohs(ni->ni_qtype)) {
sbin/ping/ping6.c
2512
ntohs(ip6->ip6_plen), ip6->ip6_nxt, ip6->ip6_hlim);
sbin/ping/ping6.c
997
src.sin6_port = ntohs(DUMMY_PORT);
sbin/routed/input.c
1003
if (na2->a_type != ntohs(1))
sbin/routed/input.c
1007
na2->a_type, ntohs(1),
sbin/routed/input.c
376
ntohs(n->n_family),
sbin/routed/input.c
475
if (ntohs(from->sin_port) > IPPORT_RESERVED) {
sbin/routed/input.c
503
if (from->sin_port != ntohs(RIP_PORT)) {
sbin/routed/input.c
507
ntohs(from->sin_port), naddr_ntoa(FROM_NADDR));
sbin/routed/input.c
971
len = ntohs(NA->au.a_md5.md5_pkt_len);
sbin/routed/output.c
186
ntohs(osin.sin_port),
sbin/routed/rdisc.c
1026
ntohs(p->ad.icmp_ad_life),
sbin/routed/rdisc.c
121
ntohs(p->ad.icmp_ad_life));
sbin/routed/rtquery/rtquery.c
333
myaddr.sin_port = htons(ntohs(myaddr.sin_port)-1);
sbin/routed/rtquery/rtquery.c
709
ntohs(na->au.a_md5.md5_pkt_len),
sbin/routed/rtquery/rtquery.c
719
ntohs(na->a_type));
sbin/routed/rtquery/rtquery.c
724
&& na->a_type == ntohs(1)) {
sbin/routed/rtquery/rtquery.c
741
ntohs(n->n_family),
sbin/routed/trace.c
605
(void)fprintf(ftrace, "tag=%#x ", ntohs(rts->rts_tag));
sbin/routed/trace.c
886
ntohs(who->sin_port),
sbin/routed/trace.c
893
naddr_ntoa(who->sin_addr.s_addr), ntohs(who->sin_port),
sbin/routed/trace.c
924
ntohs(n->n_tag));
sbin/routed/trace.c
948
ntohs(NA->au.a_md5.md5_pkt_len),
sbin/routed/trace.c
952
(int)ntohs(NA->au.a_md5.rsvd[0]),
sbin/routed/trace.c
953
(int)ntohs(NA->au.a_md5.rsvd[1]));
sbin/routed/trace.c
958
ntohs(NA->a_type));
sbin/routed/trace.c
972
ntohs(n->n_family),
sbin/routed/trace.c
993
ntohs(n->n_tag));
share/doc/psd/20.ipctut/dgramread.c
71
printf("Socket has port #%d\en", ntohs(name.sin_port));
share/doc/psd/20.ipctut/strchkread.c
71
printf("Socket has port #%d\en", ntohs(server.sin_port));
share/doc/psd/20.ipctut/streamread.c
71
printf("Socket has port #%d\en", ntohs(server.sin_port));
share/examples/find_interface/find_interface.c
88
local.sin_port = htons(ntohs(local.sin_port) + 1);
share/examples/find_interface/find_interface.c
96
remote.sin_port = htons(ntohs(remote.sin_port) + 1);
share/examples/ipfilter/l4check/l4check.c
103
ipn->in_outmsk, ntohs(ipn->in_pmin));
share/examples/ipfilter/l4check/l4check.c
104
printf("%s,%u\n", inet_ntoa(ipn->in_in[0]), ntohs(ipn->in_pnext));
share/examples/ipfilter/l4check/l4check.c
303
ntohs(l4->l4_sin.sin_port), fd);
share/examples/ipfilter/samples/proxy.c
117
inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport));
share/examples/ipfilter/samples/proxy.c
119
inet_ntoa(natlook.nl_realip), ntohs(natlook.nl_realport));
share/examples/ipfilter/samples/proxy.c
179
printf("local port# to use: %d\n", ntohs(usin.sin_port));
share/examples/ipfilter/samples/proxy.c
185
sum1 = LONG_SUM(ntohl(usin.sin_addr.s_addr)) + ntohs(usin.sin_port);
share/examples/ipfilter/samples/proxy.c
186
sum2 = LONG_SUM(ntohl(nat->nat_outip.s_addr)) + ntohs(nlp->nl_outport);
share/examples/ipfilter/samples/proxy.c
220
ntohs(usin.sin_port));
share/examples/ipfilter/samples/relay.c
186
ntohs(sin.sin_port));
stand/libsa/bootparam.c
178
inet_ntoa(bp_server_addr), ntohs(bp_server_port)));
stand/libsa/bootparam.c
184
(int)ntohs(bp_server_port));
stand/libsa/ether.c
118
*etype = ntohs(eh->ether_type);
stand/libsa/ip.c
153
off_q = ntohs(p->ipq_hdr->ip_off) & IP_OFFMASK;
stand/libsa/ip.c
154
off_ip = ntohs(ip->ip_off) & IP_OFFMASK;
stand/libsa/ip.c
181
off_q = ntohs(next->ipq_hdr->ip_off) & IP_OFFMASK;
stand/libsa/ip.c
224
if (n < ntohs(ip->ip_len)) {
stand/libsa/ip.c
226
n, ntohs(ip->ip_len)));
stand/libsa/ip.c
232
fragoffset = (ntohs(ip->ip_off) & IP_OFFMASK) * 8;
stand/libsa/ip.c
233
morefrag = (ntohs(ip->ip_off) & IP_MF) == 0 ? false : true;
stand/libsa/ip.c
240
__func__, inet_ntoa(d->myip), ntohs(d->myport),
stand/libsa/ip.c
241
inet_ntoa(ip->ip_dst), ntohs(uh->uh_dport)));
stand/libsa/ip.c
251
inet_ntoa(ip->ip_src), ntohs(uh->uh_sport),
stand/libsa/ip.c
252
inet_ntoa(ip->ip_dst), ntohs(uh->uh_dport)));
stand/libsa/ip.c
256
ntohs(uh->uh_ulen) - hlen);
stand/libsa/ip.c
261
n = (n > (ntohs(ip->ip_len) - sizeof(*ip))) ?
stand/libsa/ip.c
262
ntohs(ip->ip_len) - sizeof(*ip) : n;
stand/libsa/ip.c
291
__func__, ntohs(ip->ip_id), inet_ntoa(ip->ip_src),
stand/libsa/ip.c
313
fragoffset = (ntohs(ipq->ipq_hdr->ip_off) & IP_OFFMASK) * 8;
stand/libsa/ip.c
316
__func__, ntohs(ipq->ipq_hdr->ip_id),
stand/libsa/ip.c
321
(ntohs(ipq->ipq_hdr->ip_off) & IP_MF) != 0));
stand/libsa/ip.c
326
n += ntohs(ipq->ipq_hdr->ip_len) - (ipq->ipq_hdr->ip_hl << 2);
stand/libsa/ip.c
331
if ((ntohs(last->ipq_hdr->ip_off) & IP_MF) != 0) {
stand/libsa/ip.c
333
__func__, ntohs(last->ipq_hdr->ip_id),
stand/libsa/ip.c
337
(ntohs(last->ipq_hdr->ip_off) & IP_OFFMASK) * 8,
stand/libsa/ip.c
338
(ntohs(last->ipq_hdr->ip_off) & IP_MF) != 0));
stand/libsa/ip.c
371
len = ntohs(ipq->ipq_hdr->ip_len) - hlen;
stand/libsa/ip.c
388
__func__, ntohs(ip->ip_id), inet_ntoa(ip->ip_src),
stand/libsa/ip.c
95
inet_ntoa(d->myip), ntohs(d->myport),
stand/libsa/ip.c
96
inet_ntoa(d->destip), ntohs(d->destport)));
stand/libsa/rarp.c
190
printf("bad op=0x%x\n", ntohs(ap->arp_op));
stand/libsa/smbios.c
298
f2 = ntohs(SMBIOS_GET16(addr, 4));
stand/libsa/smbios.c
299
f3 = ntohs(SMBIOS_GET16(addr, 6));
stand/libsa/stand.h
465
extern uint16_t ntohs(uint16_t);
stand/libsa/tftp.c
217
extra->rtype = ntohs(t->th_opcode);
stand/libsa/tftp.c
218
block = ntohs(t->th_block);
stand/libsa/tftp.c
254
tftp_error = ntohs(t->th_code);
stand/libsa/tftp.c
366
__func__, h->path, h->id, h->port, ntohs(h->iodesc->myport)));
stand/libsa/tftp.c
430
ntohs(h->iodesc->myport), h->iodesc->xid));
stand/libsa/udp.c
119
if (n == -1 || n < sizeof(*uh) || n != ntohs(uh->uh_ulen)) {
stand/libsa/udp.c
128
d->myport, ntohs(uh->uh_dport));
stand/libsa/udp.c
140
n = ntohs(uh->uh_ulen) + sizeof(*ip);
stand/libsa/udp.c
159
if (ntohs(uh->uh_ulen) < sizeof(*uh)) {
stand/libsa/udp.c
163
ntohs(uh->uh_ulen), (int)sizeof(*uh));
stand/libsa/udp.c
169
n = (n > (ntohs(uh->uh_ulen) - sizeof(*uh))) ?
stand/libsa/udp.c
170
ntohs(uh->uh_ulen) - sizeof(*uh) : n;
stand/libsa/udp.c
67
inet_ntoa(d->myip), ntohs(d->myport));
stand/libsa/udp.c
69
inet_ntoa(d->destip), ntohs(d->destport));
sys/arm64/broadcom/genet/if_genet.c
1302
ether_type = ntohs(((struct ether_vlan_header *)p)->evl_proto);
sys/arm64/broadcom/genet/if_genet.c
1315
ether_type = ntohs(((struct ether_header *)p)->ether_type);
sys/cam/scsi/scsi_cd.c
2023
th->len = ntohs(th->len);
sys/compat/linux/linux_socket.c
871
packet->ip_off = ntohs(packet->ip_off);
sys/dev/al_eth/al_eth.c
1235
etype = ntohs(eh->evl_proto);
sys/dev/al_eth/al_eth.c
1238
etype = ntohs(eh->evl_encap_proto);
sys/dev/alc/if_alc.c
3727
m->m_pkthdr.ether_vtag = ntohs(vtag);
sys/dev/asmc/asmc.c
984
ntohs(*(uint16_t *)buf + 4));
sys/dev/bce/if_bce.c
7127
etype = ntohs(eh->ether_type);
sys/dev/bce/if_bce.c
9553
etype = ntohs(eh->evl_proto);
sys/dev/bce/if_bce.c
9556
etype = ntohs(eh->evl_encap_proto);
sys/dev/bce/if_bce.c
9570
ntohs(ip->ip_len), ip->ip_p, ntohs(ip->ip_sum));
sys/dev/bce/if_bce.c
9577
ntohs(th->th_dport), ntohs(th->th_sport),
sys/dev/bce/if_bce.c
9580
"\02SYN\01FIN", ntohs(th->th_sum));
sys/dev/bce/if_bce.c
9585
"bytes, csum = 0x%04X\n", ntohs(uh->uh_dport),
sys/dev/bce/if_bce.c
9586
ntohs(uh->uh_sport), ntohs(uh->uh_ulen),
sys/dev/bce/if_bce.c
9587
ntohs(uh->uh_sum));
sys/dev/bce/if_bce.c
9602
switch (ntohs(ah->ar_op)) {
sys/dev/bnxt/bnxt_re/ib_verbs.c
4356
eth_type = ntohs(eth_hdr->h_proto);
sys/dev/bnxt/bnxt_re/ib_verbs.c
4381
eth_type = ntohs(eth_hdr->h_proto);
sys/dev/bnxt/bnxt_re/ib_verbs.c
4386
ntohs(vlan_hdr->h_vlan_TCI) |
sys/dev/bnxt/bnxt_re/qplib_fp.c
3171
smac[2] = ntohs(le16_to_cpu(hwcqe->src_mac[0]));
sys/dev/bnxt/bnxt_re/qplib_fp.c
3172
smac[1] = ntohs(le16_to_cpu(hwcqe->src_mac[1]));
sys/dev/bnxt/bnxt_re/qplib_fp.c
3173
smac[0] = ntohs(le16_to_cpu(hwcqe->src_mac[2]));
sys/dev/bxe/bxe.c
4838
proto = ntohs(eh->evl_proto);
sys/dev/bxe/bxe.c
4841
proto = ntohs(eh->evl_encap_proto);
sys/dev/bxe/bxe.c
4919
proto = ntohs(eh->evl_proto);
sys/dev/bxe/bxe.c
4922
proto = ntohs(eh->evl_encap_proto);
sys/dev/bxe/bxe.c
4987
pbd->tcp_pseudo_csum = ntohs(th->th_sum);
sys/dev/bxe/bxe.c
5016
pbd->tcp_pseudo_csum = ntohs(in_addword(uh->uh_sum, ~tmp_csum));
sys/dev/bxe/bxe.c
5060
pbd->ip_id = ntohs(ip->ip_id);
sys/dev/bxe/bxe.c
5062
ntohs(in_pseudo(ip->ip_src.s_addr,
sys/dev/bxe/bxe.c
5068
ntohs(in_pseudo(&ip6->ip6_src,
sys/dev/cas/if_cas.c
560
if (ntohs(ip->ip_len) < hlen)
sys/dev/cas/if_cas.c
562
if (ntohs(ip->ip_len) != pktlen)
sys/dev/ciss/ciss.c
3064
ccg->cylinders = ntohs(ld->cl_geometry.cylinders);
sys/dev/cxgb/cxgb_sge.c
2619
m->m_pkthdr.ether_vtag = ntohs(cpl->vlan);
sys/dev/cxgb/cxgb_sge.c
486
m->m_len = sizeof(*cpl) + ntohs(cpl->len);
sys/dev/cxgb/cxgb_sge.c
489
m->m_len = sizeof(*cpl) + ntohs(cpl->len);
sys/dev/cxgbe/crypto/t6_kern_tls.c
1156
if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/cxgbe/crypto/t6_kern_tls.c
1257
if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/cxgbe/crypto/t6_kern_tls.c
1352
plen = TLS_HEADER_LENGTH + ntohs(hdr->tls_length) - m_tls->m_epg_trllen;
sys/dev/cxgbe/crypto/t6_kern_tls.c
1427
if (tx_max_offset > TLS_HEADER_LENGTH + ntohs(hdr->tls_length) -
sys/dev/cxgbe/crypto/t6_kern_tls.c
1430
tx_max_offset = TLS_HEADER_LENGTH + ntohs(hdr->tls_length) -
sys/dev/cxgbe/crypto/t6_kern_tls.c
1532
if (first_wr || tlsp->prev_win != ntohs(tcp->th_win)) {
sys/dev/cxgbe/crypto/t6_kern_tls.c
1537
V_TCB_RCV_WND(ntohs(tcp->th_win)));
sys/dev/cxgbe/crypto/t6_kern_tls.c
1541
tlsp->prev_win = ntohs(tcp->th_win);
sys/dev/cxgbe/crypto/t6_kern_tls.c
1902
if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/cxgbe/crypto/t6_kern_tls.c
665
plen = ntohs(hdr->tls_length);
sys/dev/cxgbe/crypto/t6_kern_tls.c
719
plen = ntohs(hdr->tls_length);
sys/dev/cxgbe/crypto/t6_kern_tls.c
790
plen = TLS_HEADER_LENGTH + ntohs(hdr->tls_length) - m_tls->m_epg_trllen;
sys/dev/cxgbe/crypto/t6_kern_tls.c
917
if (ntohs(eh->ether_type) != ETHERTYPE_IP &&
sys/dev/cxgbe/crypto/t6_kern_tls.c
918
ntohs(eh->ether_type) != ETHERTYPE_IPV6) {
sys/dev/cxgbe/crypto/t6_kern_tls.c
926
if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/cxgbe/crypto/t7_kern_tls.c
1304
rlen = TLS_HEADER_LENGTH + ntohs(hdr->tls_length);
sys/dev/cxgbe/crypto/t7_kern_tls.c
2039
eh_type = ntohs(eh->ether_type);
sys/dev/cxgbe/crypto/t7_kern_tls.c
2043
eh_type = ntohs(evh->evl_proto);
sys/dev/cxgbe/crypto/t7_kern_tls.c
616
rlen = TLS_HEADER_LENGTH + ntohs(hdr->tls_length);
sys/dev/cxgbe/crypto/t7_kern_tls.c
803
eh_type = ntohs(eh->ether_type);
sys/dev/cxgbe/crypto/t7_kern_tls.c
807
eh_type = ntohs(evh->evl_proto);
sys/dev/cxgbe/iw_cxgbe/cm.c
1387
mpa->private_data_size = htons(ntohs(mpa->private_data_size) +
sys/dev/cxgbe/iw_cxgbe/cm.c
1483
mpa->private_data_size = htons(ntohs(mpa->private_data_size) +
sys/dev/cxgbe/iw_cxgbe/cm.c
1958
plen = ntohs(mpa->private_data_size);
sys/dev/cxgbe/iw_cxgbe/cm.c
2023
resp_ird = ntohs(mpa_v2_params->ird) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2025
resp_ord = ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2054
if (ntohs(mpa_v2_params->ird) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2058
if (ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2065
else if (ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2266
plen = ntohs(mpa->private_data_size);
sys/dev/cxgbe/iw_cxgbe/cm.c
2303
ep->ird = ntohs(mpa_v2_params->ird) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2307
ep->ord = ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2313
if (ntohs(mpa_v2_params->ird) & MPA_V2_PEER2PEER_MODEL)
sys/dev/cxgbe/iw_cxgbe/cm.c
2315
if (ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/iw_cxgbe/cm.c
2319
else if (ntohs(mpa_v2_params->ord) &
sys/dev/cxgbe/t4_sge.c
2808
eh_type = ntohs(eh->ether_type);
sys/dev/cxgbe/t4_sge.c
2812
eh_type = ntohs(evh->evl_proto);
sys/dev/cxgbe/t4_sge.c
2872
eh_type = ntohs(eh->ether_type);
sys/dev/cxgbe/t4_sge.c
2876
eh_type = ntohs(evh->evl_proto);
sys/dev/e1000/igb_txrx.c
103
__func__, ntohs(pi->ipi_etype));
sys/dev/ena/ena_datapath.c
749
etype = ntohs(eh->evl_proto);
sys/dev/ena/ena_datapath.c
752
etype = ntohs(eh->evl_encap_proto);
sys/dev/firewire/firewire.c
2203
ntohs(rfp->mode.wreqb.len));
sys/dev/firewire/firewire.c
2218
xfer->send.len = 16 + ntohs(rfp->mode.rreqb.len);
sys/dev/firewire/firewire.c
2222
ntohs(rfp->mode.rreqb.len));
sys/dev/firewire/firewire.c
2242
xfer->dst = ntohs(rfp->mode.hdr.src);
sys/dev/firewire/if_fwip.c
646
ntohs(destfw->sender_unicast_FIFO_hi);
sys/dev/firewire/sbp.c
1703
ntohs(sbp_status->orb_hi), ntohl(sbp_status->orb_lo));
sys/dev/firewire/sbp.c
1757
login_res->len = ntohs(login_res->len);
sys/dev/firewire/sbp.c
1758
login_res->id = ntohs(login_res->id);
sys/dev/firewire/sbp.c
1759
login_res->cmd_hi = ntohs(login_res->cmd_hi);
sys/dev/firewire/sbp.c
1768
ntohs(login_res->recon_hold));
sys/dev/firewire/sbp_targ.c
1030
pt->segment_len = ntohs(pt->segment_len);
sys/dev/firewire/sbp_targ.c
1033
pt->segment_base_high = ntohs(pt->segment_base_high);
sys/dev/fxp/if_fxp.c
1799
if (ntohs(ip->ip_len) < hlen)
sys/dev/fxp/if_fxp.c
1801
if (ntohs(ip->ip_len) != pktlen)
sys/dev/fxp/if_fxp.c
1970
ntohs(rfa->rfax_vlan_id);
sys/dev/gem/if_gem.c
487
if (ntohs(ip->ip_len) < hlen)
sys/dev/gem/if_gem.c
489
if (ntohs(ip->ip_len) != pktlen)
sys/dev/gve/gve_tx.c
665
is_ipv6 = ntohs(eh->ether_type) == ETHERTYPE_IPV6;
sys/dev/gve/gve_tx.c
675
} else if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/gve/gve_tx.c
886
return (ntohs(eh->ether_type) == ETHERTYPE_VLAN);
sys/dev/gve/gve_tx_dqo.c
357
if (ntohs(eh->ether_type) == ETHERTYPE_IPV6) {
sys/dev/gve/gve_tx_dqo.c
367
if (ntohs(eh->ether_type) == ETHERTYPE_IP) {
sys/dev/hyperv/netvsc/if_hn.c
4841
iplen = ntohs(ip->ip_len);
sys/dev/hyperv/netvsc/if_hn.c
4853
if (ntohs(ip->ip_off) & (IP_OFFMASK | IP_MF))
sys/dev/hyperv/netvsc/if_hn.c
4899
etype = ntohs(eh->ether_type);
sys/dev/hyperv/netvsc/if_hn.c
4907
etype = ntohs(evl->evl_proto);
sys/dev/hyperv/netvsc/if_hn.c
754
if (evl->evl_encap_proto == ntohs(ETHERTYPE_VLAN))
sys/dev/hyperv/netvsc/if_hn.c
815
if (evl->evl_encap_proto == ntohs(ETHERTYPE_VLAN))
sys/dev/hyperv/netvsc/if_hn.c
841
(ntohs(ip->ip_off) & IP_DF) == 0) {
sys/dev/ice/ice_osdep.h
309
#define NTOHS ntohs
sys/dev/igc/igc_txrx.c
143
__func__, ntohs(pi->ipi_etype));
sys/dev/irdma/irdma_cm.c
1111
ctrl_ord = ntohs(rtr_msg->ctrl_ord);
sys/dev/irdma/irdma_cm.c
1112
ctrl_ird = ntohs(rtr_msg->ctrl_ird);
sys/dev/irdma/irdma_cm.c
1183
priv_data_len = ntohs(mpa_frame->priv_data_len);
sys/dev/irdma/irdma_cm.c
1761
scope_id = ntohs(laddr6.__u6_addr.__u6_addr16[1]);
sys/dev/irdma/irdma_cm.c
3163
vtag = ntohs(ethh->evl_tag);
sys/dev/irdma/irdma_cm.c
3189
cm_info.loc_port = ntohs(tcph->th_dport);
sys/dev/irdma/irdma_cm.c
3190
cm_info.rem_port = ntohs(tcph->th_sport);
sys/dev/irdma/irdma_cm.c
3922
cm_info.loc_port = ntohs(laddr->sin_port);
sys/dev/irdma/irdma_cm.c
3923
cm_info.rem_port = ntohs(raddr->sin_port);
sys/dev/irdma/irdma_cm.c
3934
cm_info.loc_port = ntohs(laddr6->sin6_port);
sys/dev/irdma/irdma_cm.c
3935
cm_info.rem_port = ntohs(raddr6->sin6_port);
sys/dev/irdma/irdma_cm.c
4048
cm_info.loc_port = ntohs(laddr->sin_port);
sys/dev/irdma/irdma_cm.c
4063
cm_info.loc_port = ntohs(laddr6->sin6_port);
sys/dev/irdma/irdma_cm.c
848
tmp = ntohs(all_options->mss.mss);
sys/dev/irdma/irdma_cm.c
904
cm_node->tcp_cntxt.snd_wnd = ntohs(tcph->th_win)
sys/dev/irdma/irdma_utils.c
1375
loc_port = ntohs(tcph->th_dport);
sys/dev/irdma/irdma_utils.c
1376
rem_port = ntohs(tcph->th_sport);
sys/dev/irdma/irdma_utils.c
1515
buf->vlan_id = ntohs(((struct ether_vlan_header *)ethh)->evl_tag) &
sys/dev/irdma/irdma_utils.c
1528
pkt_len = ntohs(iph->ip_len);
sys/dev/irdma/irdma_utils.c
1531
pkt_len = ntohs(ip6h->ip6_plen) + iphlen;
sys/dev/irdma/osdep.h
59
#define IRDMA_NTOHS(a) ntohs(a)
sys/dev/iscsi/iscsi.c
1021
sense_len = ntohs(sense_len);
sys/dev/ixgbe/ixgbe_osdep.h
131
#define IXGBE_NTOHS(_i) ntohs(_i)
sys/dev/ixl/i40e_osdep.h
106
#define I40E_NTOHS(a) ntohs(a)
sys/dev/lge/if_lge.c
252
*ptr = ntohs(word);
sys/dev/mana/mana_en.c
699
if (eh->evl_encap_proto == ntohs(ETHERTYPE_VLAN)) {
sys/dev/mana/mana_en.c
700
etype = ntohs(eh->evl_proto);
sys/dev/mana/mana_en.c
703
etype = ntohs(eh->evl_encap_proto);
sys/dev/mana/mana_en.c
764
if (eh->evl_encap_proto == ntohs(ETHERTYPE_VLAN)) {
sys/dev/mana/mana_en.c
765
etype = ntohs(eh->evl_proto);
sys/dev/mana/mana_en.c
768
etype = ntohs(eh->evl_encap_proto);
sys/dev/mge/if_mge.c
1899
etype = ntohs(eh->evl_proto);
sys/dev/mge/if_mge.c
1903
etype = ntohs(eh->evl_encap_proto);
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
513
eth_type = ntohs(eh->evl_proto);
sys/dev/mlx4/mlx4_en/mlx4_en_tx.c
516
eth_type = ntohs(eh->evl_encap_proto);
sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c
126
ntohs(inp->inp_lport));
sys/dev/mlx5/mlx5_core/mlx5_fs_tcp.c
128
ntohs(inp->inp_fport));
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
165
eh_type = ntohs(eh->ether_type);
sys/dev/mlx5/mlx5_en/mlx5_en_rx.c
235
io.ih_len = htons(ntohs(ip4->ip_len) - sizeof(*ip4));
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
191
eth_type = ntohs(eh->evl_proto);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
194
eth_type = ntohs(eh->evl_encap_proto);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
253
eth_type = ntohs(eh->evl_proto);
sys/dev/mlx5/mlx5_en/mlx5_en_tx.c
256
eth_type = ntohs(eh->evl_encap_proto);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1866
first_vid, ntohs(ib_spec->eth.mask.vlan_tag));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1868
first_vid, ntohs(ib_spec->eth.val.vlan_tag));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1872
ntohs(ib_spec->eth.mask.vlan_tag) >> 12);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1875
ntohs(ib_spec->eth.val.vlan_tag) >> 12);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1879
ntohs(ib_spec->eth.mask.vlan_tag) >> 13);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1882
ntohs(ib_spec->eth.val.vlan_tag) >> 13);
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1885
ethertype, ntohs(ib_spec->eth.mask.ether_type));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1887
ethertype, ntohs(ib_spec->eth.val.ether_type));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1973
ntohs(ib_spec->tcp_udp.mask.src_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1975
ntohs(ib_spec->tcp_udp.val.src_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1978
ntohs(ib_spec->tcp_udp.mask.dst_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1980
ntohs(ib_spec->tcp_udp.val.dst_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1993
ntohs(ib_spec->tcp_udp.mask.src_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1995
ntohs(ib_spec->tcp_udp.val.src_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
1998
ntohs(ib_spec->tcp_udp.mask.dst_port));
sys/dev/mlx5/mlx5_ib/mlx5_ib_main.c
2000
ntohs(ib_spec->tcp_udp.val.dst_port));
sys/dev/msk/if_msk.c
3111
if (ntohs(ip->ip_len) < hlen)
sys/dev/msk/if_msk.c
3113
if (ntohs(ip->ip_len) != pktlen)
sys/dev/msk/if_msk.c
3589
sc_if->msk_vtag = ntohs(len);
sys/dev/msk/if_msk.c
3592
sc_if->msk_vtag = ntohs(len);
sys/dev/mxge/if_mxge.c
1728
etype = ntohs(eh->evl_proto);
sys/dev/mxge/if_mxge.c
1731
etype = ntohs(eh->evl_encap_proto);
sys/dev/mxge/if_mxge.c
2152
(int)ntohs(tx->req_list[i].length),
sys/dev/mxge/if_mxge.c
2153
(int)ntohs(tx->req_list[i].pseudo_hdr_offset),
sys/dev/mxge/if_mxge.c
2470
etype = ntohs(eh->ether_type);
sys/dev/mxge/if_mxge.c
2480
htonl(ntohs(csum) + ntohs(ip->ip_len) -
sys/dev/mxge/if_mxge.c
2513
*csum = ntohs(*csum);
sys/dev/mxge/if_mxge.c
2526
m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
sys/dev/mxge/if_mxge.c
2534
VLAN_TAG_VALUE(mtag) = ntohs(evl->evl_tag);
sys/dev/mxge/if_mxge.c
2699
length = ntohs(rx_done->entry[rx_done->idx].length);
sys/dev/neta/if_mvneta.c
2800
switch (ntohs(eh->ether_type)) {
sys/dev/neta/if_mvneta.c
2807
if (ntohs(evh->evl_proto) == ETHERTYPE_VLAN)
sys/dev/netmap/if_ptnet.c
1327
m->m_pkthdr.ether_vtag = ntohs(evh->evl_tag);
sys/dev/ntb/if_ntb/if_ntb.c
450
switch (ntohs(proto)) {
sys/dev/oce/oce_if.c
1294
etype = ntohs(eh->evl_proto);
sys/dev/oce/oce_if.c
1297
etype = ntohs(eh->evl_encap_proto);
sys/dev/oce/oce_if.c
965
is_arp_allowed_on_bmc(sc, ntohs(eh->ether_type))) {
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1024
mpa_ord = ntohs(mpa_v2_params->ord);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1025
mpa_ird = ntohs(mpa_v2_params->ird);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1136
mpa_ird = ntohs(mpa_v2_params->ird);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
1137
mpa_ord = ntohs(mpa_v2_params->ord);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2021
eth_type = ntohs(ethh->h_proto);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2025
cm_info->vlan = ntohs(vethh->h_vlan_TCI) & VLAN_VID_MASK;
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2026
eth_type = ntohs(vethh->h_vlan_encapsulated_proto);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2064
*payload_len = ntohs(iph->tot_len) - ip_hlen;
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2085
*payload_len = ntohs(ip6h->payload_len);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2101
cm_info->local_port = ntohs(tcph->dest);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2102
cm_info->remote_port = ntohs(tcph->source);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2184
mpa_len = ntohs(*((u16 *)(mpa_data)));
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2510
eth_type = ntohs(ethh->h_proto);
sys/dev/qlnx/qlnxe/ecore_iwarp.c
2514
eth_type = ntohs(vethh->h_vlan_encapsulated_proto);
sys/dev/qlnx/qlnxe/ecore_tcp_ip.h
55
#ifndef ntohs
sys/dev/qlnx/qlnxe/qlnx_os.c
3021
etype = ntohs(eh->evl_proto);
sys/dev/qlnx/qlnxe/qlnx_os.c
3024
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlnx/qlnxr/qlnxr_cm.c
134
ntohs((u16)data->opaque_data_1);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
6125
in_params.cm_info.remote_port = ntohs(raddr->sin_port);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
6126
in_params.cm_info.local_port = ntohs(laddr->sin_port);
sys/dev/qlnx/qlnxr/qlnxr_verbs.c
6220
iparams.port = ntohs(laddr->sin_port);
sys/dev/qlxgb/qla_hw.c
724
etype = ntohs(eh->evl_proto);
sys/dev/qlxgb/qla_hw.c
727
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxgb/qla_hw.c
845
etype = ntohs(eh->evl_proto);
sys/dev/qlxgb/qla_hw.c
848
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxgb/qla_isr.c
124
mp->m_pkthdr.ether_vtag = ntohs(eh->evl_tag);
sys/dev/qlxgbe/ql_hw.c
2270
etype = ntohs(eh->evl_proto);
sys/dev/qlxgbe/ql_hw.c
2273
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxgbe/ql_hw.c
2397
etype = ntohs(eh->evl_proto);
sys/dev/qlxgbe/ql_hw.c
2400
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxgbe/ql_hw.c
4221
etype = ntohs(eh->evl_proto);
sys/dev/qlxgbe/ql_hw.c
4224
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxgbe/ql_isr.c
144
mpf->m_pkthdr.ether_vtag = ntohs(eh->evl_tag);
sys/dev/qlxgbe/ql_isr.c
292
mpf->m_pkthdr.ether_vtag = ntohs(eh->evl_tag);
sys/dev/qlxgbe/ql_isr.c
301
etype = ntohs(eh->evl_proto);
sys/dev/qlxgbe/ql_isr.c
303
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxge/qls_hw.c
544
etype = ntohs(eh->evl_proto);
sys/dev/qlxge/qls_hw.c
547
etype = ntohs(eh->evl_encap_proto);
sys/dev/qlxge/qls_isr.c
177
mp->m_pkthdr.ether_vtag = ntohs(eh->evl_tag);
sys/dev/re/if_re.c
901
ntohs(eh->ether_type) != ETHERTYPE_IP) {
sys/dev/re/if_re.c
907
ntohs(eh->ether_type));
sys/dev/rge/if_rge.c
2276
ntohs(extsts & RGE_RDEXTSTS_VLAN_MASK);
sys/dev/rl/if_rl.c
348
*ptr = ntohs(word);
sys/dev/sfxge/sfxge_rx.c
500
iph->ip_len = ntohs(iph->ip_len);
sys/dev/sfxge/sfxge_rx.c
503
iph->ip6_plen = ntohs(iph->ip6_plen);
sys/dev/sfxge/sfxge_rx.c
524
pkt_length = ntohs(iph->ip_len) + (char *) iph - eh;
sys/dev/sfxge/sfxge_rx.c
528
pkt_length = ntohs(iph->ip6_plen) + (char *) th - eh;
sys/dev/sfxge/sfxge_rx.c
678
l2_id = EVL_VLANOFTAG(ntohs(veh->evl_tag)) |
sys/dev/sfxge/sfxge_tx.c
1068
tso->packet_id = ntohs(TSO_MBUF_PACKETID(mbuf));
sys/dev/sfxge/sfxge_tx.c
1077
tso->packet_id = ntohs(tso_iph(tso)->ip_id);
sys/dev/sis/if_sis.c
339
*ptr = ntohs(word);
sys/dev/sk/if_sk.c
2579
if (ntohs(ip->ip_len) < hlen)
sys/dev/sk/if_sk.c
2581
if (ntohs(ip->ip_len) != pktlen)
sys/dev/usb/net/if_muge.c
1301
ntohs(0xffff);
sys/dev/usb/net/if_smsc.c
1060
m->m_pkthdr.csum_data = ntohs(m->m_pkthdr.csum_data);
sys/dev/vge/if_vge.c
293
*ptr = ntohs(word);
sys/dev/virtio/network/if_vtnet.c
1881
etype = ntohs(eh->ether_type);
sys/dev/virtio/network/if_vtnet.c
1886
etype = ntohs(evh->evl_proto);
sys/dev/virtio/network/if_vtnet.c
2423
*etype = ntohs(evh->evl_proto);
sys/dev/virtio/network/if_vtnet.c
2428
*etype = ntohs(evh->evl_encap_proto);
sys/dev/virtio/network/if_vtnet.c
4102
m->m_pkthdr.ether_vtag = ntohs(evh->evl_tag);
sys/dev/virtio/network/virtio_net.h
401
eth_type = ntohs(eh->ether_type);
sys/dev/virtio/network/virtio_net.h
405
eth_type = ntohs(evh->evl_proto);
sys/dev/virtio/network/virtio_net.h
429
*etype = ntohs(evh->evl_proto);
sys/dev/virtio/network/virtio_net.h
434
*etype = ntohs(evh->evl_encap_proto);
sys/dev/vnic/nicvf_queues.c
1778
etype = ntohs(eh->evl_proto);
sys/dev/vnic/nicvf_queues.c
1781
etype = ntohs(eh->evl_encap_proto);
sys/dev/wg/if_wg.c
1649
len = ntohs(ip->ip_len);
sys/dev/wg/if_wg.c
1655
len = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/dev/wg/if_wg.c
2297
*etp = ntohs(eh->ether_type);
sys/dev/wg/if_wg.c
902
port = ntohs(bound_sin.sin_port);
sys/dev/wg/if_wg.c
919
port = ntohs(bound_sin6.sin6_port);
sys/dev/xen/netback/netback.c
2146
ether_type = ntohs(eh->ether_type);
sys/dev/xen/netback/netback.c
2161
size_t tcplen = ntohs(iph->ip_len) - sizeof(struct ip);
sys/dev/xen/netback/netback.c
2166
sizeof(struct ether_header) + ntohs(iph->ip_len),
sys/dev/xen/netback/netback.c
2172
size_t udplen = ntohs(iph->ip_len) - sizeof(struct ip);
sys/dev/xen/netback/netback.c
2177
sizeof(struct ether_header) + ntohs(iph->ip_len),
sys/dev/xl/if_xl.c
582
*ptr = ntohs(word);
sys/fs/nfsserver/nfs_nfsdkrpc.c
191
port = ntohs(sin->sin_port);
sys/fs/nfsserver/nfs_nfsdport.c
3756
ntohs(saddr->sin_port) >= IPPORT_RESERVED) ||
sys/fs/nfsserver/nfs_nfsdport.c
3758
ntohs(saddr6->sin6_port) >= IPPORT_RESERVED))) {
sys/kern/uipc_ktls.c
1266
record_len = sizeof(hdr) + ntohs(hdr.tls_length);
sys/kern/uipc_ktls.c
2255
if (sb->sb_tlscc < sizeof(hdr) + ntohs(hdr.tls_length)) {
sys/kern/uipc_ktls.c
2558
tls_len = sizeof(*hdr) + ntohs(hdr->tls_length);
sys/kern/uipc_mbufhash.c
170
etype = ntohs(eh->ether_type);
sys/kern/uipc_mbufhash.c
186
etype = ntohs(vlan->evl_proto);
sys/kern/uipc_mbufhash.c
204
etype = ntohs(ibh->ib_protocol);
sys/kern/uipc_socket.c
1143
ntohs(sotoinpcb(head)->inp_inc.inc_lport),
sys/net/altq/altq_red.c
486
sum = ~ntohs(ip->ip_sum) & 0xffff;
sys/net/altq/altq_subr.c
1128
ip_off = ntohs(ip->ip_off);
sys/net/altq/altq_subr.c
1869
if ((ntohs(ip->ip_off) & IP_MF) == 0)
sys/net/altq/altq_subr.c
824
sum = ~ntohs(ip->ip_sum) & 0xffff;
sys/net/bpf_filter.c
51
#define EXTRACT_SHORT(p) ((u_int16_t)ntohs(*(u_int16_t *)p))
sys/net/bridgestp.c
275
(((uint64_t)ntohs(cpdu->cbu_rootpri)) << 48) |
sys/net/bridgestp.c
284
(((uint64_t)ntohs(cpdu->cbu_bridgepri)) << 48) |
sys/net/bridgestp.c
293
cu->cu_message_age = ntohs(cpdu->cbu_messageage);
sys/net/bridgestp.c
294
cu->cu_max_age = ntohs(cpdu->cbu_maxage);
sys/net/bridgestp.c
295
cu->cu_hello_time = ntohs(cpdu->cbu_hellotime);
sys/net/bridgestp.c
296
cu->cu_forward_delay = ntohs(cpdu->cbu_forwarddelay);
sys/net/bridgestp.c
297
cu->cu_pv.pv_dport_id = ntohs(cpdu->cbu_portid);
sys/net/bridgestp.c
472
len = ntohs(eh->ether_type);
sys/net/debugnet.c
509
if (ntohs(udp->uh_dport) != pcb->dp_client_port) {
sys/net/debugnet.c
515
ulen = ntohs(udp->uh_ulen);
sys/net/debugnet.c
521
sport = ntohs(udp->uh_sport);
sys/net/debugnet.c
574
etype = ntohs(eh->ether_type);
sys/net/debugnet_inet.c
153
ip->ip_len = ntohs(ip->ip_len);
sys/net/debugnet_inet.c
173
ip->ip_off = ntohs(ip->ip_off);
sys/net/debugnet_inet.c
300
if (ntohs(ah->ar_hrd) != ARPHRD_ETHER) {
sys/net/debugnet_inet.c
305
if (ntohs(ah->ar_pro) != ETHERTYPE_IP) {
sys/net/debugnet_inet.c
307
ntohs(ah->ar_pro));
sys/net/debugnet_inet.c
321
op = ntohs(ah->ar_op);
sys/net/ieee8023ad_lacp.c
2049
ntohs(mdu->mdu_info.mi_rq_port), mdu->mdu_info.mi_rq_system,
sys/net/ieee8023ad_lacp.c
2136
ntohs(sysid->lsi_prio),
sys/net/ieee8023ad_lacp.c
2146
ntohs(portid->lpi_prio),
sys/net/ieee8023ad_lacp.c
2147
ntohs(portid->lpi_portno));
sys/net/ieee8023ad_lacp.c
2160
ntohs(peer->lip_key),
sys/net/ieee8023ad_lacp.c
2228
printf("maxdelay=%d\n", ntohs(du->ldu_collector.lci_maxdelay));
sys/net/ieee8023ad_lacp.c
449
ntohs(mdu->mdu_info.mi_rq_port), mdu->mdu_info.mi_rq_system, ":",
sys/net/ieee8023ad_lacp.c
622
req->actor_prio = ntohs(la->la_actor.lip_systemid.lsi_prio);
sys/net/ieee8023ad_lacp.c
625
req->actor_key = ntohs(la->la_actor.lip_key);
sys/net/ieee8023ad_lacp.c
626
req->actor_portprio = ntohs(la->la_actor.lip_portid.lpi_prio);
sys/net/ieee8023ad_lacp.c
627
req->actor_portno = ntohs(la->la_actor.lip_portid.lpi_portno);
sys/net/ieee8023ad_lacp.c
630
req->partner_prio = ntohs(la->la_partner.lip_systemid.lsi_prio);
sys/net/ieee8023ad_lacp.c
633
req->partner_key = ntohs(la->la_partner.lip_key);
sys/net/ieee8023ad_lacp.c
634
req->partner_portprio = ntohs(la->la_partner.lip_portid.lpi_prio);
sys/net/ieee8023ad_lacp.c
635
req->partner_portno = ntohs(la->la_partner.lip_portid.lpi_portno);
sys/net/ieee8023ad_lacp.c
649
req->actor_prio = ntohs(lp->lp_actor.lip_systemid.lsi_prio);
sys/net/ieee8023ad_lacp.c
652
req->actor_key = ntohs(lp->lp_actor.lip_key);
sys/net/ieee8023ad_lacp.c
653
req->actor_portprio = ntohs(lp->lp_actor.lip_portid.lpi_prio);
sys/net/ieee8023ad_lacp.c
654
req->actor_portno = ntohs(lp->lp_actor.lip_portid.lpi_portno);
sys/net/ieee8023ad_lacp.c
657
req->partner_prio = ntohs(lp->lp_partner.lip_systemid.lsi_prio);
sys/net/ieee8023ad_lacp.c
660
req->partner_key = ntohs(lp->lp_partner.lip_key);
sys/net/ieee8023ad_lacp.c
661
req->partner_portprio = ntohs(lp->lp_partner.lip_portid.lpi_prio);
sys/net/ieee8023ad_lacp.c
662
req->partner_portno = ntohs(lp->lp_partner.lip_portid.lpi_portno);
sys/net/if_bridge.c
3305
proto = ntohs(eh->ether_type);
sys/net/if_bridge.c
3972
ether_type = ntohs(eh1->ether_type);
sys/net/if_bridge.c
4264
len = ntohs(ip->ip_len);
sys/net/if_epair.c
215
switch (ntohs(eh->ether_type)) {
sys/net/if_ethersubr.c
170
switch(ntohs(ah->ar_op)) {
sys/net/if_ethersubr.c
486
switch (ntohs(eh->ether_type)) {
sys/net/if_ethersubr.c
541
etype = ntohs(eh->ether_type);
sys/net/if_ethersubr.c
628
m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
sys/net/if_ethersubr.c
870
ether_type = ntohs(eh->ether_type);
sys/net/if_fwsubr.c
794
ntohs(llc->sender_unicast_FIFO_hi),
sys/net/if_gre.c
755
flags = ntohs(gh->gre_flags);
sys/net/if_gre.c
862
flags = ntohs(gh->gre_flags);
sys/net/if_gre.c
990
uh->uh_sport = htons(ntohs(uh->uh_sport) %
sys/net/if_infiniband.c
237
switch (ntohs(ah->ar_op)) {
sys/net/if_lagg.c
2707
etype = ntohs(eh->ether_type);
sys/net/if_ovpn.c
2609
crp->crp_payload_length = ntohs(uhdr->uh_ulen) -
sys/net/if_stf.c
173
#define IN6_IS_ADDR_6TO4(x) (ntohs((x)->s6_addr16[0]) == 0x2002)
sys/net/if_tuntap.c
1918
switch (ntohs(eh->ether_type)) {
sys/net/if_vlan.c
1588
tag = ntohs(evl->evl_tag);
sys/net/if_vxlan.c
1615
ntohs(sc->vxl_src_addr.in6.sin6_port),
sys/net/if_vxlan.c
1616
ntohs(sc->vxl_dst_addr.in6.sin6_port),
sys/net/if_vxlan.c
1623
ntohs(sc->vxl_src_addr.in6.sin6_port)) {
sys/net/if_vxlan.c
1626
ntohs(sc->vxl_src_addr.in6.sin6_port));
sys/net/if_vxlan.c
1631
V_zero_checksum_port = ntohs(sc->vxl_src_addr.in6.sin6_port);
sys/net/if_vxlan.c
1775
ntohs(sc->vxl_src_addr.in4.sin_port));
sys/net/if_vxlan.c
1838
ntohs(sc->vxl_src_addr.in4.sin_port));
sys/net/if_vxlan.c
2722
} else if (ntohs(dstport) != V_zero_checksum_port) {
sys/net/iflib.c
3147
pi->ipi_etype = ntohs(eh->evl_proto);
sys/net/iflib.c
3150
pi->ipi_etype = ntohs(eh->evl_encap_proto);
sys/net/slcompress.c
123
(f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
sys/net/slcompress.c
126
(f) = htons(ntohs(f) + (u_int32_t)*cp++); \
sys/net/slcompress.c
275
deltaS = ntohs(th->th_urp);
sys/net/slcompress.c
285
deltaS = (u_int16_t)(ntohs(th->th_win) - ntohs(oth->th_win));
sys/net/slcompress.c
318
ntohs(cs->cs_ip.ip_len) == hlen)
sys/net/slcompress.c
333
deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
sys/net/slcompress.c
341
if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
sys/net/slcompress.c
349
deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
sys/net/slcompress.c
360
deltaA = ntohs(th->th_sum);
sys/net/slcompress.c
526
u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
sys/net/slcompress.c
533
th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
sys/net/slcompress.c
554
cs->cs_ip.ip_id = htons(ntohs(cs->cs_ip.ip_id) + 1);
sys/net80211/ieee80211_input.c
411
*framelen = ntohs(eh->ether_type) /* encap'd frame size */
sys/net80211/ieee80211_output.c
1262
switch (ntohs(eh->ether_type)) {
sys/netgraph/netflow/netflow.c
679
plen = ntohs(ip->ip_len);
sys/netgraph/netflow/netflow.c
804
plen = ntohs(ip6->ip6_plen) + sizeof(struct ip6_hdr);
sys/netgraph/netflow/netflow_v9.c
423
m_append(m, ntohs(fl->length), (void *)fl);
sys/netgraph/netflow/ng_netflow.c
706
etype = ntohs(eh->ether_type);
sys/netgraph/netflow/ng_netflow.c
736
etype = ntohs(evh->evl_proto);
sys/netgraph/ng_checksum.c
321
plen = ntohs(ip4->ip_len);
sys/netgraph/ng_checksum.c
432
plen = ntohs(ip6->ip6_plen) + hlen;
sys/netgraph/ng_checksum.c
586
etype = ntohs(eh->ether_type);
sys/netgraph/ng_checksum.c
597
etype = ntohs(vh->etype);
sys/netgraph/ng_cisco.c
470
switch (ntohs(h->protocol)) {
sys/netgraph/ng_ksocket.c
422
(u_int)ntohs(sin->sin_port));
sys/netgraph/ng_ksocket.c
441
(u_int)ntohs(sin6->sin6_port));
sys/netgraph/ng_nat.c
800
switch (ntohs(eh->ether_type)) {
sys/netgraph/ng_nat.c
821
uint16_t ip_len = ntohs(ip->ip_len);
sys/netgraph/ng_nat.c
858
ip_len = ntohs(ip->ip_len);
sys/netgraph/ng_patch.c
408
val.v2 = ntohs(val.v2);
sys/netgraph/ng_patch.c
592
etype = ntohs(eh->ether_type);
sys/netgraph/ng_patch.c
603
etype = ntohs(vh->etype);
sys/netgraph/ng_pppoe.c
1327
tlen = min(NG_HOOKSIZ - 1, ntohs(tag->tag_len));
sys/netgraph/ng_pppoe.c
1370
maxp->data = ntohs(((const struct maxptag *)tag)->data);
sys/netgraph/ng_pppoe.c
1391
tlen = min(PPPOE_PADM_VALUE_SIZE - 1, ntohs(tag->tag_len));
sys/netgraph/ng_pppoe.c
1414
tlen = min(PPPOE_PADM_VALUE_SIZE - 1, ntohs(tag->tag_len));
sys/netgraph/ng_pppoe.c
1610
length = ntohs(wh->ph.length);
sys/netgraph/ng_pppoe.c
1655
length = ntohs(wh->ph.length);
sys/netgraph/ng_pppoe.c
1682
ntohs(tag->tag_len) == 0)
sys/netgraph/ng_pppoe.c
1781
(ntohs(utag->tag_len) != sizeof(sp))) {
sys/netgraph/ng_pppoe.c
1878
sp->Session_ID = ntohs(wh->ph.sid);
sys/netgraph/ng_pppoe.c
2184
ptn = (((const char *)(pt + 1)) + ntohs(pt->tag_len));
sys/netgraph/ng_pppoe.c
331
+ ntohs(ph->length));
sys/netgraph/ng_pppoe.c
353
ptn = (((const char *)(pt + 1)) + ntohs(pt->tag_len));
sys/netgraph/ng_pppoe.c
425
tlen = ntohs((*tag)->tag_len) + sizeof(**tag);
sys/netgraph/ng_pppoe.c
471
if (neg->service_len != ntohs(tag->tag_len))
sys/netgraph/ng_pppoe.c
475
ntohs(tag->tag_len)) == 0)
sys/netgraph/ng_pppoe.c
598
uint16_t session = ntohs(wh->ph.sid);
sys/netgraph/ng_pppoe.c
632
if (sp->neg->host_uniq_len == ntohs(tag->tag_len) &&
sys/netgraph/ng_rfc1490.c
339
switch_on_etype: etype = ntohs(*((const u_int16_t *)ptr));
sys/netgraph/ng_vlan.c
462
(*((uint16_t *)resp->data)) = ntohs(priv->encap_proto);
sys/netgraph/ng_vlan.c
560
vid = EVL_VLANOFTAG(ntohs(evl->evl_tag));
sys/netgraph/ng_vlan.c
580
m->m_pkthdr.ether_vtag = ntohs(evl->evl_tag);
sys/netgraph/ng_vlan_rotate.c
413
switch (ntohs(evsh->vlan_stack[vlans].proto)) {
sys/netinet/if_ether.c
681
switch (ntohs(ar->ar_hrd)) {
sys/netinet/if_ether.c
709
"%s\n", ntohs(ar->ar_hrd), if_name(ifp));
sys/netinet/if_ether.c
723
switch (ntohs(ar->ar_pro)) {
sys/netinet/if_ether.c
822
op = ntohs(ah->ar_op);
sys/netinet/igmp.c
1038
nsrc = ntohs(igmpv3->igmp_numsrc);
sys/netinet/igmp.c
1186
nsrc = ntohs(igmpv3->igmp_numsrc);
sys/netinet/igmp.c
1491
igmplen = ntohs(ip->ip_len) - iphlen;
sys/netinet/igmp.c
1589
nsrc = ntohs(igmpv3->igmp_numsrc);
sys/netinet/in.h
110
uint16_t ntohs(uint16_t);
sys/netinet/in_pcb.c
3053
ntohs(inc->inc_lport));
sys/netinet/in_pcb.c
3056
ntohs(inc->inc_fport));
sys/netinet/in_pcb.c
443
ntohs(grp->il_lport));
sys/netinet/in_pcb.c
960
if (ntohs(lport) <= V_ipport_reservedhigh &&
sys/netinet/in_pcb.c
961
ntohs(lport) >= V_ipport_reservedlow &&
sys/netinet/in_pcb.h
601
((IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
sys/netinet/in_pcb.h
603
((IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport))) & (mask))
sys/netinet/in_pcb.h
606
((V_in_pcbhashseed ^ ntohs(lport)) & (mask))
sys/netinet/in_pcb.h
609
(IN_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
sys/netinet/in_pcb.h
611
(IN6_ADDR_JHASH32(faddr) ^ ntohs((lport) ^ (fport)))
sys/netinet/in_pcb.h
613
#define INP_PCBPORTHASH(lport, mask) (ntohs((lport)) & (mask))
sys/netinet/ip_carp.c
1005
if (ntohs(vh->vrrp_max_adver_int) < sc->sc_vrrp_adv_inter ||
sys/netinet/ip_carp.c
1019
if (V_carp_preempt && (ntohs(vh->vrrp_max_adver_int) > sc->sc_vrrp_adv_inter
sys/netinet/ip_carp.c
544
totlen = ntohs(ip->ip_len);
sys/netinet/ip_carp.c
709
phdrcksum = in6_cksum_pseudo(ip6, ntohs(ip6->ip6_plen),
sys/netinet/ip_carp.c
712
ntohs(ip6->ip6_plen), phdrcksum);
sys/netinet/ip_carp.c
994
sc->sc_vrrp_master_inter = ntohs(vh->vrrp_max_adver_int);
sys/netinet/ip_divert.c
449
if (((u_short)ntohs(ip->ip_len) > m->m_pkthdr.len)) {
sys/netinet/ip_divert.c
462
if (((u_short)ntohs(ip6->ip6_plen) > m->m_pkthdr.len)) {
sys/netinet/ip_fastfwd.c
458
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_fastfwd.c
459
ip_off = ntohs(ip->ip_off);
sys/netinet/ip_icmp.c
1014
icp->icmp_cksum = in_cksum(m, ntohs(ip->ip_len) - hlen);
sys/netinet/ip_icmp.c
274
if (ntohs(oip->ip_len) < oiphlen + tcphlen)
sys/netinet/ip_icmp.c
283
ntohs(oip->ip_len) - oiphlen));
sys/netinet/ip_icmp.c
288
if (ntohs(oip->ip_len) < oiphlen + sizeof(struct sctphdr))
sys/netinet/ip_icmp.c
298
min(V_icmp_quotelen, ntohs(oip->ip_len) - oiphlen));
sys/netinet/ip_icmp.c
301
ntohs(oip->ip_len) >= oiphlen +
sys/netinet/ip_icmp.c
314
min(V_icmp_quotelen, ntohs(oip->ip_len) -
sys/netinet/ip_icmp.c
319
stdreply: icmpelen = max(8, min(V_icmp_quotelen, ntohs(oip->ip_len) -
sys/netinet/ip_icmp.c
464
int icmplen = ntohs(ip->ip_len) - *offp;
sys/netinet/ip_input.c
1007
mcopy->m_len = min(ntohs(ip->ip_len), M_TRAILINGSPACE(mcopy));
sys/netinet/ip_input.c
1115
mtu = ip_next_mtu(ntohs(ip->ip_len), 0);
sys/netinet/ip_input.c
484
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_input.c
553
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_mroute.c
1625
int plen = ntohs(ip->ip_len);
sys/netinet/ip_mroute.c
2416
if (ntohs(ip->ip_len) <= mtu) {
sys/netinet/ip_mroute.c
2439
int len = ntohs(ip->ip_len);
sys/netinet/ip_mroute.c
2493
int len = ntohs(ip->ip_len);
sys/netinet/ip_mroute.c
2585
int datalen = ntohs(ip->ip_len) - iphlen;
sys/netinet/ip_mroute.c
2702
ntohs(encap_ip->ip_len));
sys/netinet/ip_mroute.c
2763
PIMSTAT_ADD(pims_rcv_registers_bytes, ntohs(encap_ip->ip_len));
sys/netinet/ip_options.c
489
ip->ip_len = htons(ntohs(ip->ip_len) - olen);
sys/netinet/ip_options.c
512
if (optlen + ntohs(ip->ip_len) > IP_MAXPACKET) {
sys/netinet/ip_options.c
547
ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
sys/netinet/ip_output.c
1062
cklen = ntohs(cklen);
sys/netinet/ip_output.c
1065
cklen = ntohs(uh->uh_ulen);
sys/netinet/ip_output.c
1071
cklen = ntohs(ip->ip_len) - (ip->ip_hl << 2);
sys/netinet/ip_output.c
364
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_output.c
365
ip_off = ntohs(ip->ip_off);
sys/netinet/ip_output.c
714
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_output.c
890
ip_len = ntohs(ip->ip_len);
sys/netinet/ip_output.c
891
ip_off = ntohs(ip->ip_off);
sys/netinet/ip_reass.c
236
ip->ip_len = htons(ntohs(ip->ip_len) - hlen);
sys/netinet/ip_reass.c
243
((ip->ip_off & htons(IP_MF)) && (ntohs(ip->ip_len) & 0x7) != 0)) {
sys/netinet/ip_reass.c
253
ip->ip_off = htons(ntohs(ip->ip_off) << 3);
sys/netinet/ip_reass.c
258
if (ntohs(ip->ip_len) + ntohs(ip->ip_off) > IP_MAXPACKET) {
sys/netinet/ip_reass.c
337
fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
sys/netinet/ip_reass.c
353
i = ntohs(ip->ip_off) + ntohs(ip->ip_len);
sys/netinet/ip_reass.c
361
fp->ipq_maxoff = ntohs(ip->ip_off) + ntohs(ip->ip_len);
sys/netinet/ip_reass.c
391
if (ntohs(GETIP(q)->ip_off) > ntohs(ip->ip_off))
sys/netinet/ip_reass.c
404
i = ntohs(GETIP(p)->ip_off) + ntohs(GETIP(p)->ip_len) -
sys/netinet/ip_reass.c
405
ntohs(ip->ip_off);
sys/netinet/ip_reass.c
407
if (i >= ntohs(ip->ip_len))
sys/netinet/ip_reass.c
411
ip->ip_off = htons(ntohs(ip->ip_off) + i);
sys/netinet/ip_reass.c
412
ip->ip_len = htons(ntohs(ip->ip_len) - i);
sys/netinet/ip_reass.c
425
for (; q != NULL && ntohs(ip->ip_off) + ntohs(ip->ip_len) >
sys/netinet/ip_reass.c
426
ntohs(GETIP(q)->ip_off); q = nq) {
sys/netinet/ip_reass.c
427
i = (ntohs(ip->ip_off) + ntohs(ip->ip_len)) -
sys/netinet/ip_reass.c
428
ntohs(GETIP(q)->ip_off);
sys/netinet/ip_reass.c
429
if (i < ntohs(GETIP(q)->ip_len)) {
sys/netinet/ip_reass.c
430
GETIP(q)->ip_len = htons(ntohs(GETIP(q)->ip_len) - i);
sys/netinet/ip_reass.c
431
GETIP(q)->ip_off = htons(ntohs(GETIP(q)->ip_off) + i);
sys/netinet/ip_reass.c
456
if (ntohs(GETIP(q)->ip_off) != next) {
sys/netinet/ip_reass.c
461
next += ntohs(GETIP(q)->ip_len);
sys/netinet/libalias/alias.c
1097
dlen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
sys/netinet/libalias/alias.c
1363
if (ntohs(pip->ip_len) > maxpacketsize
sys/netinet/libalias/alias.c
1493
if (ntohs(pip->ip_len) > maxpacketsize
sys/netinet/libalias/alias.c
1594
if (ntohs(pip->ip_len) > maxpacketsize
sys/netinet/libalias/alias.c
446
dlen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
sys/netinet/libalias/alias.c
737
#define MF_ISSET(_pip) (ntohs((_pip)->ip_off) & IP_MF)
sys/netinet/libalias/alias.c
738
#define FRAG_NO_HDR(_pip) (ntohs((_pip)->ip_off) & IP_OFFMASK)
sys/netinet/libalias/alias.c
749
dlen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
sys/netinet/libalias/alias.c
753
if (!MF_ISSET(pip) && dlen < ntohs(ud->uh_ulen))
sys/netinet/libalias/alias.c
964
dlen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
sys/netinet/libalias/alias_db.c
1779
tlen = ntohs(ip_len);
sys/netinet/libalias/alias_db.c
198
return ntohs(port);
sys/netinet/libalias/alias_db.c
2471
GetOriginalAddress(lnk), ntohs(GetOriginalPort(lnk)),
sys/netinet/libalias/alias_db.c
2472
GetDestAddress(lnk), ntohs(GetDestPort(lnk)));
sys/netinet/libalias/alias_db.c
2479
GetDestAddress(lnk), ntohs(GetDestPort(lnk)),
sys/netinet/libalias/alias_db.c
2480
GetOriginalAddress(lnk), ntohs(GetOriginalPort(lnk)));
sys/netinet/libalias/alias_db.c
422
u_short port_j = ntohs(port) + j;
sys/netinet/libalias/alias_dummy.c
76
if (ntohs(*ah->dport) == 123 || ntohs(*ah->sport) == 456)
sys/netinet/libalias/alias_ftp.c
113
if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER ||
sys/netinet/libalias/alias_ftp.c
114
ntohs(*ah->sport) == FTP_CONTROL_PORT_NUMBER)
sys/netinet/libalias/alias_ftp.c
124
if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER ||
sys/netinet/libalias/alias_ftp.c
125
ntohs(*ah->sport) == FTP_CONTROL_PORT_NUMBER)
sys/netinet/libalias/alias_ftp.c
231
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_ftp.c
246
if (ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER) {
sys/netinet/libalias/alias_ftp.c
269
tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may have grown */
sys/netinet/libalias/alias_ftp.c
290
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_ftp.c
303
ntohs(tc->th_dport) == FTP_CONTROL_PORT_NUMBER &&
sys/netinet/libalias/alias_ftp.c
318
tlen = ntohs(pip->ip_len); /* recalc tlen, pkt may
sys/netinet/libalias/alias_ftp.c
665
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_ftp.c
710
a1, a2, a3, a4, ntohs(alias_port));
sys/netinet/libalias/alias_ftp.c
715
ntohs(alias_port));
sys/netinet/libalias/alias_irc.c
100
if (ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_1
sys/netinet/libalias/alias_irc.c
101
|| ntohs(*ah->dport) == IRC_CONTROL_PORT_NUMBER_2)
sys/netinet/libalias/alias_irc.c
180
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_nbt.c
103
if (ntohs(*ah->dport) == NETBIOS_NS_PORT_NUMBER
sys/netinet/libalias/alias_nbt.c
104
|| ntohs(*ah->sport) == NETBIOS_NS_PORT_NUMBER)
sys/netinet/libalias/alias_nbt.c
347
pmax = (char *)uh + ntohs(uh->uh_ulen);
sys/netinet/libalias/alias_nbt.c
377
ntohs(ndh->source_port));
sys/netinet/libalias/alias_nbt.c
398
ntohs(ndh->source_port));
sys/netinet/libalias/alias_nbt.c
431
switch (ntohs(q->type)) {
sys/netinet/libalias/alias_nbt.c
438
printf("\nUnknown Type on Question %0x\n", ntohs(q->type));
sys/netinet/libalias/alias_nbt.c
486
bcount = ntohs(q->rdlen);
sys/netinet/libalias/alias_nbt.c
563
bcount = ntohs(q->rdlen);
sys/netinet/libalias/alias_nbt.c
622
bcount = ntohs(q->rdlen);
sys/netinet/libalias/alias_nbt.c
657
bcount = ntohs(q->rdlen);
sys/netinet/libalias/alias_nbt.c
690
bcount = ntohs(q->rdlen);
sys/netinet/libalias/alias_nbt.c
712
printf("type=%02x, count=%d\n", ntohs(q->type), count);
sys/netinet/libalias/alias_nbt.c
716
switch (ntohs(q->type)) {
sys/netinet/libalias/alias_nbt.c
741
ntohs(q->type)
sys/netinet/libalias/alias_nbt.c
782
pmax = (char *)uh + ntohs(uh->uh_ulen);
sys/netinet/libalias/alias_nbt.c
795
ntohs(nsh->qdcount),
sys/netinet/libalias/alias_nbt.c
796
ntohs(nsh->ancount),
sys/netinet/libalias/alias_nbt.c
797
ntohs(nsh->nscount),
sys/netinet/libalias/alias_nbt.c
798
ntohs(nsh->arcount),
sys/netinet/libalias/alias_nbt.c
804
if (ntohs(nsh->qdcount) != 0) {
sys/netinet/libalias/alias_nbt.c
806
ntohs(nsh->qdcount),
sys/netinet/libalias/alias_nbt.c
813
if (ntohs(nsh->ancount) != 0) {
sys/netinet/libalias/alias_nbt.c
815
ntohs(nsh->ancount),
sys/netinet/libalias/alias_nbt.c
822
if (ntohs(nsh->nscount) != 0) {
sys/netinet/libalias/alias_nbt.c
824
ntohs(nsh->nscount),
sys/netinet/libalias/alias_nbt.c
831
if (ntohs(nsh->arcount) != 0) {
sys/netinet/libalias/alias_nbt.c
833
ntohs(nsh->arcount),
sys/netinet/libalias/alias_nbt.c
85
if (ntohs(*ah->dport) == NETBIOS_DGM_PORT_NUMBER
sys/netinet/libalias/alias_nbt.c
86
|| ntohs(*ah->sport) == NETBIOS_DGM_PORT_NUMBER)
sys/netinet/libalias/alias_pptp.c
438
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_pptp.c
449
*ptype = ntohs(hptr->type);
sys/netinet/libalias/alias_pptp.c
452
if ((ntohs(hptr->msgType) != PPTP_CTRL_MSG_TYPE) ||
sys/netinet/libalias/alias_pptp.c
84
if (ntohs(*ah->dport) == PPTP_CONTROL_PORT_NUMBER
sys/netinet/libalias/alias_pptp.c
85
|| ntohs(*ah->sport) == PPTP_CONTROL_PORT_NUMBER)
sys/netinet/libalias/alias_proxy.c
191
*port = (u_int)ntohs(se->s_port);
sys/netinet/libalias/alias_proxy.c
304
(u_int)ntohs(GetProxyPort(lnk)));
sys/netinet/libalias/alias_proxy.c
319
if ((int)(ntohs(pip->ip_len) + strlen(buffer)) > maxpacketsize)
sys/netinet/libalias/alias_proxy.c
329
dlen = ntohs(pip->ip_len) - hlen;
sys/netinet/libalias/alias_proxy.c
358
pip->ip_len = htons(ntohs(pip->ip_len) + slen);
sys/netinet/libalias/alias_proxy.c
401
memcpy(ptr + OPTION_LEN_BYTES, ptr, ntohs(pip->ip_len) - 20);
sys/netinet/libalias/alias_proxy.c
431
pip->ip_len = htons(ntohs(pip->ip_len) + OPTION_LEN_BYTES);
sys/netinet/libalias/alias_sctp.c
1017
(include_error_cause ? ntohs(error_cause->code) : 0),
sys/netinet/libalias/alias_sctp.c
1019
ntohs(sctp_hdr->dest_port),
sys/netinet/libalias/alias_sctp.c
1077
bytes_left = ntohs(pip->ip_len) - (pip->ip_hl << 2);
sys/netinet/libalias/alias_sctp.c
1099
chunk_length = SCTP_SIZE32(ntohs(chunk_hdr->chunk_length));
sys/netinet/libalias/alias_sctp.c
1176
if (ntohs(param_hdr->param_type) == SCTP_IPV4_ADDRESS) {
sys/netinet/libalias/alias_sctp.c
1242
chunk_length = SCTP_SIZE32(ntohs(chunk_hdr->chunk_length));
sys/netinet/libalias/alias_sctp.c
1291
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1295
if (ntohs(param->param_type) == SCTP_VTAG_PARAM) {
sys/netinet/libalias/alias_sctp.c
1318
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1375
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1404
switch (ntohs(param->param_type)) {
sys/netinet/libalias/alias_sctp.c
1444
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1517
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1527
if (ntohs(param->param_type) == SCTP_DEL_IP_ADDRESS) {
sys/netinet/libalias/alias_sctp.c
1572
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1614
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1623
if (ntohs(param->param_type) == SCTP_SUCCESS_REPORT)
sys/netinet/libalias/alias_sctp.c
1632
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1668
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
1675
if (ntohs(param->param_type) == SCTP_ADD_IP_ADDRESS)
sys/netinet/libalias/alias_sctp.c
1677
else if (ntohs(param->param_type) == SCTP_DEL_IP_ADDRESS)
sys/netinet/libalias/alias_sctp.c
1686
param_size = SCTP_SIZE32(ntohs(param->param_length));
sys/netinet/libalias/alias_sctp.c
211
#define SN_SCTP_NEXTCHUNK(chunkhead) (struct sctp_chunkhdr *)(((char *)chunkhead) + SCTP_SIZE32(ntohs(chunkhead->chunk_length)))
sys/netinet/libalias/alias_sctp.c
214
#define SN_SCTP_NEXTPARAM(param) (struct sctp_paramhdr *)(((char *)param) + SCTP_SIZE32(ntohs(param->param_length)))
sys/netinet/libalias/alias_sctp.c
2639
ntohl(assoc->l_vtag), ntohs(assoc->l_port),
sys/netinet/libalias/alias_sctp.c
2640
ntohl(assoc->g_vtag), ntohs(assoc->g_port),
sys/netinet/libalias/alias_sctp.c
760
if ((assoc != NULL) && (ntohs(pip->ip_off) & IP_MF)) {
sys/netinet/libalias/alias_sctp.c
939
if (ntohs(sm->ip_hdr->ip_len) < ip_size) { /* short packet, cannot send error cause */
sys/netinet/libalias/alias_skinny.c
256
port_msg->stationIpPort = (u_int32_t)ntohs(GetAliasPort(lnk));
sys/netinet/libalias/alias_skinny.c
286
opnrcvch_ack->port = (u_int32_t)ntohs(GetAliasPort(opnrcv_lnk));
sys/netinet/libalias/alias_skinny.c
310
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_skinny.c
320
if (ntohs(tc->th_dport) == la->skinnyPort)
sys/netinet/libalias/alias_skinny.c
322
else if (ntohs(tc->th_sport) == la->skinnyPort)
sys/netinet/libalias/alias_skinny.c
64
if (la->skinnyPort != 0 && (ntohs(*ah->sport) == la->skinnyPort ||
sys/netinet/libalias/alias_skinny.c
65
ntohs(*ah->dport) == la->skinnyPort))
sys/netinet/libalias/alias_smedia.c
138
ntohs(*ah->dport) == TFTP_PORT_NUMBER)
sys/netinet/libalias/alias_smedia.c
143
if (ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_1
sys/netinet/libalias/alias_smedia.c
144
|| ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_1
sys/netinet/libalias/alias_smedia.c
145
|| ntohs(*ah->dport) == RTSP_CONTROL_PORT_NUMBER_2
sys/netinet/libalias/alias_smedia.c
146
|| ntohs(*ah->sport) == RTSP_CONTROL_PORT_NUMBER_2)
sys/netinet/libalias/alias_smedia.c
154
if (ntohs(*ah->dport) == TFTP_PORT_NUMBER)
sys/netinet/libalias/alias_smedia.c
251
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_smedia.c
321
base_alias = ntohs(salias);
sys/netinet/libalias/alias_smedia.c
355
sprintf(stemp, "%d", ntohs(salias));
sys/netinet/libalias/alias_smedia.c
364
sprintf(stemp, "%d", ntohs(ealias));
sys/netinet/libalias/alias_smedia.c
433
if (ntohs(msg_id) == 0) /* end of options */
sys/netinet/libalias/alias_smedia.c
436
if ((ntohs(msg_id) == 1) || (ntohs(msg_id) == 7)) {
sys/netinet/libalias/alias_smedia.c
458
work += ntohs(msg_len);
sys/netinet/libalias/alias_smedia.c
479
tlen = ntohs(pip->ip_len);
sys/netinet/libalias/alias_smedia.c
486
if ((ntohs(tc->th_dport) == RTSP_CONTROL_PORT_NUMBER_1) ||
sys/netinet/libalias/alias_smedia.c
487
(ntohs(tc->th_dport) == RTSP_CONTROL_PORT_NUMBER_2)) {
sys/netinet/libalias/alias_util.c
114
ntcp = ntohs(pip->ip_len) - nhdr;
sys/netinet/raw_ip.c
555
|| (ntohs(ip->ip_len) != m->m_pkthdr.len)) {
sys/netinet/sctp_asconf.c
1586
error_code = ntohs(eh->code);
sys/netinet/sctp_asconf.c
1587
param_type = ntohs(aph->ph.param_type);
sys/netinet/sctp_asconf.c
1676
if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_asconf_ack_chunk)) {
sys/netinet/sctp_asconf.c
1679
ntohs(cp->ch.chunk_length));
sys/netinet/sctp_asconf.c
172
aparam_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
1722
ack_length = ntohs(cp->ch.chunk_length) -
sys/netinet/sctp_asconf.c
1737
param_type = ntohs(aph->ph.param_type);
sys/netinet/sctp_asconf.c
1738
param_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
177
param_type = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
179
param_length = ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
2346
asconf_limit = ntohs(acp->ch.chunk_length);
sys/netinet/sctp_asconf.c
2352
offset += ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
2362
param_type = ntohs(aph->ph.param_type);
sys/netinet/sctp_asconf.c
2363
param_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
2794
ptype = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
2795
plen = ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
2942
ptype = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
2943
plen = ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
332
aparam_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
337
param_type = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
339
param_length = ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
469
aparam_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
474
param_type = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
476
param_length = ntohs(ph->param_length);
sys/netinet/sctp_asconf.c
622
if (ntohs(cp->ch.chunk_length) < sizeof(struct sctp_asconf_chunk)) {
sys/netinet/sctp_asconf.c
625
ntohs(cp->ch.chunk_length));
sys/netinet/sctp_asconf.c
646
asconf_limit = offset + ntohs(cp->ch.chunk_length);
sys/netinet/sctp_asconf.c
697
offset += SCTP_SIZE32(ntohs(p_addr->ph.param_length));
sys/netinet/sctp_asconf.c
709
param_type = ntohs(aph->ph.param_type);
sys/netinet/sctp_asconf.c
710
param_length = ntohs(aph->ph.param_length);
sys/netinet/sctp_asconf.c
889
param_type = ntohs(ph->param_type);
sys/netinet/sctp_asconf.c
890
param_length = ntohs(ph->param_length);
sys/netinet/sctp_auth.c
1382
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_auth.c
1383
plen = ntohs(phdr->param_length);
sys/netinet/sctp_auth.c
1419
ntohs(hmacs->hmac_ids[i]));
sys/netinet/sctp_auth.c
1599
chunklen = ntohs(auth->ch.chunk_length);
sys/netinet/sctp_auth.c
1607
shared_key_id = ntohs(auth->shared_key_id);
sys/netinet/sctp_auth.c
1608
hmac_id = ntohs(auth->hmac_id);
sys/netinet/sctp_auth.c
1635
cause->hmac_id = ntohs(hmac_id);
sys/netinet/sctp_auth.c
1778
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_auth.c
1779
plen = ntohs(phdr->param_length);
sys/netinet/sctp_auth.c
768
if (ntohs(hmacs->hmac_ids[i]) == SCTP_AUTH_HMAC_ID_SHA1) {
sys/netinet/sctp_indata.c
1707
sid = ntohs(chunk->dp.sid);
sys/netinet/sctp_indata.c
1724
sid = ntohs(chunk->dp.sid);
sys/netinet/sctp_indata.c
1725
mid = (uint32_t)(ntohs(chunk->dp.ssn));
sys/netinet/sctp_indata.c
2713
chk_length = ntohs(ch->chunk_length);
sys/netinet/sctp_indata.c
3196
frag_strt = ntohs(frag->start);
sys/netinet/sctp_indata.c
3197
frag_end = ntohs(frag->end);
sys/netinet/sctp_indata.c
5504
if ((fwd_sz = ntohs(fwd->ch.chunk_length)) < sizeof(struct sctp_forward_tsn_chunk)) {
sys/netinet/sctp_indata.c
5616
sid = ntohs(stseq_m->sid);
sys/netinet/sctp_indata.c
5618
flags = ntohs(stseq_m->flags);
sys/netinet/sctp_indata.c
5632
sid = ntohs(stseq->sid);
sys/netinet/sctp_indata.c
5633
mid = (uint32_t)ntohs(stseq->ssn);
sys/netinet/sctp_input.c
104
(ntohs(init->num_inbound_streams) == 0) ||
sys/netinet/sctp_input.c
105
(ntohs(init->num_outbound_streams) == 0)) {
sys/netinet/sctp_input.c
1072
remaining_length = ntohs(ch->chunk_length);
sys/netinet/sctp_input.c
1084
cause_code = ntohs(cause->code);
sys/netinet/sctp_input.c
1085
cause_length = ntohs(cause->length);
sys/netinet/sctp_input.c
114
offset + ntohs(cp->ch.chunk_length))) {
sys/netinet/sctp_input.c
1196
sctp_process_unrecog_param(stcb, ntohs(unrec_parameter->param_type));
sys/netinet/sctp_input.c
1268
(ntohs(init_ack->num_inbound_streams) == 0) ||
sys/netinet/sctp_input.c
1269
(ntohs(init_ack->num_outbound_streams) == 0)) {
sys/netinet/sctp_input.c
1419
initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length));
sys/netinet/sctp_input.c
1992
initack_offset = init_offset + SCTP_SIZE32(ntohs(init_cp->ch.chunk_length));
sys/netinet/sctp_input.c
2030
ntohs(initack_cp->init.num_outbound_streams),
sys/netinet/sctp_input.c
2276
cookie_len = ntohs(cp->ch.chunk_length);
sys/netinet/sctp_input.c
265
if (asoc->pre_open_streams > ntohs(init->num_inbound_streams)) {
sys/netinet/sctp_input.c
272
newcnt = ntohs(init->num_inbound_streams);
sys/netinet/sctp_input.c
2863
len = ntohs(cp->ch.chunk_length);
sys/netinet/sctp_input.c
3302
temp = ntohs(list[i]);
sys/netinet/sctp_input.c
3325
temp = ntohs(list[i]);
sys/netinet/sctp_input.c
3350
temp = ntohs(list[i]);
sys/netinet/sctp_input.c
3394
len = SCTP_SIZE32(ntohs(r->ph.param_length));
sys/netinet/sctp_input.c
3451
type = ntohs(req_param->ph.param_type);
sys/netinet/sctp_input.c
3452
lparam_len = ntohs(req_param->ph.param_length);
sys/netinet/sctp_input.c
352
if (asoc->max_inbound_streams > ntohs(init->num_outbound_streams)) {
sys/netinet/sctp_input.c
353
asoc->streamincnt = ntohs(init->num_outbound_streams);
sys/netinet/sctp_input.c
3541
if (ntohs(respin->ph.param_length) < sizeof(struct sctp_stream_reset_response_tsn)) {
sys/netinet/sctp_input.c
3615
len = ntohs(req->ph.param_length);
sys/netinet/sctp_input.c
3619
temp = ntohs(req->list_of_streams[i]);
sys/netinet/sctp_input.c
3734
len = ntohs(req->ph.param_length);
sys/netinet/sctp_input.c
3813
num_stream = ntohs(str_add->number_of_streams);
sys/netinet/sctp_input.c
3904
num_stream = ntohs(str_add->number_of_streams);
sys/netinet/sctp_input.c
3967
remaining_length = ntohs(ch_req->chunk_length) - sizeof(struct sctp_chunkhdr);
sys/netinet/sctp_input.c
4011
param_len = ntohs(ph->param_length);
sys/netinet/sctp_input.c
4023
ptype = ntohs(ph->param_type);
sys/netinet/sctp_input.c
4143
pktdrp_len = ntohs(cp->ch.chunk_length);
sys/netinet/sctp_input.c
4146
if (ntohs(cp->trunc_len) <= pktdrp_len - sizeof(struct sctp_pktdrop_chunk)) {
sys/netinet/sctp_input.c
4174
chk_len = (uint32_t)ntohs(chk_hdr->chunk_length);
sys/netinet/sctp_input.c
4346
if (ntohs(ch->chunk_length) < sizeof(*ch)) {
sys/netinet/sctp_input.c
4348
ntohs(ch->chunk_length));
sys/netinet/sctp_input.c
4359
ntohs(ch->chunk_length), vtag_in);
sys/netinet/sctp_input.c
4380
auth_len = ntohs(ch->chunk_length);
sys/netinet/sctp_input.c
4413
asconf_len = ntohs(asconf_ch->chunk_length);
sys/netinet/sctp_input.c
4518
chk_length = ntohs(ch->chunk_length);
sys/netinet/sctp_input.c
463
initack_limit = offset + ntohs(cp->ch.chunk_length);
sys/netinet/sctp_input.c
4705
num_seg = ntohs(sack->sack.num_gap_ack_blks);
sys/netinet/sctp_input.c
4707
num_dup = ntohs(sack->sack.num_dup_tsns);
sys/netinet/sctp_input.c
4722
num_seg = ntohs(nr_sack->nr_sack.num_gap_ack_blks);
sys/netinet/sctp_input.c
4723
num_nr_seg = ntohs(nr_sack->nr_sack.num_nr_gap_ack_blks);
sys/netinet/sctp_input.c
4724
num_dup = ntohs(nr_sack->nr_sack.num_dup_tsns);
sys/netinet/sctp_input.c
539
if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_heartbeat_chunk)) {
sys/netinet/sctp_input.c
5767
length = ntohs(ip->ip_len);
sys/netinet/sctp_input.c
5846
flowid = tag ^ ntohs(sh->dest_port) ^ ntohs(sh->src_port);
sys/netinet/sctp_input.c
758
len = ntohs(abort->ch.chunk_length);
sys/netinet/sctp_input.c
767
error = ntohs(cause->code);
sys/netinet/sctp_input.c
878
if (ntohs(cp->ch.chunk_length) != sizeof(struct sctp_shutdown_chunk)) {
sys/netinet/sctp_output.c
11584
chk_length = ntohs(ch->chunk_length);
sys/netinet/sctp_output.c
11762
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
11834
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
11874
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
11902
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
11994
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
12026
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
12059
old_len = len = SCTP_SIZE32(ntohs(ch->chunk_length));
sys/netinet/sctp_output.c
4950
limit = ntohs(cp->chunk_length) - sizeof(struct sctp_init_chunk);
sys/netinet/sctp_output.c
4958
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_output.c
4959
plen = ntohs(phdr->param_length);
sys/netinet/sctp_output.c
5377
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_output.c
5378
plen = ntohs(phdr->param_length);
sys/netinet/sctp_output.c
5545
if (sctp_are_there_new_addresses(asoc, init_pkt, offset, offset + ntohs(init_chk->ch.chunk_length), src, &op_err)) {
sys/netinet/sctp_output.c
5689
stc.scope_id = ntohs(in6_getscope(&src6->sin6_addr));
sys/netinet/sctp_output.c
5908
his_limit = ntohs(init_chk->init.num_inbound_streams);
sys/netinet/sctp_output.c
9041
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_output.c
9042
plen = ntohs(phdr->param_length);
sys/netinet/sctp_pcb.c
1941
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_pcb.c
1943
plen = ntohs(phdr->param_length);
sys/netinet/sctp_pcb.c
2182
ptype = (int)((uint32_t)ntohs(phdr->param_type));
sys/netinet/sctp_pcb.c
2191
if (ntohs(phdr->param_length) != sizeof(struct sctp_ipv6addr_param)) {
sys/netinet/sctp_pcb.c
2218
if (ntohs(phdr->param_length) != sizeof(struct sctp_ipv4addr_param)) {
sys/netinet/sctp_pcb.c
2736
ntohs(((struct sockaddr_in *)addr)->sin_port));
sys/netinet/sctp_pcb.c
2838
if (ntohs(lport) < IPPORT_RESERVED &&
sys/netinet/sctp_pcb.c
3098
(void *)head, ntohs(lport), port_reuse_active);
sys/netinet/sctp_pcb.c
3939
ntohs(stcb->rport) ^
sys/netinet/sctp_pcb.c
3940
ntohs(stcb->sctp_ep->sctp_lport);
sys/netinet/sctp_pcb.c
4124
ntohs(((struct sockaddr_in *)firstaddr)->sin_port));
sys/netinet/sctp_pcb.c
4130
ntohs(((struct sockaddr_in6 *)firstaddr)->sin6_port));
sys/netinet/sctp_pcb.c
4147
if ((ntohs(sin->sin_port) == 0) ||
sys/netinet/sctp_pcb.c
4167
if ((ntohs(sin6->sin6_port) == 0) ||
sys/netinet/sctp_pcb.c
5994
ptype = ntohs(phdr->param_type);
sys/netinet/sctp_pcb.c
5995
plen = ntohs(phdr->param_length);
sys/netinet/sctp_pcb.c
6238
lptype = ntohs(fee->addrp.ph.param_type);
sys/netinet/sctp_pcb.c
6394
ntohs(hmacs->hmac_ids[i]));
sys/netinet/sctp_sysctl.c
437
xinpcb.local_port = ntohs(inp->sctp_lport);
sys/netinet/sctp_sysctl.c
479
xstcb.local_port = ntohs(inp->sctp_lport);
sys/netinet/sctp_sysctl.c
480
xstcb.remote_port = ntohs(stcb->rport);
sys/netinet/sctp_usrreq.c
312
if (ntohs(outer_ip->ip_len) >=
sys/netinet/sctp_usrreq.c
334
ntohs(inner_ip->ip_len),
sys/netinet/sctp_usrreq.c
335
(uint32_t)ntohs(icmp->icmp_nextmtu));
sys/netinet/sctputil.c
3160
abort_len = ntohs(abort->ch.chunk_length);
sys/netinet/sctputil.c
3416
chk_len = ntohs(chkhdr->chunk_length);
sys/netinet/sctputil.c
3978
strreset->strreset_stream_list[i] = ntohs(list[i]);
sys/netinet/sctputil.c
4025
chunk_len = ntohs(chunk->ch.chunk_length);
sys/netinet/sctputil.c
4412
cause_code = ntohs(cause->code);
sys/netinet/sctputil.c
4518
cause_code = ntohs(cause->code);
sys/netinet/sctputil.c
4565
chk_length = ntohs(ch->chunk_length);
sys/netinet/sctputil.c
4623
chk_length = ntohs(ch->chunk_length);
sys/netinet/sctputil.c
4767
ntohs(sin6->sin6_port),
sys/netinet/sctputil.c
4781
p[0], p[1], p[2], p[3], ntohs(sin->sin_port));
sys/netinet/sctputil.c
7193
iph->ip_len = htons(ntohs(iph->ip_len) - sizeof(struct udphdr));
sys/netinet/sctputil.c
7200
ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) - sizeof(struct udphdr));
sys/netinet/sctputil.c
7232
if (ntohs(outer_ip->ip_len) <
sys/netinet/sctputil.c
7280
if (ntohs(outer_ip->ip_len) >=
sys/netinet/sctputil.c
7306
ntohs(inner_ip->ip_len),
sys/netinet/sctputil.c
7307
(uint32_t)ntohs(icmp->icmp_nextmtu));
sys/netinet/sctputil.c
7500
if (ntohs(port) == 0) {
sys/netinet/siftr.c
764
(siftr_port_filter != ntohs(th->th_sport)) &&
sys/netinet/siftr.c
765
(siftr_port_filter != ntohs(th->th_dport))) {
sys/netinet/siftr.c
827
info.lport = ntohs(inp->inp_lport);
sys/netinet/siftr.c
828
info.fport = ntohs(inp->inp_fport);
sys/netinet/siftr.c
915
(siftr_port_filter != ntohs(th->th_sport)) &&
sys/netinet/siftr.c
916
(siftr_port_filter != ntohs(th->th_dport))) {
sys/netinet/siftr.c
976
info.lport = ntohs(inp->inp_lport);
sys/netinet/siftr.c
977
info.fport = ntohs(inp->inp_fport);
sys/netinet/tcp_fastopen.c
1201
ntohs(cce->server_port),
sys/netinet/tcp_input.c
3496
to->to_mss = ntohs(to->to_mss);
sys/netinet/tcp_input.c
644
tlen = sizeof(*ip6) + ntohs(ip6->ip6_plen) - off0;
sys/netinet/tcp_input.c
706
tlen = ntohs(ip->ip_len) - off0;
sys/netinet/tcp_input.c
862
next_hop6->sin6_port ? ntohs(next_hop6->sin6_port) :
sys/netinet/tcp_input.c
894
next_hop->sin_port ? ntohs(next_hop->sin_port) :
sys/netinet/tcp_log_buf.c
3043
db_printf(" win %u", ntohs(th->th_win));
sys/netinet/tcp_log_buf.c
3045
db_printf(" urg %u", ntohs(th->th_urp));
sys/netinet/tcp_log_buf.c
3079
db_printf("mss %u", ntohs(mss));
sys/netinet/tcp_lro.c
452
ntohs(po->ip4->ip_len);
sys/netinet/tcp_lro.c
458
ntohs(po->ip6->ip6_plen) + sizeof(*po->ip6);
sys/netinet/tcp_lro.c
555
cs = in6_cksum_pseudo(pa->ip6, ntohs(pa->ip6->ip6_plen), pa->ip6->ip6_nxt, 0);
sys/netinet/tcp_lro.c
561
cs = in_addword(ntohs(pa->ip4->ip_len) - sizeof(*pa->ip4), IPPROTO_TCP);
sys/netinet/tcp_seq.h
48
#define WIN_LT(a,b) (ntohs(a) < ntohs(b))
sys/netinet/tcp_seq.h
49
#define WIN_LEQ(a,b) (ntohs(a) <= ntohs(b))
sys/netinet/tcp_seq.h
50
#define WIN_GT(a,b) (ntohs(a) > ntohs(b))
sys/netinet/tcp_seq.h
51
#define WIN_GEQ(a,b) (ntohs(a) >= ntohs(b))
sys/netinet/tcp_stacks/rack_bbr_common.c
163
etype = ntohs(eh->ether_type);
sys/netinet/tcp_stacks/rack_bbr_common.c
179
tlen = ntohs(ip6->ip6_plen);
sys/netinet/tcp_stacks/rack_bbr_common.c
212
tlen = ntohs(ip->ip_len) - sizeof(struct ip);
sys/netinet/tcp_stacks/rack_bbr_common.c
390
tlen = ntohs(ip6->ip6_plen);
sys/netinet/tcp_stacks/rack_bbr_common.c
401
tlen = ntohs(ip->ip_len) - sizeof(struct ip);
sys/netinet/tcp_subr.c
2134
ntohs(port), tcpstates[tp->t_state]));
sys/netinet/tcp_subr.c
3078
int mtu = ntohs(icp->icmp_nextmtu);
sys/netinet/tcp_subr.c
3082
mtu = ip_next_mtu(ntohs(ip->ip_len), 1);
sys/netinet/tcp_subr.c
3202
o_len = ntohs(outer_ip->ip_len);
sys/netinet/tcp_subr.c
3210
if (ntohs(udp->uh_sport) != V_tcp_udp_tunneling_port) {
sys/netinet/tcp_subr.c
3396
if (ntohs(udp->uh_sport) != V_tcp_udp_tunneling_port) {
sys/netinet/tcp_subr.c
4171
sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
sys/netinet/tcp_subr.c
4175
sprintf(sp, "]:%i", ntohs(inc->inc_lport));
sys/netinet/tcp_subr.c
4180
sprintf(sp, "]:%i to [", ntohs(inc->inc_fport));
sys/netinet/tcp_subr.c
4184
sprintf(sp, "]:%i", ntohs(inc->inc_lport));
sys/netinet/tcp_subr.c
4188
sprintf(sp, "]:%i to [", ntohs(th->th_sport));
sys/netinet/tcp_subr.c
4192
sprintf(sp, "]:%i", ntohs(th->th_dport));
sys/netinet/tcp_subr.c
4198
sprintf(sp, "]:%i to [", ntohs(th->th_sport));
sys/netinet/tcp_subr.c
4202
sprintf(sp, "]:%i", ntohs(th->th_dport));
sys/netinet/tcp_subr.c
626
len = ntohs(iph->ip_len) - sizeof(struct udphdr);
sys/netinet/tcp_subr.c
640
len = ntohs(ip6->ip6_plen) - sizeof(struct udphdr);
sys/netinet/tcp_subr.c
808
if (ntohs(port) == 0) {
sys/netinet/tcp_syncache.c
2006
ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) + optlen);
sys/netinet/tcp_syncache.c
2009
ip->ip_len = htons(ntohs(ip->ip_len) + optlen);
sys/netinet/tcp_usrreq.c
2490
optval = ntohs(tp->t_port);
sys/netinet/tcp_var.h
1605
th->th_win = ntohs(th->th_win);
sys/netinet/tcp_var.h
1606
th->th_urp = ntohs(th->th_urp);
sys/netinet/udp_usrreq.c
532
len = ntohs((u_short)uh->uh_ulen);
sys/netinet/udp_usrreq.c
533
ip_len = ntohs(ip->ip_len) - iphlen;
sys/netinet/udp_usrreq.c
650
inet_ntoa_r(ip->ip_dst, dst), ntohs(uh->uh_dport),
sys/netinet/udp_usrreq.c
651
inet_ntoa_r(ip->ip_src, src), ntohs(uh->uh_sport));
sys/netinet6/frag6.c
479
(((ntohs(ip6->ip6_plen) - offset) & 0x7) != 0)) {
sys/netinet6/frag6.c
507
ip6->ip6_plen = htons(ntohs(ip6->ip6_plen) -
sys/netinet6/frag6.c
521
frgpartlen = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - offset;
sys/netinet6/frag6.c
549
fragoff = ntohs(ip6f->ip6f_offlg & IP6F_OFF_MASK);
sys/netinet6/icmp6.c
1239
qtype = ntohs(ni6->ni_qtype);
sys/netinet6/icmp6.c
2188
icmp6len = ntohs(ip6->ip6_plen);
sys/netinet6/icmp6.c
2624
sizeof(*ip6), ntohs(ip6->ip6_plen));
sys/netinet6/icmp6.c
518
ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netinet6/in6_gif.c
399
ntohs(in6_getscope(&ip6->ip6_src)), NHR_NONE,
sys/netinet6/in6_mcast.c
2328
ifindex = ntohs(gsa->sin6.sin6_addr.s6_addr16[1]);
sys/netinet6/in6_pcb.c
223
if (ntohs(lport) <= V_ipport_reservedhigh &&
sys/netinet6/in6_pcb.c
224
ntohs(lport) >= V_ipport_reservedlow &&
sys/netinet6/in6_src.c
627
dst_sa.sin6_scope_id = ntohs(in6_getscope(dst));
sys/netinet6/in6_src.c
750
uint32_t zoneid = ntohs(in6_getscope(dst));
sys/netinet6/ip6_fastfwd.c
125
plen = ntohs(ip6->ip6_plen);
sys/netinet6/ip6_forward.c
262
dst.sin6_scope_id = ntohs(in6_getscope(&dst.sin6_addr));
sys/netinet6/ip6_forward.c
344
dst.sin6_scope_id = ntohs(in6_getscope(&ip6->ip6_dst));
sys/netinet6/ip6_forward.c
373
dst.sin6_scope_id = ntohs(in6_getscope(&gw6->sin6_addr));
sys/netinet6/ip6_input.c
1044
*rtalertp = ntohs(rtalert_val);
sys/netinet6/ip6_input.c
757
plen = (uint32_t)ntohs(ip6->ip6_plen);
sys/netinet6/ip6_mroute.c
1935
ntohs(eip6->ip6_plen));
sys/netinet6/mld6.c
644
timer = (ntohs(mld->mld_maxdelay) * MLD_FASTHZ) / MLD_TIMER_SCALE;
sys/netinet6/mld6.c
790
maxdelay = ntohs(mld->mld_maxdelay); /* in 1/10ths of a second */
sys/netinet6/mld6.c
812
nsrc = ntohs(mld->mld_numsrc);
sys/netinet6/mld6.c
956
nsrc = ntohs(mld->mld_numsrc);
sys/netinet6/mld6.h
55
#define MLD_MRC_EXP(x) ((ntohs((x)) >> 12) & 0x0007)
sys/netinet6/mld6.h
56
#define MLD_MRC_MANT(x) (ntohs((x)) & 0x0fff)
sys/netinet6/nd6.c
2217
ip6len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netinet6/nd6_rtr.c
570
dr0.rtlifetime = ntohs(nd_ra->nd_ra_router_lifetime);
sys/netinet6/scope6.c
365
zoneid = ntohs(sin6->sin6_addr.s6_addr16[1]);
sys/netinet6/scope6.c
550
zoneid = ntohs(in6_getscope(dst));
sys/netinet6/sctp6_usrreq.c
130
length = ntohs(ip6->ip6_plen) + iphlen;
sys/netinet6/udp6_usrreq.c
390
plen = ntohs(ip6->ip6_plen) - off + sizeof(*ip6);
sys/netinet6/udp6_usrreq.c
391
ulen = ntohs((u_short)uh->uh_ulen);
sys/netinet6/udp6_usrreq.c
420
if (ntohs(uh->uh_dport) == V_zero_checksum_port)
sys/netinet6/udp6_usrreq.c
514
ntohs(uh->uh_dport),
sys/netinet6/udp6_usrreq.c
516
ntohs(uh->uh_sport));
sys/netipsec/ipsec_input.c
190
ntohs(dst_address.sin6.sin6_addr.s6_addr16[1]);
sys/netipsec/ipsec_input.c
303
pmtu = ntohs(icp->icmp_nextmtu);
sys/netipsec/ipsec_output.c
581
ntohs(ip6->ip6_src.s6_addr16[1]);
sys/netipsec/ipsec_output.c
594
ntohs(ip6->ip6_dst.s6_addr16[1]);
sys/netipsec/ipsec_pcb.c
81
sin6->sin6_scope_id = ntohs(
sys/netipsec/ipsec_pcb.c
94
sin6->sin6_scope_id = ntohs(
sys/netipsec/key_debug.c
521
ntohs(port->sadb_x_nat_t_port_port));
sys/netipsec/key_debug.c
707
port = ntohs(((const struct sockaddr_in *)sa)->sin_port);
sys/netipsec/key_debug.c
712
port = ntohs(((const struct sockaddr_in6 *)sa)->sin6_port);
sys/netipsec/key_debug.c
843
printf(" natt{ sport=%u dport=%u ", ntohs(natt->sport),
sys/netipsec/key_debug.c
844
ntohs(natt->dport));
sys/netipsec/subr_ipsec.c
101
src->sin6.sin6_scope_id = ntohs(ip6->ip6_src.s6_addr16[1]);
sys/netipsec/subr_ipsec.c
110
dst->sin6.sin6_scope_id = ntohs(ip6->ip6_dst.s6_addr16[1]);
sys/netipsec/xform_ah.c
1026
iplen = htons(ntohs(iplen) + ahsize);
sys/netipsec/xform_ah.c
1037
iplen = htons(ntohs(iplen) + ahsize);
sys/netipsec/xform_ipcomp.c
733
ntohs(src.sin6.sin6_addr.s6_addr16[1]);
sys/netipsec/xform_ipcomp.c
739
ntohs(dst.sin6.sin6_addr.s6_addr16[1]);
sys/netpfil/ipfilter/netinet/fil.c
1264
if ((ntohs(oip->ip_off) & IP_OFFMASK) != 0) {
sys/netpfil/ipfilter/netinet/fil.c
1266
DT2(ipf_fi_bad_icmp_err, fr_info_t, fin, u_int, (ntohs(oip->ip_off) & IP_OFFMASK));
sys/netpfil/ipfilter/netinet/fil.c
1319
fin->fin_sport = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/fil.c
1320
fin->fin_dport = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/fil.c
1493
fin->fin_sport = ntohs(udp->uh_sport);
sys/netpfil/ipfilter/netinet/fil.c
1494
fin->fin_dport = ntohs(udp->uh_dport);
sys/netpfil/ipfilter/netinet/fil.c
1674
fin->fin_id = ntohs(ip->ip_id);
sys/netpfil/ipfilter/netinet/fil.c
1675
off = ntohs(ip->ip_off);
sys/netpfil/ipfilter/netinet/fil.c
2020
fin->fin_plen = ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/fil.c
2025
fin->fin_plen = ntohs(((ip6_t *)ip)->ip6_plen);
sys/netpfil/ipfilter/netinet/fil.c
3385
int len = ntohs(ip6->ip6_plen) - (off - sizeof(*ip6));
sys/netpfil/ipfilter/netinet/fil.c
6014
ido = ntohs(ip->ip_id);
sys/netpfil/ipfilter/netinet/fil.c
6024
id = ntohs(ip->ip_id);
sys/netpfil/ipfilter/netinet/fil.c
6032
sum = (~ntohs(ip->ip_sum)) & 0xffff;
sys/netpfil/ipfilter/netinet/fil.c
821
fin->fin_off = ntohs(frag->ip6f_offlg & IP6F_OFF_MASK);
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
50
#define DNS_QR(x) ((ntohs(x) & 0x8000) >> 15)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
51
#define DNS_OPCODE(x) ((ntohs(x) & 0x7800) >> 11)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
52
#define DNS_AA(x) ((ntohs(x) & 0x0400) >> 10)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
53
#define DNS_TC(x) ((ntohs(x) & 0x0200) >> 9)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
54
#define DNS_RD(x) ((ntohs(x) & 0x0100) >> 8)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
55
#define DNS_RA(x) ((ntohs(x) & 0x0080) >> 7)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
56
#define DNS_Z(x) ((ntohs(x) & 0x0070) >> 4)
sys/netpfil/ipfilter/netinet/ip_dns_pxy.c
57
#define DNS_RCODE(x) ((ntohs(x) & 0x000f) >> 0)
sys/netpfil/ipfilter/netinet/ip_fil.h
1204
#define GRE_REV(x) ((ntohs(x) >> 13) & 7)
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
1277
fin->fin_ip->ip_len = ntohs(fin->fin_ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
1278
fin->fin_ip->ip_off = ntohs(fin->fin_ip->ip_off);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
437
fnew.fin_plen = ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
456
fnew.fin_plen = ntohs(ip6->ip6_plen) + hlen;
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
523
switch (ntohs(fin->fin_data[0]) >> 8)
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
805
if (ntohs(ip->ip_len) <= ifp->if_mtu) {
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
815
ip_off = ntohs(ip->ip_off);
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
836
for (off = hlen + len; off < ntohs(ip->ip_len); off += len) {
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
856
if (off + len >= ntohs(ip->ip_len))
sys/netpfil/ipfilter/netinet/ip_fil_freebsd.c
857
len = ntohs(ip->ip_len) - off;
sys/netpfil/ipfilter/netinet/ip_ftp_pxy.c
931
u_short len = ntohs(ip6->ip6_plen) + inc;
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
373
if (ntohs(sp) < 1024)
sys/netpfil/ipfilter/netinet/ip_irc_pxy.c
396
fi.fin_data[0] = ntohs(sp);
sys/netpfil/ipfilter/netinet/ip_nat.c
2046
fin.fin_data[0] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat.c
2047
fin.fin_data[1] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat.c
2685
port = ntohs(sport) + l;
sys/netpfil/ipfilter/netinet/ip_nat.c
2738
port = ntohs(sport);
sys/netpfil/ipfilter/netinet/ip_nat.c
2797
fin->fin_data[1] = ntohs(port);
sys/netpfil/ipfilter/netinet/ip_nat.c
2976
nport = ntohs(dport) - np->in_odport + np->in_dpmax;
sys/netpfil/ipfilter/netinet/ip_nat.c
3008
fin->fin_data[0] = ntohs(nport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3275
sum1 = LONG_SUM(ntohs(nat->nat_oicmpid));
sys/netpfil/ipfilter/netinet/ip_nat.c
3276
sum2 = LONG_SUM(ntohs(nat->nat_nicmpid));
sys/netpfil/ipfilter/netinet/ip_nat.c
3284
ntohs(nat->nat_osport));
sys/netpfil/ipfilter/netinet/ip_nat.c
3286
ntohs(nat->nat_nsport));
sys/netpfil/ipfilter/netinet/ip_nat.c
3291
ntohs(nat->nat_odport));
sys/netpfil/ipfilter/netinet/ip_nat.c
3293
ntohs(nat->nat_ndport));
sys/netpfil/ipfilter/netinet/ip_nat.c
3691
fin->fin_data[0] = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3692
fin->fin_data[1] = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3900
sum1 = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3901
sum4 = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3902
sum3 = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3903
sum2 = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3908
sum1 = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3909
sum2 = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3910
sum3 = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3911
sum4 = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat.c
3985
sum1 = ntohs(orgicmp->icmp_id);
sys/netpfil/ipfilter/netinet/ip_nat.c
3986
sum2 = ntohs(nat->nat_oicmpid);
sys/netpfil/ipfilter/netinet/ip_nat.c
4597
fi.fin_data[0] = ntohs(np->nl_realport);
sys/netpfil/ipfilter/netinet/ip_nat.c
4598
fi.fin_data[1] = ntohs(np->nl_outport);
sys/netpfil/ipfilter/netinet/ip_nat.c
4600
fi.fin_data[0] = ntohs(np->nl_inport);
sys/netpfil/ipfilter/netinet/ip_nat.c
4601
fi.fin_data[1] = ntohs(np->nl_outport);
sys/netpfil/ipfilter/netinet/ip_nat.c
4633
fin.fin_data[0] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat.c
4634
fin.fin_data[1] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5148
s2 = ntohs(ip->ip_id);
sys/netpfil/ipfilter/netinet/ip_nat.c
5151
ip->ip_len = ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_nat.c
5154
s2 += ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_nat.c
5192
fin->fin_data[0] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5194
fin->fin_data[1] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5199
fin->fin_data[0] = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5201
fin->fin_data[1] = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5600
sum1 = ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_nat.c
5601
ip->ip_len = ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_nat.c
5609
sum2 = ntohs(ip->ip_id) + ntohs(ip->ip_len);
sys/netpfil/ipfilter/netinet/ip_nat.c
5610
sum2 += ntohs(ip->ip_off) & IP_DF;
sys/netpfil/ipfilter/netinet/ip_nat.c
5671
fin->fin_data[0] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5673
fin->fin_data[1] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5678
fin->fin_data[0] = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat.c
5680
fin->fin_data[1] = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat.c
873
sum1 = (~ntohs(*sp)) & 0xffff;
sys/netpfil/ipfilter/netinet/ip_nat.c
913
sum1 = (~ntohs(*sp)) & 0xffff;
sys/netpfil/ipfilter/netinet/ip_nat.c
950
sum1 = (~ntohs(*sp)) & 0xffff;
sys/netpfil/ipfilter/netinet/ip_nat6.c
1138
sum1 += ntohs(nat->nat_oicmpid);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1140
sum2 += ntohs(nat->nat_nicmpid);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1153
sum1 += ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1155
sum2 += ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1160
sum1 += ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1162
sum2 += ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1466
fin->fin_data[0] = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1467
fin->fin_data[1] = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1722
sum1 = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1723
sum4 = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1724
sum3 = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1725
sum2 = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1730
sum1 = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1731
sum2 = ntohs(tcp->th_dport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1732
sum3 = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1733
sum4 = ntohs(tcp->th_sport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1812
sum1 = ntohs(orgicmp->icmp6_id);
sys/netpfil/ipfilter/netinet/ip_nat6.c
1813
sum2 = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2421
fi.fin_data[0] = ntohs(np->nl_realport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2422
fi.fin_data[1] = ntohs(np->nl_outport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2424
fi.fin_data[0] = ntohs(np->nl_inport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2425
fi.fin_data[1] = ntohs(np->nl_outport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2458
fin.fin_data[0] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2459
fin.fin_data[1] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2866
fin->fin_data[0] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2868
fin->fin_data[1] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2873
fin->fin_data[0] = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
2875
fin->fin_data[1] = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
3234
uh->uh_ulen = ntohs(fin->fin_plen);
sys/netpfil/ipfilter/netinet/ip_nat6.c
3288
fin->fin_data[0] = ntohs(nat->nat_nsport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
3290
fin->fin_data[1] = ntohs(nat->nat_ndport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
3295
fin->fin_data[0] = ntohs(nat->nat_odport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
3297
fin->fin_data[1] = ntohs(nat->nat_osport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
539
port = ntohs(sport) + l;
sys/netpfil/ipfilter/netinet/ip_nat6.c
593
port = ntohs(sport);
sys/netpfil/ipfilter/netinet/ip_nat6.c
659
fin->fin_data[1] = ntohs(port);
sys/netpfil/ipfilter/netinet/ip_nat6.c
841
nport = ntohs(dport) - np->in_odport + np->in_dpmax;
sys/netpfil/ipfilter/netinet/ip_nat6.c
872
fin->fin_data[0] = ntohs(nport);
sys/netpfil/ipfilter/netinet/ip_pptp_pxy.c
340
len = ntohs(hdr->pptph_len);
sys/netpfil/ipfilter/netinet/ip_pptp_pxy.c
396
switch (ntohs(hdr->pptph_type))
sys/netpfil/ipfilter/netinet/ip_pptp_pxy.c
428
switch (ntohs(buffer[4]))
sys/netpfil/ipfilter/netinet/ip_proxy.c
1005
u_short sum = ntohs(udp->uh_sum);
sys/netpfil/ipfilter/netinet/ip_proxy.c
996
u_short sum = ntohs(tcp->th_sum);
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
1394
udp->uh_ulen = htons(ntohs(udp->uh_ulen) + len);
sys/netpfil/ipfilter/netinet/ip_rpcb_pxy.c
788
udp->uh_ulen = htons(ntohs(udp->uh_ulen) + diff);
sys/netpfil/ipfilter/netinet/ip_state.c
1552
is->is_maxswin = ntohs(tcp->th_win);
sys/netpfil/ipfilter/netinet/ip_state.c
1963
(ntohs(is->is_sport) != fin->fin_data[0]))
sys/netpfil/ipfilter/netinet/ip_state.c
2120
win = ntohs(tcp->th_win);
sys/netpfil/ipfilter/netinet/ip_state.c
2122
win = ntohs(tcp->th_win) << fdata->td_winscale;
sys/netpfil/ipfilter/netinet/ip_state.c
2313
clone->is_maxdwin = ntohs(tcp->th_win);
sys/netpfil/ipfilter/netinet/ip_state.c
2321
clone->is_maxswin = ntohs(tcp->th_win);
sys/netpfil/ipfilter/netinet/ip_state.c
2388
dp = ntohs(fin->fin_dport);
sys/netpfil/ipfilter/netinet/ip_sync.c
306
td->td_maxwin = ntohs(td->td_maxwin);
sys/netpfil/ipfilter/netinet/ip_sync.c
382
ips->is_sec = ntohs(ips->is_sec);
sys/netpfil/ipfilter/netinet/ip_sync.c
383
ips->is_secmsk = ntohs(ips->is_secmsk);
sys/netpfil/ipfilter/netinet/ip_sync.c
384
ips->is_auth = ntohs(ips->is_auth);
sys/netpfil/ipfilter/netinet/ip_sync.c
385
ips->is_authmsk = ntohs(ips->is_authmsk);
sys/netpfil/ipfilter/netinet/ip_tftp_pxy.c
302
fi.fin_dport = ntohs(ti->ti_rule->in_ndport);
sys/netpfil/ipfw/ip_fw2.c
1057
ntohs(chunk->chunk_length) + 3) {
sys/netpfil/ipfw/ip_fw2.c
1799
iplen = ntohs(ip6->ip6_plen) + sizeof(*ip6);
sys/netpfil/ipfw/ip_fw2.c
1813
offset = ntohs(ip->ip_off) & IP_OFFMASK;
sys/netpfil/ipfw/ip_fw2.c
1814
iplen = ntohs(ip->ip_len);
sys/netpfil/ipfw/ip_fw2.c
1880
args->f_id.src_port = src_port = ntohs(src_port);
sys/netpfil/ipfw/ip_fw2.c
1881
args->f_id.dst_port = dst_port = ntohs(dst_port);
sys/netpfil/ipfw/ip_fw2.c
2047
(ntohs(eh->ether_type) >=
sys/netpfil/ipfw/ip_fw2.c
2049
ntohs(eh->ether_type) <=
sys/netpfil/ipfw/ip_fw2.c
2062
((ntohs(ip->ip_off) & ~IP_OFFMASK)
sys/netpfil/ipfw/ip_fw2.c
2485
x = ntohs(ip->ip_id);
sys/netpfil/ipfw/ip_fw2.c
2630
x = ntohs(TCP(ulp)->th_win);
sys/netpfil/ipfw/ip_fw2.c
3449
ip_off = ntohs(ip->ip_off);
sys/netpfil/ipfw/ip_fw2.c
939
ntohs(chunk->chunk_length) + 3) {
sys/netpfil/ipfw/ip_fw_log.c
349
ntohs(tcp->th_sport),
sys/netpfil/ipfw/ip_fw_log.c
351
ntohs(tcp->th_dport));
sys/netpfil/ipfw/ip_fw_log.c
363
ntohs(udp->uh_sport),
sys/netpfil/ipfw/ip_fw_log.c
365
ntohs(udp->uh_dport));
sys/netpfil/ipfw/ip_fw_log.c
407
ntohs(ip6->ip6_plen) - hlen,
sys/netpfil/ipfw/ip_fw_log.c
408
ntohs(offset) << 3, ip6f_mf ? "+" : "");
sys/netpfil/ipfw/ip_fw_log.c
413
ipoff = ntohs(ip->ip_off);
sys/netpfil/ipfw/ip_fw_log.c
414
iplen = ntohs(ip->ip_len);
sys/netpfil/ipfw/ip_fw_log.c
418
ntohs(ip->ip_id), iplen - (ip->ip_hl << 2),
sys/netpfil/ipfw/ip_fw_nat.c
407
mcl->m_pkthdr.len = mcl->m_len = ntohs(ip->ip_len);
sys/netpfil/ipfw/ip_fw_nat.c
428
ip_len = ntohs(ip->ip_len);
sys/netpfil/ipfw/ip_fw_pfil.c
515
if (ntohs(ip->ip_off) & (IP_MF | IP_OFFMASK)) {
sys/netpfil/ipfw/ip_fw_table_algo.c
3400
ent->dport = ntohs(tfe->dport);
sys/netpfil/ipfw/ip_fw_table_algo.c
3401
ent->sport = ntohs(tfe->sport);
sys/netpfil/ipfw/nat64/nat64_translate.c
1111
eip6->ip6_plen = htons(ntohs(ip.ip_len) - (ip.ip_hl << 2));
sys/netpfil/ipfw/nat64/nat64_translate.c
1249
plen = ntohs(ip->ip_len) - hlen;
sys/netpfil/ipfw/nat64/nat64_translate.c
1503
plen = ntohs(ip6i->ip6_plen);
sys/netpfil/ipfw/nat64/nat64_translate.c
1603
plen = ntohs(ip6->ip6_plen);
sys/netpfil/ipfw/nat64/nat64_translate.c
525
ip->ip_off = htons(ntohs(frag->ip6f_offlg) >> 3);
sys/netpfil/ipfw/nat64/nat64_translate.c
545
plen = ntohs(ip6->ip6_plen);
sys/netpfil/ipfw/nat64/nat64_translate.c
574
ip6f.ip6f_ident = htonl(ntohs(ip_id));
sys/netpfil/ipfw/nat64/nat64_translate.c
575
offset = (ntohs(ip_off) & IP_OFFMASK) << 3;
sys/netpfil/ipfw/nat64/nat64_translate.c
588
ip6f.ip6f_offlg = ntohs(offset);
sys/netpfil/ipfw/nat64/nat64_translate.c
799
if (ip->ip_off & ~ntohs(IP_MF|IP_DF)) {
sys/netpfil/ipfw/nat64/nat64_translate.c
893
icmp6->icmp6_cksum = ~in6_cksum_pseudo(ip6, ntohs(ip6->ip6_plen),
sys/netpfil/ipfw/nat64/nat64_translate.c
948
mtu = max(IPV6_MMTU, ntohs(icmp->icmp_nextmtu) + 20);
sys/netpfil/ipfw/nat64/nat64lsn.c
1668
port = ntohs(icmp6->icmp6_id);
sys/netpfil/ipfw/nat64/nat64lsn.c
435
*port = ntohs(icmp->icmp_id);
sys/netpfil/ipfw/nat64/nat64lsn.c
465
*port = ntohs(*((uint16_t *)mtodo(*mp, off)));
sys/netpfil/ipfw/nat64/nat64lsn.c
476
*port = ntohs(icmp->icmp_id);
sys/netpfil/ipfw/nat64/nat64lsn.c
591
*port = ntohs(L3HDR(ip, struct tcphdr *)->th_dport);
sys/netpfil/ipfw/nat64/nat64lsn.c
594
*port = ntohs(L3HDR(ip, struct udphdr *)->uh_dport);
sys/netpfil/ipfw/nat64/nat64lsn.c
622
ret = ntohs(mtod(*mp, struct ip *)->ip_off);
sys/netpfil/ipfw/pmod/tcpmod.c
101
if (ntohs(oldmss) <= ntohs(mss))
sys/netpfil/pf/if_pfsync.c
1014
count = ntohs(subh.count);
sys/netpfil/pf/if_pfsync.c
1092
len = ntohs(ph->len) + offset;
sys/netpfil/pf/if_pfsync.c
1117
count = ntohs(subh.count);
sys/netpfil/pf/if_pfsync.c
817
st->state_flags = ntohs(sp->pfs_1400.state_flags);
sys/netpfil/pf/if_pfsync.c
821
st->act.qid = ntohs(sp->pfs_1400.qid);
sys/netpfil/pf/if_pfsync.c
822
st->act.pqid = ntohs(sp->pfs_1400.pqid);
sys/netpfil/pf/if_pfsync.c
823
st->act.dnpipe = ntohs(sp->pfs_1400.dnpipe);
sys/netpfil/pf/if_pfsync.c
824
st->act.dnrpipe = ntohs(sp->pfs_1400.dnrpipe);
sys/netpfil/pf/if_pfsync.c
828
st->act.max_mss = ntohs(sp->pfs_1400.max_mss);
sys/netpfil/pf/if_pfsync.c
836
st->state_flags = ntohs(sp->pfs_1500.state_flags);
sys/netpfil/pf/if_pfsync.c
840
st->act.qid = ntohs(sp->pfs_1500.qid);
sys/netpfil/pf/if_pfsync.c
841
st->act.pqid = ntohs(sp->pfs_1500.pqid);
sys/netpfil/pf/if_pfsync.c
842
st->act.dnpipe = ntohs(sp->pfs_1500.dnpipe);
sys/netpfil/pf/if_pfsync.c
843
st->act.dnrpipe = ntohs(sp->pfs_1500.dnrpipe);
sys/netpfil/pf/if_pfsync.c
847
st->act.max_mss = ntohs(sp->pfs_1500.max_mss);
sys/netpfil/pf/if_pfsync.c
989
len = ntohs(ph->len) + offset;
sys/netpfil/pf/pf.c
10236
ntohs(uh->uh_ulen), IPPROTO_UDP, 0);
sys/netpfil/pf/pf.c
10534
dnflow->f_id.dst_port = ntohs(*pd->dport);
sys/netpfil/pf/pf.c
10536
dnflow->f_id.src_port = ntohs(*pd->sport);
sys/netpfil/pf/pf.c
10798
if (hlen < sizeof(struct ip) || hlen > ntohs(h->ip_len)) {
sys/netpfil/pf/pf.c
10810
end = pd->off + ntohs(h->ip_len);
sys/netpfil/pf/pf.c
10892
if (ntohs(h->ip6_plen) != 0) {
sys/netpfil/pf/pf.c
10935
end = pd->off + ntohs(h->ip6_plen);
sys/netpfil/pf/pf.c
10978
if (ntohs((frag.ip6f_offlg & IP6F_OFF_MASK)) != 0) {
sys/netpfil/pf/pf.c
11036
ntohs(h->ip6_plen) == 0 && pd->jumbolen != 0) {
sys/netpfil/pf/pf.c
11153
if (pd->m->m_pkthdr.len < ntohs(h->ip_len)) {
sys/netpfil/pf/pf.c
11180
pd->tot_len = ntohs(h->ip_len);
sys/netpfil/pf/pf.c
11205
sizeof(struct ip6_hdr) + ntohs(h->ip6_plen)) {
sys/netpfil/pf/pf.c
11233
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
11312
ntohs(uh->uh_ulen) > pd->m->m_pkthdr.len - pd->off ||
sys/netpfil/pf/pf.c
11313
ntohs(uh->uh_ulen) < sizeof(struct udphdr)) {
sys/netpfil/pf/pf.c
11968
ntohs(r->divert.port);
sys/netpfil/pf/pf.c
2389
d->max_win = ntohs(s->max_win);
sys/netpfil/pf/pf.c
2390
d->mss = ntohs(s->mss);
sys/netpfil/pf/pf.c
2395
d->scrub->pfss_flags = ntohs(s->scrub.pfss_flags) &
sys/netpfil/pf/pf.c
3367
p = ntohs(p);
sys/netpfil/pf/pf.c
3404
b = ntohs(addr->addr16[i]);
sys/netpfil/pf/pf.c
3411
p = ntohs(p);
sys/netpfil/pf/pf.c
4076
in4_cksum(pd->m, 0, hlen, ntohs(ip4->ip_len) - hlen) :
sys/netpfil/pf/pf.c
4078
ntohs(ip6->ip6_plen));
sys/netpfil/pf/pf.c
4289
mtu = ntohs(icmp4->icmp_nextmtu);
sys/netpfil/pf/pf.c
5035
return (pf_match(op, ntohs(a1), ntohs(a2), ntohs(p)));
sys/netpfil/pf/pf.c
5519
mss = ntohs(mss);
sys/netpfil/pf/pf.c
5709
proto = ntohs(e->ether_type);
sys/netpfil/pf/pf.c
6770
s->src.max_win = MAX(ntohs(th->th_win), 1);
sys/netpfil/pf/pf.c
7309
u_int16_t win = ntohs(th->th_win);
sys/netpfil/pf/pf.c
7755
state->src.max_win = MAX(ntohs(th->th_win), 1);
sys/netpfil/pf/pf.c
7774
state->dst.max_win = MAX(ntohs(th->th_win), 1);
sys/netpfil/pf/pf.c
8408
if (ntohs(h.param_length) < 4)
sys/netpfil/pf/pf.c
8411
SDT_PROBE2(pf, sctp, multihome_scan, param, ntohs(h.param_type),
sys/netpfil/pf/pf.c
8412
ntohs(h.param_length));
sys/netpfil/pf/pf.c
8414
switch (ntohs(h.param_type)) {
sys/netpfil/pf/pf.c
8418
if (ntohs(h.param_length) !=
sys/netpfil/pf/pf.c
8463
if (ntohs(h.param_length) !=
sys/netpfil/pf/pf.c
8503
ntohs(ah.ph.param_length) - sizeof(ah), pd,
sys/netpfil/pf/pf.c
8517
ntohs(ah.ph.param_length) - sizeof(ah), pd,
sys/netpfil/pf/pf.c
8527
off += roundup(ntohs(h.param_length), 4);
sys/netpfil/pf/pf.c
8591
ntohs(type), icmp_dir);
sys/netpfil/pf/pf.c
8816
pd2.tot_len = ntohs(h2.ip_len);
sys/netpfil/pf/pf.c
8838
pd2.tot_len = ntohs(h2_6.ip6_plen) +
sys/netpfil/pf/pf.c
9673
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/netpfil/pf/pf.c
9679
iplen = ntohs(h->ip_len);
sys/netpfil/pf/pf.c
9687
iplen = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf.c
9972
ip_len = ntohs(ip->ip_len);
sys/netpfil/pf/pf.c
9973
ip_off = ntohs(ip->ip_off);
sys/netpfil/pf/pf_ioctl.c
2998
uint16_t a = ntohs(port[0]);
sys/netpfil/pf/pf_ioctl.c
2999
uint16_t b = ntohs(port[1]);
sys/netpfil/pf/pf_lb.c
1253
tmp_nport = ((ntohs(pd->ndport) - ntohs(r->dst.port[0])) % div) +
sys/netpfil/pf/pf_lb.c
1327
ntohs(pd->nsport), ntohs(ctx->nk->port[0]));
sys/netpfil/pf/pf_lb.c
1382
pd->ndport = ntohs(pd->ndport);
sys/netpfil/pf/pf_lb.c
1389
pd->nsport = ntohs(pd->nsport);
sys/netpfil/pf/pf_norm.c
1019
ntohs(ip6->ip6_plen));
sys/netpfil/pf/pf_norm.c
1157
int mff = (ntohs(h->ip_off) & IP_MF);
sys/netpfil/pf/pf_norm.c
1159
u_int16_t fragoff = (ntohs(h->ip_off) & IP_OFFMASK) << 3;
sys/netpfil/pf/pf_norm.c
1224
if (hlen > ntohs(h->ip_len)) {
sys/netpfil/pf/pf_norm.c
1253
ip_len = ntohs(h->ip_len) - hlen;
sys/netpfil/pf/pf_norm.c
1383
pd->tot_len = ntohs(h->ip6_plen) + sizeof(struct ip6_hdr);
sys/netpfil/pf/pf_norm.c
1999
if (ntohs(mss) > pd->act.max_mss) {
sys/netpfil/pf/pf_norm.c
2029
if (ntohs(ch.chunk_length) < 4)
sys/netpfil/pf/pf_norm.c
2033
chunk_off += roundup(ntohs(ch.chunk_length), 4);
sys/netpfil/pf/pf_norm.c
2073
ntohs(init.ch.chunk_length), pd);
sys/netpfil/pf/pf_norm.c
2108
ntohs(ch.chunk_length), pd);
sys/netpfil/pf/pf_norm.c
830
frent->fe_len = ntohs(ip->ip_len) - (ip->ip_hl << 2);
sys/netpfil/pf/pf_norm.c
831
frent->fe_off = (ntohs(ip->ip_off) & IP_OFFMASK) << 3;
sys/netpfil/pf/pf_norm.c
832
frent->fe_mff = ntohs(ip->ip_off) & IP_MF;
sys/netpfil/pf/pf_norm.c
897
DPFPRINTF(PF_DEBUG_MISC, "complete: %p(%d)", m, ntohs(ip->ip_len));
sys/netpfil/pf/pf_norm.c
930
frent->fe_len = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen) - hdrlen;
sys/netpfil/pf/pf_norm.c
931
frent->fe_off = ntohs(fraghdr->ip6f_offlg & IP6F_OFF_MASK);
sys/netpfil/pf/pf_osfp.c
113
fp.fp_psize = ntohs(ip->ip_len);
sys/netpfil/pf/pf_osfp.c
122
fp.fp_psize = sizeof(struct ip6_hdr) + ntohs(ip6->ip6_plen);
sys/netpfil/pf/pf_osfp.c
131
fp.fp_wsize = ntohs(tcp->th_win);
sys/netpfil/pf/pf_osfp.c
157
fp.fp_mss = ntohs(fp.fp_mss);
sys/netpfil/pf/pf_osfp.c
163
fp.fp_wscale = ntohs(fp.fp_wscale);
sys/netpfil/pf/pf_osfp.c
191
srcname, ntohs(tcp->th_sport),
sys/ofed/drivers/infiniband/core/ib_cma.c
3183
sib->sib_sid = cpu_to_be64((sid & mask) | (u64) ntohs(port));
sys/ofed/drivers/infiniband/core/ib_cma.c
3294
snum = ntohs(cma_port(cma_src_addr(id_priv)));
sys/ofed/drivers/infiniband/core/ib_cma.c
3362
sib->sib_sid = cpu_to_be64(sid_ps | ntohs(cma_port((struct sockaddr *) sib)));
sys/ofed/drivers/infiniband/core/ib_cma.c
581
ib_addr_set_pkey(dev_addr, ntohs(sib->sib_pkey));
sys/ofed/drivers/infiniband/core/ib_cma.c
713
pkey = ntohs(addr->sib_pkey);
sys/ofed/drivers/infiniband/core/ib_iwpm_util.c
86
ntohs(sockaddr_v4->sin_port),
sys/ofed/drivers/infiniband/core/ib_iwpm_util.c
87
ntohs(sockaddr_v4->sin_port));
sys/ofed/drivers/infiniband/core/ib_iwpm_util.c
93
ntohs(sockaddr_v6->sin6_port),
sys/ofed/drivers/infiniband/core/ib_iwpm_util.c
94
ntohs(sockaddr_v6->sin6_port));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_bcopy.c
54
ntohs(h->bufs), ntohl(h->len), ntohl(h->mseq),
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
178
ssk->max_bufs = ntohs(h->bsdh.bufs);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_cma.c
210
ssk->max_bufs = ntohs(h->bsdh.bufs);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
13
(sk) && sdp_sk(sk) ? ntohs(sdp_sk(sk)->lport) : -1, \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
14
(sk) && sdp_sk(sk) ? ntohs(sdp_sk(sk)->fport) : -1, ## arg); \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_dbg.h
71
l->sk_dport = (sk) ? ntohs(inet_sk(sk)->dport) : -1; \
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
142
destp = ntohs(inet_sk(sk)->dport);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_proc.c
143
srcp = ntohs(inet_sk(sk)->sport);
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
422
1 + ntohs(h->bufs));
sys/ofed/drivers/infiniband/ulp/sdp/sdp_rx.c
427
mid2str(h->mid), ntohs(h->bufs), credits_before,
sys/opencrypto/ktls_ocf.c
457
tls_len = ntohs(hdr->tls_length);
sys/opencrypto/ktls_ocf.c
641
tls_len = ntohs(hdr->tls_length);
sys/opencrypto/ktls_ocf.c
739
tls_len = ntohs(hdr->tls_length);
sys/opencrypto/ktls_ocf.c
874
tls_len = ntohs(hdr->tls_length);
sys/opencrypto/ktls_ocf.c
926
tls_len = ntohs(hdr->tls_length);
sys/rpc/rpc_generic.c
317
port = ntohs(sin->sin_port);
sys/rpc/rpc_generic.c
331
port = ntohs(sin6->sin6_port);
sys/security/mac_portacl/mac_portacl.c
461
port = ntohs(sin->sin_port);
sys/sys/param.h
341
__uint16_t ntohs(__uint16_t);
tests/sys/capsicum/sctp.cc
102
int port = ntohs(addr.sin_port);
tests/sys/capsicum/socket.cc
157
int port = ntohs(addr.sin_port);
tests/sys/capsicum/socket.cc
272
int port = ntohs(addr.sin_port);
tests/sys/kern/ktls_test.c
1258
ntohs(hdr->tls_length);
tests/sys/kern/ktls_test.c
1360
payload_len = ntohs(hdr->tls_length);
tests/sys/kern/ktls_test.c
1428
payload_len = ntohs(hdr->tls_length);
tests/sys/kern/ktls_test.c
951
ATF_REQUIRE_INTEQ(len, ntohs(hdr->tls_length) + sizeof(*hdr));
tests/sys/kern/socket_accf.c
213
} while (sent < ntohs(header.length));
tests/sys/kern/ssl_sendfile.c
156
ntohs(c->port)) >= (int)sizeof("localhost:0"));
tests/sys/net/routing/rtsock_common.h
437
ntohs(a4->sin_port), ntohs(b4->sin_port));
tests/sys/netgraph/vlan_rotate.c
168
v[i] = ntohs(f->vlan[i].proto);
tests/sys/netgraph/vlan_rotate.c
226
ATF_CHECK_MSG(r[i] == ntohs(vlan[expect]),
tests/sys/netgraph/vlan_rotate.c
228
len, rot, i, ntohs(r[i]), expect, vlan[expect]);
tests/sys/netgraph/vlan_rotate.c
84
v[i] = EVL_VLANOFTAG(ntohs(f->vlan[i].tag));
tests/sys/netinet/ip_reass_test.c
123
len = sizeof(packet->family) + ntohs(packet->hdr.ip_len);
tests/sys/netinet/ip_reass_test.c
71
cksum += ntohs(tmp);
tests/sys/netinet/libalias/2_natout.c
145
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
187
aport = ntohs(u->uh_sport);
tests/sys/netinet/libalias/2_natout.c
219
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
325
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
332
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
339
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
344
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
355
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
379
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
384
aport2 = ntohs(uo2->uh_sport);
tests/sys/netinet/libalias/2_natout.c
392
aport3 = ntohs(uo3->uh_sport);
tests/sys/netinet/libalias/2_natout.c
418
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
454
aport = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
507
extport1 = ntohs(uo->uh_sport);
tests/sys/netinet/libalias/2_natout.c
512
extport2 = ntohs(uo2->uh_sport);
tests/sys/netinet/libalias/3_natin.c
100
pf3 = LibAliasRedirectPort(la, prv3, ntohs(0x1234), ANY_ADDR, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
121
pf4 = LibAliasRedirectPort(la, cgn, ntohs(0x1234), ANY_ADDR, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
159
pf1 = LibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
172
pf1 = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
184
pf2 = LibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
198
pf3 = LibAliasRedirectPort(la, prv3, ntohs(0x1234), ANY_ADDR, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
213
pf4 = LibAliasRedirectPort(la, cgn, ntohs(0x1234), ANY_ADDR, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
238
pf = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ANY_ADDR, 0, ANY_ADDR, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
313
pf = LibAliasRedirectPort(la, cgn, ntohs(0xdead), ANY_ADDR, 0, masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
316
ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv1, ntohs(0x1234)));
tests/sys/netinet/libalias/3_natin.c
317
ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv2, ntohs(0x2345)));
tests/sys/netinet/libalias/3_natin.c
318
ATF_REQUIRE(0 == LibAliasAddServer(la, pf, prv3, ntohs(0x3456)));
tests/sys/netinet/libalias/3_natin.c
344
pf = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ANY_ADDR, 0, masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
350
pf = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
57
pf1 = LibAliasRedirectPort(la, prv1, ntohs(0x1234), ext, ntohs(0x5678), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/3_natin.c
79
pf2 = LibAliasRedirectPort(la, prv2, ntohs(0x1234), ext, ntohs(0), masq, ntohs(0xabcd), IPPROTO_UDP);
tests/sys/netinet/libalias/util.c
115
int payload = ntohs(p->ip_len) - hlen;
tests/sys/netinet/libalias/util.h
103
int len = ntohs(pip->ip_len); \
tests/sys/netinet/libalias/util.h
67
int len = ntohs(pip->ip_len); \
tests/sys/netinet/libalias/util.h
79
int len = ntohs(pip->ip_len); \
tests/sys/netinet/libalias/util.h
91
int len = ntohs(pip->ip_len); \
tests/sys/netinet/multicast-receive.c
131
printf("%s:%u %s\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port), buf);
tests/sys/netinet/udp_bindings.c
183
ntohs(sin.sin_port));
tests/sys/netinet/udp_bindings.c
188
ntohs(sin.sin_port));
tests/sys/netinet/udp_bindings.c
214
ntohs(sin.sin_port));
tests/sys/netinet/udp_bindings.c
72
printf("Echo to %s:%u\n", inet_ntoa(sin.sin_addr), ntohs(sin.sin_port));
tools/regression/netinet/tcpdrop/tcpdrop.c
238
printf("Using port %d\n", ntohs(port));
tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c
154
printf("Using port %d\n", ntohs(port));
tools/regression/netinet/tcpsocktimewait/tcpsocktimewait.c
202
printf("Using port %d\n", ntohs(port));
tools/regression/netinet/tcpstream/tcpstream.c
147
inet_ntoa(other_sin.sin_addr), ntohs(other_sin.sin_port));
tools/regression/sockets/udp_pingpong/udp_pingpong.c
254
inet_ntoa(tcp->sin[1].v4.sin_addr), ntohs(tcp->sin[1].v4.sin_port));
tools/regression/sockets/udp_pingpong/udp_pingpong.c
257
inet_ntoa(tcp->sin[0].v4.sin_addr), ntohs(tcp->sin[0].v4.sin_port));
tools/regression/sockets/udp_pingpong/udp_pingpong.c
300
ntohs(tcp->sin[1].v6.sin6_port));
tools/regression/sockets/udp_pingpong/udp_pingpong.c
304
ntohs(tcp->sin[0].v6.sin6_port));
tools/tools/net80211/w00t/redir/buddy.c
74
printf("Got %d bytes [%d]\n", len, ntohs(id));
tools/tools/net80211/w00t/redir/redir.c
482
id = ntohs(*ptr++);
tools/tools/net80211/w00t/redir/redir.c
483
len = ntohs(*ptr++);
tools/tools/net80211/wesside/dics/dics.c
154
*port = ntohs(s_in.sin_port);
tools/tools/net80211/wesside/dics/dics.c
179
*port = ntohs(uh->uh_sport);
tools/tools/net80211/wesside/dics/dics.c
270
iph->ip_len = ntohs(iph->ip_len);
tools/tools/net80211/wesside/dics/dics.c
276
ntohs(dst.sin_port));
tools/tools/net80211/wesside/wesside/wesside.c
2266
do_llc(ptr, ntohs(eh->ether_type));
tools/tools/net80211/wlanwatch/wlanwatch.c
203
ntohs(*(u_int16_t *)&sin6.sin6_addr.s6_addr[2]);
tools/tools/netmap/pkt-gen.c
1021
oiplen = ntohs(ip.ip_len);
tools/tools/netmap/pkt-gen.c
1040
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
tools/tools/netmap/pkt-gen.c
1188
IPPROTO_UDP + (u_int32_t)ntohs(udp.uh_ulen)))));
tools/tools/netmap/pkt-gen.c
2376
if (ntohs(pkt->eh.ether_type) == ETHERTYPE_IP)
tools/tools/netmap/pkt-gen.c
743
sum += (uint16_t)ntohs(*((const uint16_t *)(addr + i)));
tools/tools/netmap/pkt-gen.c
843
nport = oport = ntohs(udp.uh_sport);
tools/tools/netmap/pkt-gen.c
848
nport = ntohs(udp.uh_sport);
tools/tools/netmap/pkt-gen.c
872
nport = oport = ntohs(udp.uh_dport);
tools/tools/netmap/pkt-gen.c
877
nport = ntohs(udp.uh_dport);
tools/tools/netmap/pkt-gen.c
930
naddr = oaddr = ntohs(ip6.ip6_src.s6_addr16[group]);
tools/tools/netmap/pkt-gen.c
931
nport = oport = ntohs(udp.uh_sport);
tools/tools/netmap/pkt-gen.c
935
naddr = ntohs(ip6.ip6_src.s6_addr16[group]);
tools/tools/netmap/pkt-gen.c
936
nport = ntohs(udp.uh_sport);
tools/tools/netmap/pkt-gen.c
946
if (oaddr < ntohs(g->src_ip.ipv6.end.s6_addr16[group])) {
tools/tools/netmap/pkt-gen.c
951
naddr = ntohs(g->src_ip.ipv6.start.s6_addr16[group]);
tools/tools/netmap/pkt-gen.c
962
naddr = oaddr = ntohs(ip6.ip6_dst.s6_addr16[group]);
tools/tools/netmap/pkt-gen.c
963
nport = oport = ntohs(udp.uh_dport);
tools/tools/netmap/pkt-gen.c
967
naddr = ntohs(ip6.ip6_dst.s6_addr16[group]);
tools/tools/netmap/pkt-gen.c
968
nport = ntohs(udp.uh_dport);
tools/tools/netmap/pkt-gen.c
978
if (oaddr < ntohs(g->dst_ip.ipv6.end.s6_addr16[group])) {
tools/tools/netmap/pkt-gen.c
983
naddr = ntohs(g->dst_ip.ipv6.start.s6_addr16[group]);
tools/tools/netmap/pkt_hash.c
157
ntohs(0xFFFD) + seed,
tools/tools/netmap/pkt_hash.c
158
ntohs(0xFFFE) + seed);
tools/tools/netmap/pkt_hash.c
168
ntohs(tcph->th_sport) + seed,
tools/tools/netmap/pkt_hash.c
169
ntohs(tcph->th_dport) + seed);
tools/tools/netmap/pkt_hash.c
175
ntohs(udph->uh_sport) + seed,
tools/tools/netmap/pkt_hash.c
176
ntohs(udph->uh_dport) + seed);
tools/tools/netmap/pkt_hash.c
198
ntohs(0xFFFD) + seed,
tools/tools/netmap/pkt_hash.c
199
ntohs(0xFFFE) + seed);
tools/tools/netmap/pkt_hash.c
228
ntohs(0xFFFD) + seed,
tools/tools/netmap/pkt_hash.c
229
ntohs(0xFFFE) + seed);
tools/tools/netmap/pkt_hash.c
234
switch(ntohs(ipv6h->ip6_ctlun.ip6_un1.ip6_un1_nxt)) {
tools/tools/netmap/pkt_hash.c
239
ntohs(tcph->th_sport) + seed,
tools/tools/netmap/pkt_hash.c
240
ntohs(tcph->th_dport) + seed);
tools/tools/netmap/pkt_hash.c
246
ntohs(udph->uh_sport) + seed,
tools/tools/netmap/pkt_hash.c
247
ntohs(udph->uh_dport) + seed);
tools/tools/netmap/pkt_hash.c
273
ntohs(0xFFFD) + seed,
tools/tools/netmap/pkt_hash.c
274
ntohs(0xFFFE) + seed);
tools/tools/netmap/pkt_hash.c
300
ntohs(0xFFFD) + seed,
tools/tools/netmap/pkt_hash.c
301
ntohs(0xFFFE) + seed);
tools/tools/netmap/pkt_hash.c
315
switch (ntohs(vhdr->proto)) {
tools/tools/netmap/pkt_hash.c
343
switch (ntohs(ethh->ether_type)) {
tools/tools/netmap/pkt_hash.c
377
uint16_t proto = ntohs(*(const uint16_t *)(const void *)(grehdr + 2));
usr.bin/fstat/fstat.c
354
ntohs(sin->sin_port));
usr.bin/fstat/fstat.c
358
ntohs(sin->sin_port));
usr.bin/fstat/fstat.c
365
ntohs(sin6->sin6_port));
usr.bin/fstat/fstat.c
369
ntohs(sin6->sin6_port));
usr.bin/getent/getent.c
509
se->s_name, ntohs(se->s_port), se->s_proto)
usr.bin/kdump/kdump.c
1922
printf("%s:%u", addr, ntohs(sa_in.sin_port));
usr.bin/netstat/inet.c
1513
"%d ", ntohs((u_short)port));
usr.bin/netstat/inet6.c
1295
"%d", ntohs((u_short)port));
usr.bin/netstat/route.c
624
ntohs(*(u_int16_t *)&sa6->sin6_addr.s6_addr[2]);
usr.bin/netstat/sctp.c
138
"%d ", ntohs((u_short)port));
usr.bin/procstat/procstat_files.c
112
ntohs(sin->sin_port));
usr.bin/procstat/procstat_files.c
116
ntohs(sin->sin_port));
usr.bin/procstat/procstat_files.c
124
ntohs(sin6->sin6_port));
usr.bin/sockstat/main.c
1034
port = ntohs(sstosin(&addr->address)->sin_port);
usr.bin/sockstat/main.c
1036
port = ntohs(sstosin6(&addr->address)->sin6_port);
usr.bin/sockstat/main.c
1042
port = ntohs(sstosin(&addr->address)->sin_port);
usr.bin/sockstat/main.c
1044
port = ntohs(sstosin6(&addr->address)->sin6_port);
usr.bin/sockstat/main.c
1306
ntohs(faddr->encaps_port));
usr.bin/sockstat/main.c
1533
ntohs(faddr->encaps_port));
usr.bin/sockstat/main.c
322
ntohs(sin6->sin6_addr.s6_addr16[1]);
usr.bin/sockstat/main.c
937
port = ntohs(sstosin(ss)->sin_port);
usr.bin/sockstat/main.c
944
port = ntohs(sstosin6(ss)->sin6_port);
usr.bin/systat/netstat.c
439
ntohs((u_short)port));
usr.bin/talk/ctl_transact.c
100
rp->addr.sa_family = ntohs(rp->addr.sa_family);
usr.bin/talk/get_iface.c
71
local.sin_port = htons(ntohs(local.sin_port) + 1);
usr.bin/talk/get_iface.c
81
remote.sin_port = htons(ntohs(remote.sin_port) + 1);
usr.sbin/bhyve/pci_e82545.c
1376
ipid = ntohs(*(uint16_t *)&hdr[ckinfo[0].ck_start + 4]);
usr.sbin/bhyve/pci_e82545.c
901
(ntohs(tp[0]) == sc->esc_VET)) {
usr.sbin/bhyve/pci_e82545.c
902
tag = ntohs(tp[1]) & 0x0fff;
usr.sbin/bhyve/rfb.c
374
red_max = ntohs(pixfmt_msg.pixfmt.red_max);
usr.sbin/bhyve/rfb.c
375
green_max = ntohs(pixfmt_msg.pixfmt.green_max);
usr.sbin/bhyve/rfb.c
376
blue_max = ntohs(pixfmt_msg.pixfmt.blue_max);
usr.sbin/bluetooth/sdpcontrol/search.c
134
ntohs(*(uint16_t *)&uuid.b[4]),
usr.sbin/bluetooth/sdpcontrol/search.c
135
ntohs(*(uint16_t *)&uuid.b[6]),
usr.sbin/bluetooth/sdpcontrol/search.c
136
ntohs(*(uint16_t *)&uuid.b[8]),
usr.sbin/bluetooth/sdpcontrol/search.c
137
ntohs(*(uint16_t *)&uuid.b[10]),
usr.sbin/bluetooth/sdpcontrol/search.c
195
ntohs(*(uint16_t *)&value.int128.b[4]),
usr.sbin/bluetooth/sdpcontrol/search.c
196
ntohs(*(uint16_t *)&value.int128.b[6]),
usr.sbin/bluetooth/sdpcontrol/search.c
197
ntohs(*(uint16_t *)&value.int128.b[8]),
usr.sbin/bluetooth/sdpcontrol/search.c
198
ntohs(*(uint16_t *)&value.int128.b[10]),
usr.sbin/bluetooth/sdpcontrol/search.c
260
ntohs(*(uint16_t *)&value.int128.b[4]),
usr.sbin/bluetooth/sdpcontrol/search.c
261
ntohs(*(uint16_t *)&value.int128.b[6]),
usr.sbin/bluetooth/sdpcontrol/search.c
262
ntohs(*(uint16_t *)&value.int128.b[8]),
usr.sbin/bluetooth/sdpcontrol/search.c
263
ntohs(*(uint16_t *)&value.int128.b[10]),
usr.sbin/bluetooth/sdpcontrol/search.c
498
ntohs(*(uint16_t *)&uuid.b[4]),
usr.sbin/bluetooth/sdpcontrol/search.c
499
ntohs(*(uint16_t *)&uuid.b[6]),
usr.sbin/bluetooth/sdpcontrol/search.c
500
ntohs(*(uint16_t *)&uuid.b[8]),
usr.sbin/bluetooth/sdpcontrol/search.c
501
ntohs(*(uint16_t *)&uuid.b[10]),
usr.sbin/bluetooth/sdpd/server.c
436
sizeof(*pdu) + (pdu->len = ntohs(pdu->len)) == len) {
usr.sbin/bluetooth/sdpd/server.c
504
pdu->pid, ntohs(pdu->tid), error);
usr.sbin/bluetooth/sdpd/server.c
510
pdu->pid, ntohs(pdu->tid), pdu->len, len, error);
usr.sbin/bluetooth/sdpd/server.c
517
pdu->pid, ntohs(pdu->tid), error);
usr.sbin/ctld/isns.cc
144
be32enc(&buf, ntohs(in4->sin_port));
usr.sbin/ctld/isns.cc
149
be32enc(&buf, ntohs(in6->sin6_port));
usr.sbin/flowctl/flowctl.c
289
ntohs(fle->r.r_sport),
usr.sbin/flowctl/flowctl.c
290
ntohs(fle->r.r_dport),
usr.sbin/flowctl/flowctl.c
323
ntohs(fle6->r.r_sport),
usr.sbin/flowctl/flowctl.c
324
ntohs(fle6->r.r_dport),
usr.sbin/flowctl/flowctl.c
360
ntohs(fle->r.r_sport),
usr.sbin/flowctl/flowctl.c
363
ntohs(fle->r.r_dport),
usr.sbin/flowctl/flowctl.c
403
ntohs(fle6->r.r_sport),
usr.sbin/flowctl/flowctl.c
406
ntohs(fle6->r.r_dport),
usr.sbin/fwcontrol/fwdv.c
177
fprintf(stderr, "0x%04x\n", ntohs(ciph->fdf.dv.cyc));
usr.sbin/iscsid/discovery.c
53
if (ntohs(bhslr->bhslr_response) != BHSLR_RESPONSE_CLOSED_SUCCESSFULLY)
usr.sbin/iscsid/discovery.c
55
ntohs(bhslr->bhslr_response));
usr.sbin/iscsid/login.c
262
conn->conn_tsih = ntohs(bhslr->bhslr_tsih);
usr.sbin/mountd/mountd.c
1182
sport = ntohs(((struct sockaddr_in6 *)saddr)->sin6_port);
usr.sbin/mountd/mountd.c
1185
sport = ntohs(((struct sockaddr_in *)saddr)->sin_port);
usr.sbin/nfscbd/nfscbd.c
235
nfscbdargs.port = ntohs(inetaddr.sin_port);
usr.sbin/nfsuserd/nfsuserd.c
557
sport = ntohs(sin->sin_port);
usr.sbin/nfsuserd/nfsuserd.c
584
sport = ntohs(sin6->sin6_port);
usr.sbin/pkg/dns_utils.c
129
qdcount = ntohs(q.hdr.qdcount);
usr.sbin/pkg/dns_utils.c
130
ancount = ntohs(q.hdr.ancount);
usr.sbin/ppp/auth.c
451
if (len >= ntohs(authp->in.hdr.length))
usr.sbin/ppp/auth.c
455
ntohs(authp->in.hdr.length), len);
usr.sbin/ppp/cbcp.c
643
if (ntohs(head->length) != len) {
usr.sbin/ppp/cbcp.c
645
" - ignored\n", head->code, ntohs(head->length), len);
usr.sbin/ppp/chap.c
720
ntohs(chap->auth.in.hdr.length) == 0)
usr.sbin/ppp/command.c
1528
iport = ntohs(s->s_port);
usr.sbin/ppp/filter.c
84
return ntohs(servent->s_port);
usr.sbin/ppp/fsm.c
1057
if (ntohs(lh.length) > len) {
usr.sbin/ppp/fsm.c
1059
"- dropped\n", fp->link->name, len, (int)ntohs(lh.length));
usr.sbin/ppp/fsm.c
476
flen = ntohs(lhp->length) - sizeof *lhp;
usr.sbin/ppp/fsm.c
617
flen = ntohs(lhp->length) - sizeof *lhp;
usr.sbin/ppp/fsm.c
680
flen = ntohs(lhp->length) - sizeof *lhp;
usr.sbin/ppp/fsm.c
811
flen = ntohs(lhp->length) - sizeof *lhp;
usr.sbin/ppp/fsm.c
887
proto = ntohs(proto);
usr.sbin/ppp/fsm.c
958
if (lcp && ntohs(lhp->length) - sizeof *lhp >= 4) {
usr.sbin/ppp/fsm.c
970
ntohs(lhp->length) - sizeof *lhp, MB_ECHOOUT);
usr.sbin/ppp/fsm.c
999
len = ntohs(lhp->length) - sizeof *lhp;
usr.sbin/ppp/ip.c
241
datalen = ntohs(pip6->ip6_plen);
usr.sbin/ppp/ip.c
257
len = ntohs(pip->ip_off) & IP_OFFMASK; /* fragment offset */
usr.sbin/ppp/ip.c
273
datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
usr.sbin/ppp/ip.c
354
sport = ntohs(uh->uh_sport);
usr.sbin/ppp/ip.c
355
dport = ntohs(uh->uh_dport);
usr.sbin/ppp/ip.c
372
sport = ntohs(th->th_sport);
usr.sbin/ppp/ip.c
373
dport = ntohs(th->th_dport);
usr.sbin/ppp/ip.c
505
len = ntohs(uh->uh_ulen) - sizeof *uh;
usr.sbin/ppp/ip.c
515
*hptr++ = ntohs(*pktptr); /* Careful of macro side-effects ! */
usr.sbin/ppp/ip.c
543
qtype = dns_Qtype2Txt(ntohs(tmp));
usr.sbin/ppp/ip.c
545
qclass = dns_Qclass2Txt(ntohs(tmp));
usr.sbin/ppp/ip.c
589
datalen = ntohs(pip6->ip6_plen);
usr.sbin/ppp/ip.c
601
datalen = ntohs(pip->ip_len) - (pip->ip_hl << 2);
usr.sbin/ppp/ip.c
605
frag = ntohs(pip->ip_off) & IP_OFFMASK;
usr.sbin/ppp/ip.c
654
if (!frag && ncp_IsUrgentUdpPort(&bundle->ncp, ntohs(uh->uh_sport),
usr.sbin/ppp/ip.c
655
ntohs(uh->uh_dport)))
usr.sbin/ppp/ip.c
661
"UDP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(uh->uh_sport));
usr.sbin/ppp/ip.c
664
"%s:%d (%d/%d)", ncpaddr_ntoa(&dstaddr), ntohs(uh->uh_dport),
usr.sbin/ppp/ip.c
678
switch (ntohs(proto)) {
usr.sbin/ppp/ip.c
805
ntohs(uh->uh_sport));
usr.sbin/ppp/ip.c
808
"%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(uh->uh_dport));
usr.sbin/ppp/ip.c
818
if (!frag && ncp_IsUrgentTcpPort(&bundle->ncp, ntohs(th->th_sport),
usr.sbin/ppp/ip.c
819
ntohs(th->th_dport)))
usr.sbin/ppp/ip.c
827
"TCP: %s:%d ---> ", ncpaddr_ntoa(&srcaddr), ntohs(th->th_sport));
usr.sbin/ppp/ip.c
830
"%s:%d", ncpaddr_ntoa(&dstaddr), ntohs(th->th_dport));
usr.sbin/ppp/ip.c
846
if (ntohs(sp[0]) == 0x0204) {
usr.sbin/ppp/ip.c
848
" MSS = %d", ntohs(sp[1]));
usr.sbin/ppp/ip.c
901
if (filter && uh && ntohs(uh->uh_dport) == 53 && log_IsKept(LogDNS))
usr.sbin/ppp/ipcp.c
1111
compproto = (ntohs(pcomp.proto) << 16) + ((int)pcomp.slots << 8) +
usr.sbin/ppp/ipcp.c
1122
if (ntohs(pcomp.proto) == PROTO_VJCOMP) {
usr.sbin/ppp/ipcp.c
1137
if (ntohs(pcomp.proto) == PROTO_VJCOMP) {
usr.sbin/ppp/ipcp.c
1172
if (ntohs(pcomp.proto) == PROTO_VJCOMP) {
usr.sbin/ppp/ipcp.c
1176
compproto = (ntohs(pcomp.proto) << 16) + (pcomp.slots << 8) +
usr.sbin/ppp/lcp.c
941
request, ntohs(req.proto), (u_long)ntohl(req.period) * 10);
usr.sbin/ppp/lcp.c
944
if (ntohs(req.proto) != PROTO_LQR || !IsAccepted(lcp->cfg.lqr)) {
usr.sbin/ppp/mppe.c
256
prefix = ntohs(prefix);
usr.sbin/ppp/mppe.c
359
*proto = ntohs(*proto);
usr.sbin/ppp/nat_cmd.c
338
*port = ntohs(sp->s_port);
usr.sbin/ppp/nat_cmd.c
509
bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
usr.sbin/ppp/nat_cmd.c
532
bp->m_len = ntohs(((struct ip *)MBUF_CTOP(bp))->ip_len);
usr.sbin/ppp/nat_cmd.c
566
len = ntohs(((struct ip *)fptr)->ip_len);
usr.sbin/ppp/ncpaddr.c
173
ntohs(*(u_short *)&sin6->sin6_addr.s6_addr[2]);
usr.sbin/ppp/ncpaddr.c
894
if ((scopeid = ntohs(*(const u_short *)&sin6->s6_addr[2])) == 0)
usr.sbin/ppp/pap.c
202
ntohs(authp->in.hdr.length) == 0) {
usr.sbin/ppp/server.c
121
if (ntohs(sin->sin_port) < 1024) {
usr.sbin/ppp/server.c
124
ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
usr.sbin/ppp/server.c
130
ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
usr.sbin/ppp/server.c
136
if (ntohs(sin6->sin6_port) < 1024) {
usr.sbin/ppp/server.c
139
ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
usr.sbin/ppp/server.c
145
ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
usr.sbin/ppp/server.c
170
ncpaddr_ntoa(&addr), ntohs(sin->sin_port));
usr.sbin/ppp/server.c
176
ncpaddr_ntoa(&addr), ntohs(sin6->sin6_port));
usr.sbin/ppp/slcompress.c
137
(f) = htons(ntohs(f) + ((cp[1] << 8) | cp[2])); \
usr.sbin/ppp/slcompress.c
140
(f) = htons(ntohs(f) + (u_int32_t)*cp++); \
usr.sbin/ppp/slcompress.c
287
deltaS = ntohs(th->th_urp);
usr.sbin/ppp/slcompress.c
299
deltaS = (u_short) (ntohs(th->th_win) - ntohs(oth->th_win));
usr.sbin/ppp/slcompress.c
332
ntohs(cs->cs_ip.ip_len) == hlen)
usr.sbin/ppp/slcompress.c
348
deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
usr.sbin/ppp/slcompress.c
356
if (deltaS == ntohs(cs->cs_ip.ip_len) - hlen) {
usr.sbin/ppp/slcompress.c
364
deltaS = ntohs(ip->ip_id) - ntohs(cs->cs_ip.ip_id);
usr.sbin/ppp/slcompress.c
376
deltaA = ntohs(th->th_sum);
usr.sbin/ppp/slcompress.c
511
register u_int i = ntohs(cs->cs_ip.ip_len) - cs->cs_hlen;
usr.sbin/ppp/slcompress.c
519
th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
usr.sbin/ppp/slcompress.c
543
cs->cs_ip.ip_id = htons(ntohs(cs->cs_ip.ip_id) + 1);
usr.sbin/ppp/tcp.c
200
inet_ntoa(sock.sin_addr), ntohs(sock.sin_port));
usr.sbin/ppp/tcpmss.c
135
if (ntohs(*mss) > maxmss) {
usr.sbin/ppp/tcpmss.c
137
ntohs(*mss), maxmss);
usr.sbin/ppp/tcpmss.c
174
if (pip->ip_p == IPPROTO_TCP && (ntohs(pip->ip_off) & IP_OFFMASK) == 0 &&
usr.sbin/ppp/tcpmss.c
175
ntohs(pip->ip_len) == plen && hlen <= plen &&
usr.sbin/ppp/tcpmss.c
190
if (ntohs(pip6->ip6_plen) + sizeof(struct ip6_hdr) != plen)
usr.sbin/ppp/tcpmss.c
201
ntohs(pfrag->ip6f_offlg & IP6F_OFF_MASK) == 0)
usr.sbin/ppp/ua.h
34
# define ua_ntohs(src, tgt) (*(u_int16_t *)(tgt) = ntohs(*(u_int16_t *)(src)))
usr.sbin/ppp/udp.c
124
inet_ntoa(dev->sock.sin_addr), ntohs(dev->sock.sin_port));
usr.sbin/rarpd/rarpd.c
479
if (ntohs(ep->ether_type) != ETHERTYPE_REVARP ||
usr.sbin/rarpd/rarpd.c
480
ntohs(ap->arp_hrd) != ARPHRD_ETHER ||
usr.sbin/rarpd/rarpd.c
481
ntohs(ap->arp_op) != REVARP_REQUEST ||
usr.sbin/rarpd/rarpd.c
482
ntohs(ap->arp_pro) != ETHERTYPE_IP ||
usr.sbin/rip6query/rip6query.c
162
printf(" tag=0x%x", ntohs(np->rip6_tag));
usr.sbin/route6d/route6d.c
1210
if (ntohs(fsock.sin6_port) != RIP6_PORT) {
usr.sbin/route6d/route6d.c
1260
ifcp->ifc_name, inet6_n2p(&nh), ntohs(fsock.sin6_port), nn);
usr.sbin/route6d/route6d.c
1309
trace(2, " tag=0x%04x", ntohs(np->rip6_tag) & 0xffff);
usr.sbin/route6d/route6d.c
3142
ntohs(rrt->rrt_info.rip6_tag) & 0xffff);
usr.sbin/route6d/route6d.c
761
inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port));
usr.sbin/route6d/route6d.c
764
nrt, inet6_n2p(&sin6->sin6_addr), ntohs(sin6->sin6_port));
usr.sbin/route6d/route6d.c
782
ntohs(np->rip6_tag) & 0xffff);
usr.sbin/rpcbind/security.c
138
(ntohs(sin->sin_port) < IPPORT_RESERVED));
usr.sbin/rpcbind/security.c
145
(ntohs(sin6->sin6_port) < IPV6PORT_RESERVED));
usr.sbin/rwhod/rwhod.c
375
ntohs(from.sin_port), inet_ntoa(from.sin_addr));
usr.sbin/rwhod/rwhod.c
719
ntohs(sin->sin_port));
usr.sbin/syslogd/syslogd.c
1783
printf(":%d\n", ntohs(sin.sin_port));
usr.sbin/syslogd/syslogd.c
1795
printf(":%d\n", ntohs(sin6.sin6_port));
usr.sbin/syslogd/syslogd.c
2679
port = ntohs(sin.sin_port);
usr.sbin/syslogd/syslogd.c
2690
port = ntohs(sin6.sin6_port);
usr.sbin/syslogd/syslogd.c
3461
ap->port = ntohs(se->s_port);
usr.sbin/syslogd/syslogd.c
3470
ap->port = ntohs(se->s_port);
usr.sbin/traceroute/traceroute.c
1272
Printf(" %04x", ntohs(*sp++));
usr.sbin/traceroute/traceroute.c
1381
pmtu = ntohs(icp->icmp_nextmtu);
usr.sbin/traceroute/traceroute.c
1460
return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) &&
usr.sbin/traceroute/traceroute.c
1461
ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq));
usr.sbin/traceroute/traceroute.c
1486
return (ntohs(udp->uh_sport) == ident + (fixedPort ? seq : 0) &&
usr.sbin/traceroute/traceroute.c
1487
ntohs(udp->uh_dport) == port + (fixedPort ? 0 : seq));
usr.sbin/traceroute/traceroute.c
1512
return (ntohs(tcp->th_sport) == ident
usr.sbin/traceroute/traceroute.c
1513
&& ntohs(tcp->th_dport) == port + (fixedPort ? 0 : seq)
usr.sbin/traceroute/traceroute.c
1597
if (ntohs(sctp->src_port) != ident ||
usr.sbin/traceroute/traceroute.c
1598
ntohs(sctp->dest_port) != port + (fixedPort ? 0 : seq))
usr.sbin/traceroute/traceroute.c
1629
return (ntohs(gre->proto) == port
usr.sbin/traceroute/traceroute.c
1630
&& ntohs(gre->callId) == ident + seq);
usr.sbin/traceroute/traceroute.c
1647
return (ntohs(ptr[0]) == ident
usr.sbin/traceroute/traceroute.c
1648
&& ntohs(ptr[1]) == port + seq);
usr.sbin/traceroute6/traceroute6.c
884
srcport = ntohs(Src.sin6_port);
usr.sbin/ypbind/ypbind.c
266
if (ntohs(fromsin->sin_port) >= IPPORT_RESERVED) {
usr.sbin/ypbind/ypbind.c
856
if ((ypsecuremode && (ntohs(raddrp->sin_port) >= IPPORT_RESERVED))) {
usr.sbin/ypbind/ypbind.c
858
inet_ntoa(raddrp->sin_addr), ntohs(raddrp->sin_port),
usr.sbin/ypldap/ldapclient.c
105
if (ntohs(sa_in->sin_port) == 0)
usr.sbin/ypldap/ldapclient.c
111
if (ntohs(sa_in6->sin6_port) == 0)
usr.sbin/ypserv/yp_access.c
242
ntohs(rqhost->sin_port));
usr.sbin/ypserv/yp_access.c
253
ntohs(rqhost->sin_port));
usr.sbin/ypserv/yp_access.c
265
ntohs(rqhost->sin_port) >= IPPORT_RESERVED) {
usr.sbin/ypserv/yp_access.c
267
not privileged", map, inet_ntoa(rqhost->sin_addr), ntohs(rqhost->sin_port));
usr.sbin/ypserv/yp_access.c
304
ntohs(rqhost->sin_port),
usr.sbin/ypserv/yp_dnslookup.c
185
id = ntohs(hptr->id);
usr.sbin/ypserv/yp_dnslookup.c
375
(q = yp_find_dnsqent(ntohs(hptr->id), BY_DNS_ID)) == NULL) {