bin/date/netdate.c
177
msg.tsp_time.tv_sec = ntohl(msg.tsp_time.tv_sec);
bin/date/netdate.c
178
msg.tsp_time.tv_usec = ntohl(msg.tsp_time.tv_usec);
common/include/rpc/xdr.h
253
#define IXDR_GET_INT32(buf) ((int32_t)ntohl((uint32_t)*(buf)++))
common/include/rpc/xdr.h
258
#define IXDR_GET_LONG(buf) ((long)ntohl((uint32_t)*(buf)++))
common/lib/libc/rpc/xdr_mem.c
147
*lp = ntohl(*(u_int32_t *)xdrs->x_private);
common/lib/libc/rpc/xdr_mem.c
173
*lp = ntohl(l);
crypto/dist/ipsec-tools/src/libipsec/key_debug.c
373
(u_int32_t)ntohl(sa->sadb_sa_spi), sa->sadb_sa_replay,
crypto/dist/ipsec-tools/src/libipsec/key_debug.c
724
(u_int32_t)ntohl(sav->spi), sav->flags);
crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c
366
(u_int32_t)ntohl(m_sa->sadb_sa_spi),
crypto/dist/ipsec-tools/src/libipsec/pfkey_dump.c
367
(u_int32_t)ntohl(m_sa->sadb_sa_spi),
crypto/dist/ipsec-tools/src/racoon/backupsa.c
151
sa_args->satype, (unsigned long)ntohl(sa_args->spi),
crypto/dist/ipsec-tools/src/racoon/backupsa.c
267
sa_args.spi = ntohl(sa_args.spi);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1145
if (check_doi(ntohl(sab->doi)) < 0)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1148
*doitype = ntohl(sab->doi);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1151
if (check_situation(ntohl(sab->sit)) < 0)
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1154
*sittype = ntohl(sab->sit);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1653
ld = ntohl(*(uint32_t *)buf->v);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
1706
value = ntohl(*(uint32_t *)(d + 1));
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
493
sa->dhgrp->gen1 = ntohl(sa->dhgrp->gen1);
crypto/dist/ipsec-tools/src/racoon/ipsec_doi.c
507
sa->dhgrp->gen2 = ntohl(sa->dhgrp->gen2);
crypto/dist/ipsec-tools/src/racoon/isakmp.c
273
if (len < sizeof(isakmp) || ntohl(isakmp.len) < sizeof(isakmp)) {
crypto/dist/ipsec-tools/src/racoon/isakmp.c
276
len, ntohl(isakmp.len), sizeof(isakmp));
crypto/dist/ipsec-tools/src/racoon/isakmp.c
288
if (ntohl(isakmp.len) > 0xffff) {
crypto/dist/ipsec-tools/src/racoon/isakmp.c
301
if ((tmpbuf = vmalloc(ntohl(isakmp.len) + extralen)) == NULL) {
crypto/dist/ipsec-tools/src/racoon/isakmp.c
304
ntohl(isakmp.len) + extralen);
crypto/dist/ipsec-tools/src/racoon/isakmp.c
3249
ntohl(sa->sadb_sa_spi));
crypto/dist/ipsec-tools/src/racoon/isakmp.c
3267
ntohl(sa->sadb_sa_spi),
crypto/dist/ipsec-tools/src/racoon/isakmp.c
3290
ntohl(sa->sadb_sa_spi));
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
1862
tmp = ntohl(iph1->mode_cfg->mask4.s_addr);
crypto/dist/ipsec-tools/src/racoon/isakmp_cfg.c
819
htonl(ntohl(isakmp_cfg_config.network4)
crypto/dist/ipsec-tools/src/racoon/isakmp_frag.c
169
return ntohl(hp[MD5_DIGEST_LENGTH / sizeof(*hp)]);
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1063
plog(LLV_DEBUG2, LOCATION, NULL, "SPI: %08X\n", ntohl(spi[0]));
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1115
plog(LLV_DEBUG2, LOCATION, NULL, "spi: %u\n", ntohl(sa->sadb_sa_spi));
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1129
ntohl(spi[i]), ntohl(sa->sadb_sa_spi));
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1153
ntohl(spi[i]));
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1321
"purging spi=%u.\n", ntohl(sa->sadb_sa_spi));
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
1401
seq = ntohl(ru->data);
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
451
if (ntohl(delete->doi) != IPSEC_DOI) {
crypto/dist/ipsec-tools/src/racoon/isakmp_inf.c
454
ntohl(delete->doi));
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
1127
tlen = ntohl(isakmp->len) - sizeof(*isakmp);
crypto/dist/ipsec-tools/src/racoon/isakmp_quick.c
462
+ ntohl(isakmp->len) - sizeof(*isakmp);
crypto/dist/ipsec-tools/src/racoon/isakmp_unity.c
398
tmp3 = ntohl(netentry->network.mask4.s_addr);
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1748
&& IN_MULTICAST(ntohl(((struct sockaddr_in *)sp_dst)->sin_addr.s_addr)))
crypto/dist/ipsec-tools/src/racoon/pfkey.c
1761
&& IN_MULTICAST(ntohl(((struct sockaddr_in *)sp_src)->sin_addr.s_addr)))
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3937
snprintf(p, blen, "spi=%lu(0x%lx)", (unsigned long)ntohl(spi),
crypto/dist/ipsec-tools/src/racoon/pfkey.c
3938
(unsigned long)ntohl(spi));
crypto/dist/ipsec-tools/src/racoon/proposal.c
931
(unsigned long)ntohl(pr->spi),
crypto/dist/ipsec-tools/src/racoon/proposal.c
932
(unsigned long)ntohl(pr->spi_p),
crypto/dist/ipsec-tools/src/setkey/setkey.c
598
spi[(*num_spi)++] = (uint32_t)ntohl(sa->sadb_sa_spi);
crypto/dist/ipsec-tools/src/setkey/setkey.c
941
printf(" %08x", (uint32_t)ntohl(sa->sadb_sa_spi));
dist/pf/sbin/pfctl/pf_print_state.c
299
ntohl(s->creatorid),
dist/pf/sbin/pfctl/pf_print_state.c
315
tmp = ntohl(m->addr32[j]);
dist/pf/sbin/pfctl/pfctl.c
1771
printf("set hostid 0x%08x\n", ntohl(hostid));
dist/pf/sbin/pfctl/pfctl_parser.c
564
printf("Hostid: 0x%08x\n", ntohl(s->hostid));
games/adventure/save.c
786
version = ntohl(version);
games/adventure/save.c
805
key = ntohl(key);
games/adventure/save.c
819
val = ntohl(val);
games/adventure/save.c
833
val = ntohl(val);
games/adventure/save.c
854
sum = ntohl(sum);
games/hunt/hunt/playit.c
443
if (ntohl(version) != (uint32_t)HUNT_VERSION) {
games/hunt/hunt/playit.c
99
if (ntohl(version) != (uint32_t)HUNT_VERSION) {
games/hunt/huntd/answer.c
114
uid = ntohl(uid);
games/hunt/huntd/answer.c
118
enter_status = ntohl(enter_status);
games/hunt/huntd/answer.c
121
mode = ntohl(mode);
games/hunt/huntd/answer.c
90
machine = ntohl(machine);
games/robots/score.c
75
max_uid = ntohl(max_uid);
games/robots/score.c
77
scp->s_uid = ntohl(scp->s_uid);
games/robots/score.c
78
scp->s_score = ntohl(scp->s_score);
games/robots/score.c
79
scp->s_auto = ntohl(scp->s_auto);
games/robots/score.c
80
scp->s_level = ntohl(scp->s_level);
lib/libc/compat/net/compat_ns_ntoa.c
62
sprintf(obuf, "%x", ntohl(net.long_e));
lib/libc/inet/inet_lnaof.c
58
in_addr_t i = ntohl(in.s_addr);
lib/libc/inet/inet_netof.c
57
in_addr_t i = ntohl(in.s_addr);
lib/libc/net/getnameinfo.c
322
ntohl(((const struct sockaddr_in *)
lib/libc/net/sctp_sys_calls.c
55
(*(const u_int32_t *)(const void *)(&(a)->s6_addr[8]) == ntohl(0x0000ffff)))
lib/libc/nls/catgets.c
69
u = ntohl((u_int32_t)cat_hdr->__nsets) - 1;
lib/libc/nls/catgets.c
72
r = set_id - ntohl((u_int32_t)set_hdr[i].__setno);
lib/libc/nls/catgets.c
78
ntohl((u_int32_t)cat_hdr->__msg_hdr_offset));
lib/libc/nls/catgets.c
80
l = ntohl((u_int32_t)set_hdr[i].__index);
lib/libc/nls/catgets.c
81
u = l + ntohl((u_int32_t)set_hdr[i].__nmsgs) - 1;
lib/libc/nls/catgets.c
85
ntohl((u_int32_t)msg_hdr[i].__msgno);
lib/libc/nls/catgets.c
89
ntohl((u_int32_t)
lib/libc/nls/catgets.c
91
ntohl((u_int32_t)
lib/libc/nls/catopen.c
183
if (ntohl((u_int32_t)((struct _nls_cat_hdr *)data)->__magic) !=
lib/libc/resolv/res_init.c
745
register uint32_t i = ntohl(in.s_addr);
lib/libc/rpc/clnt_dg.c
640
ntohl(*(u_int32_t *)(void *)cu->cu_outbuf);
lib/libc/rpc/clnt_dg.c
658
ntohl(*(u_int32_t *)(void *)(cu->cu_outbuf +
lib/libc/rpc/clnt_dg.c
675
ntohl(*(u_int32_t *)(void *)(cu->cu_outbuf +
lib/libc/rpc/clnt_vc.c
166
tmp = ntohl(tmp);
lib/libc/rpc/clnt_vc.c
392
x_id = ntohl(--(*msg_x_id));
lib/libc/rpc/xdr_rec.c
259
*lp = (long)ntohl((uint32_t)(*buflp));
lib/libc/rpc/xdr_rec.c
266
*lp = (long)ntohl((uint32_t)mylong);
lib/libc/rpc/xdr_rec.c
559
rstrm->in_header = ntohl(rstrm->in_header);
lib/libc/rpc/xdr_rec.c
711
header = ntohl(header);
lib/libc/rpc/xdr_stdio.c
124
*lp = (long)ntohl(temp);
lib/libisns/isns_pdu.c
1034
*uint32_p = ntohl(*(uint32_t *)isns_buffer_data(info_p->buf_p,
lib/libisns/isns_util.h
43
#define isns_ntohl ntohl
lib/libradius/radlib.c
1062
*vendor = ntohl(attr->vendor_value);
lib/libradius/radlib.c
663
return ntohl(value);
lib/libresolv/res_mkupdate.c
218
n1 = ntohl(ina.s_addr);
lib/libresolv/res_mkupdate.c
344
n1 = ntohl(ina.s_addr);
lib/libwrap/hosts_access.c
369
host_address = ntohl(host_address);
libexec/talkd/print.c
106
cp, tp, ap, ntohl(rp->id_num));
libexec/talkd/process.c
76
mp->id_num = ntohl(mp->id_num);
libexec/talkd/process.c
79
mp->pid = ntohl(mp->pid);
sbin/cgdconfig/utils.c
370
nbits = ntohl(*tmp);
sbin/fsck_ffs/setup.c
626
if (ntohl(appleufs->ul_magic) != APPLEUFS_LABEL_MAGIC) {
sbin/fsck_ffs/setup.c
639
if (ntohl(appleufs->ul_version) != APPLEUFS_LABEL_VERSION) {
sbin/fsck_ffs/setup.c
641
ntohl(appleufs->ul_version),APPLEUFS_LABEL_VERSION);
sbin/ifconfig/af_inet.c
85
return ntohl(sin.sin_addr.s_addr);
sbin/iscsictl/iscsic_driverif.c
534
bsz = ntohl(n);
sbin/iscsictl/iscsic_driverif.c
613
llen = ntohl(n);
sbin/iscsid/iscsid_discover.c
178
u32 = ntohl(*((uint32_t *) data_p));
sbin/iscsid/iscsid_discover.c
270
u32 = ntohl(*((uint32_t *) data_p));
sbin/iscsid/iscsid_discover.c
288
u32 = ntohl(*((uint32_t *) data_p));
sbin/iscsid/iscsid_discover.c
656
u32 = ntohl(*((uint32_t *) data_p));
sbin/mount_nfs/getnfsargs_small.c
183
return ntohl(repl->errval);
sbin/ping/ping.c
1112
tv.tv_sec = (uint32_t)ntohl(tv32.tv32_sec);
sbin/ping/ping.c
1113
tv.tv_nsec = ntohl(tv32.tv32_usec) * 1000;
sbin/ping/ping.c
487
if (IN_MULTICAST(ntohl(whereto.sin_addr.s_addr)))
sbin/ping6/ping6.c
1345
tp.tv_sec = ntohl(tpp->tv32_sec);
sbin/ping6/ping6.c
1346
tp.tv_usec = ntohl(tpp->tv32_usec);
sbin/ping6/ping6.c
1510
ttl = (int32_t)ntohl(*(u_long *)&buf[off+ICMP6ECHOLEN+8]);
sbin/ping6/ping6.c
1636
(u_int32_t)ntohl(value4));
sbin/ping6/ping6.c
1787
v = (u_int32_t)ntohl(v);
sbin/ping6/ping6.c
1837
ttl = (u_int32_t)ntohl(*(u_int32_t *)cp);
sbin/ping6/ping6.c
2085
(int)ntohl(icp->icmp6_mtu));
sbin/ping6/ping6.c
2123
(u_int32_t)ntohl(icp->icmp6_pptr));
sbin/ping6/ping6.c
2292
(ip6->ip6_vfc & IPV6_VERSION_MASK) >> 4, tc, (u_int32_t)ntohl(flow),
sbin/route/route.c
1749
ms.s_addr = ntohl(su->smpls.smpls_addr.s_addr);
sbin/route/route.c
1756
ms.s_addr = ntohl(pms->s_addr);
sbin/route/route.c
956
val = ntohl(val);
sbin/route/rtutil.c
567
m = ntohl(m);
sbin/route/rtutil.c
572
in = ntohl(in);
sbin/route/rtutil.c
773
ms.s_addr = ntohl(pms->s_addr);
sbin/route/rtutil.c
779
ms.s_addr = ntohl(pms->s_addr);
sbin/routed/defs.h
625
#define on_net(a,net,mask) on_net_h(ntohl(a),net,mask)
sbin/routed/if.c
289
addr = ntohl(addr); /* was a host, not a network */
sbin/routed/if.c
366
if ((ntohl(addr) & ~mask) != 0)
sbin/routed/if.c
377
addr = ntohl(addr);
sbin/routed/if.c
416
if (on_net(ifp->int_dstaddr, ntohl(dstaddr),mask))
sbin/routed/if.c
817
if (ntohl(ifs.int_addr)>>24 == 0
sbin/routed/if.c
818
|| ntohl(ifs.int_addr)>>24 == 0xff) {
sbin/routed/if.c
834
ifs.int_net = ntohl(ifs.int_dstaddr);
sbin/routed/if.c
855
if (ntohl(ifs.int_dstaddr)>>24 == 0
sbin/routed/if.c
856
|| ntohl(ifs.int_dstaddr)>>24 == 0xff) {
sbin/routed/if.c
867
ifs.int_ripv1_mask = ntohl(S_ADDR(INFO_MASK(&info)));
sbin/routed/if.c
869
ifs.int_net = ntohl(ifs.int_dstaddr);
sbin/routed/if.c
882
ifs.int_mask = ntohl(S_ADDR(INFO_MASK(&info)));
sbin/routed/if.c
885
ifs.int_net = ntohl(ifs.int_addr) & ifs.int_mask;
sbin/routed/input.c
282
n->n_metric = ntohl(n->n_metric);
sbin/routed/input.c
386
|| 0 == (mask = ntohl(n->n_mask))
sbin/routed/input.c
387
|| 0 != (ntohl(dst) & ~mask))
sbin/routed/input.c
607
n->n_metric = ntohl(n->n_metric);
sbin/routed/input.c
663
|| 0 == (mask = ntohl(n->n_mask))) {
sbin/routed/input.c
665
} else if ((ntohl(dst) & ~mask) != 0) {
sbin/routed/input.c
765
dst = ntohl(dst) + ddst_h;
sbin/routed/output.c
499
ntohl(dst), RT->rt_mask))
sbin/routed/output.c
514
ntohl(dst), RT->rt_mask))
sbin/routed/output.c
700
ws.to_std_net = ntohl(ws.to.sin_addr.s_addr) & ws.to_std_mask;
sbin/routed/output.c
710
ws.to_net = ntohl(ws.to.sin_addr.s_addr) & ws.to_mask;
sbin/routed/parms.c
1048
if (ntohl(in.s_addr)>>24 == 0
sbin/routed/parms.c
1049
|| ntohl(in.s_addr)>>24 == 0xff)
sbin/routed/parms.c
340
ifp->int_net = ntohl(dst);
sbin/routed/parms.c
990
in.s_addr = ntohl(in.s_addr);
sbin/routed/rdisc.c
142
naddr_ntoa(wp[0]), (int)ntohl(wp[1]));
sbin/routed/rdisc.c
151
(int)ntohl(p->so.icmp_so_rsvd));
sbin/routed/rdisc.c
608
pref = UNSIGN_PREF(ntohl(pref));
sbin/routed/rtquery/rtquery.c
670
mask = ntohl(n->n_mask);
sbin/routed/rtquery/rtquery.c
698
if ((ntohl(in.s_addr) & ~mask) != 0)
sbin/routed/rtquery/rtquery.c
749
(int)ntohl(na->au.a_md5.md5_seqno),
sbin/routed/rtquery/rtquery.c
787
net_buf, (int)ntohl(n->n_metric), name);
sbin/routed/rtquery/rtquery.c
813
addr = ntohl(addr); /* was a host, not a network */
sbin/routed/rtquery/rtquery.c
856
in.s_addr = ntohl(in.s_addr);
sbin/routed/table.c
1126
if (IN_MULTICAST(ntohl(S_ADDR(INFO_DST(&info)))))
sbin/routed/table.c
1259
? ntohl(S_ADDR(INFO_MASK(&info)))
sbin/routed/table.c
1268
if (IN_MULTICAST(ntohl(S_ADDR(INFO_DST(&info))))) {
sbin/routed/table.c
1445
&& ntohl(RT->rt_dst) == RT->rt_gate)
sbin/routed/table.c
301
dst = ntohl(dst);
sbin/routed/table.c
900
mask = ntohl(S_ADDR(INFO_MASK(info)));
sbin/routed/trace.c
1000
ntohl(n->n_mask),
sbin/routed/trace.c
1005
ntohl(n->n_mask),
sbin/routed/trace.c
1009
(u_int)ntohl(n->n_metric));
sbin/routed/trace.c
929
&& ntohl(n->n_metric) == HOPCNT_INFINITY
sbin/routed/trace.c
940
(u_int)ntohl(n->n_mask));
sbin/routed/trace.c
973
(int)ntohl(NA->au.a_md5.md5_seqno),
sbin/routed/trace.c
996
(u_int)ntohl(n->n_mask));
share/examples/refuse/ian/libfetch/ftp.c
825
a = ntohl(sin4->sin_addr.s_addr);
sys/altq/altq_blue.c
578
flowlabel = ntohl(ip6->ip6_flow);
sys/altq/altq_cdnr.c
155
pktinfo.pkt_dscp = (ntohl(flowlabel) >> 20) & DSCP_MASK;
sys/altq/altq_cdnr.c
187
flowlabel = ntohl(ip6->ip6_flow);
sys/altq/altq_red.c
597
flowlabel = ntohl(ip6->ip6_flow);
sys/altq/altq_subr.c
672
flowlabel = ntohl(ip6->ip6_flow);
sys/altq/altq_subr.c
732
flowlabel = ntohl(ip6->ip6_flow);
sys/altq/altq_subr.c
841
fin6->fi6_tclass = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/altq/altq_wfq.c
334
val = ntohl(fp6->fi6_flowlabel);
sys/altq/altq_wfq.c
358
val = ntohl(fp6->fi6_flowlabel);
sys/altq/altq_wfq.c
382
val = ntohl(fp6->fi6_flowlabel);
sys/arch/hpc/hpc/platid.c
56
pid->dw.dw0 = ntohl(pid->dw.dw0);
sys/arch/hpc/hpc/platid.c
57
pid->dw.dw1 = ntohl(pid->dw.dw1);
sys/arch/hpc/stand/include/machine/endian.h
150
#define NTOHL(x) (x) = ntohl((uint32_t)(x))
sys/arch/hpc/stand/include/machine/endian.h
87
uint32_t ntohl(uint32_t) __attribute__((__const__));
sys/arch/hppa/stand/xxboot/iplsum.c
68
if ((ntohl(bootblk[0]) & 0xffff0000) != 0x80000000) {
sys/arch/hppa/stand/xxboot/iplsum.c
72
iploff = ntohl(bootblk[0xf0 / sizeof(uint32_t)]);
sys/arch/hppa/stand/xxboot/iplsum.c
73
iplsumsize = ntohl(bootblk[0xf4 / sizeof(uint32_t)]);
sys/arch/hppa/stand/xxboot/iplsum.c
86
sum += ntohl(*p);
sys/arch/hppa/stand/xxboot/iplsum.c
88
bootblk[SUMOFF] = htonl(ntohl(bootblk[SUMOFF]) - sum);
sys/arch/i386/i386/aout_machdep.c
90
midmag = ntohl(execp->a_midmag);
sys/arch/m68k/m68k/m68k_machdep.c
737
midmag = ntohl(execp->a_midmag);
sys/arch/usermode/usermode/thunk.c
1455
ntohl(*(uint32_t *)&key_event[3]);
sys/arch/usermode/usermode/thunk.c
1486
msg_len = ntohl(*(uint32_t *)&client_cut_text[3]);
sys/arch/x86/x86/via_padlock.c
217
ses->ses_ekey[i] = ntohl(ses->ses_ekey[i]);
sys/arch/x86/x86/via_padlock.c
218
ses->ses_dkey[i] = ntohl(ses->ses_dkey[i]);
sys/arch/xen/x86/autoconf.c
206
nd->nd_myip.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[0]);
sys/arch/xen/x86/autoconf.c
207
nd->nd_gwip.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[2]);
sys/arch/xen/x86/autoconf.c
208
nd->nd_mask.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[3]);
sys/arch/xen/x86/autoconf.c
214
sin->sin_addr.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[1]);
sys/arch/xen/xen/if_xennet_xenbus.c
1451
nd->nd_myip.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[0]);
sys/arch/xen/xen/if_xennet_xenbus.c
1452
nd->nd_gwip.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[2]);
sys/arch/xen/xen/if_xennet_xenbus.c
1453
nd->nd_mask.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[3]);
sys/arch/xen/xen/if_xennet_xenbus.c
1459
sin->sin_addr.s_addr = ntohl(xcp.xcp_netinfo.xi_ip[1]);
sys/compat/m68k4k/m68k4k_exec.c
127
midmag = ntohl(execp->a_midmag);
sys/compat/netbsd32/netbsd32_exec_aout.c
109
midmag = (netbsd32_u_long)ntohl(execp->a_midmag);
sys/compat/netbsd32/netbsd32_exec_aout.c
426
midmag = ntohl(execp->a_midmag);
sys/compat/vax1k/vax1k_exec.c
123
midmag = ntohl(execp->a_midmag);
sys/dev/ic/bwfm.c
2191
" reason %u\n", __func__, e, len, ntohl(e->msg.datalen),
sys/dev/ic/bwfm.c
2192
ntohl(e->msg.event_type), ntohl(e->msg.status),
sys/dev/ic/bwfm.c
2193
ntohl(e->msg.reason)));
sys/dev/ic/bwfm.c
2195
if (ntohl(e->msg.event_type) >= BWFM_E_LAST) {
sys/dev/ic/bwfm.c
2200
switch (ntohl(e->msg.event_type)) {
sys/dev/ic/bwfm.c
2205
if (ntohl(e->msg.status) != BWFM_E_STATUS_PARTIAL) {
sys/dev/ic/bwfm.c
2244
if (ntohl(e->msg.status) == BWFM_E_STATUS_SUCCESS) {
sys/dev/ic/bwfm.c
2252
if (ntohl(e->msg.status) == BWFM_E_STATUS_SUCCESS) {
sys/dev/ic/bwfm.c
2260
if (ntohl(e->msg.status) == BWFM_E_STATUS_SUCCESS &&
sys/dev/ic/bwfm.c
2261
ntohl(e->msg.reason) == 0)
sys/dev/ic/hd64570.c
1626
switch (ntohl(cisco->type)) {
sys/dev/ic/hd64570.c
1643
ntohl(cisco->par1), ntohl(cisco->par2),
sys/dev/ic/hd64570.c
1647
scp->cka_lastrx = ntohl(cisco->par1);
sys/dev/ic/hd64570.c
1676
ntohl(cisco->type)));
sys/dev/ieee1394/firewire.c
1070
printf("0x%08x ", ntohl(qld[i/4]));
sys/dev/ieee1394/firewire.c
1141
fp->mode.hdr.src, ntohl(fp->mode.wreqq.data));
sys/dev/ieee1394/firewire.c
1653
quad[i] = ntohl(tmp);
sys/dev/ieee1394/firewire.c
2237
bmr = ntohl(xfer->recv.payload[0]);
sys/dev/ieee1394/fwcrom.c
208
*bp++ = ntohl(textleaf->text[i]);
sys/dev/ieee1394/fwcrom.c
474
tl->text[i] = ntohl(*p++);
sys/dev/ieee1394/fwdev.c
663
((uint32_t *)ptr)[i] = ntohl(fc->config_rom[i]);
sys/dev/ieee1394/fwohci.c
2008
OWRITE(sc, OHCI_CROMHDR, ntohl(sc->fc.config_rom[0]));
sys/dev/ieee1394/fwohci.c
2009
OWRITE(sc, OHCI_BUS_OPT, ntohl(sc->fc.config_rom[2]));
sys/dev/ieee1394/fwohci.c
779
OWRITE(sc, OHCI_CROMHDR, ntohl(sc->fc.config_rom[0]));
sys/dev/ieee1394/fwohci.c
780
OWRITE(sc, OHCI_BUS_OPT, ntohl(sc->fc.config_rom[2]));
sys/dev/ieee1394/if_fwip.c
620
eui.hi = ntohl(destfw->sender_unique_ID_hi);
sys/dev/ieee1394/if_fwip.c
621
eui.lo = ntohl(destfw->sender_unique_ID_lo);
sys/dev/ieee1394/if_fwip.c
643
ntohl(destfw->sender_unicast_FIFO_lo);
sys/dev/ieee1394/if_fwip.c
749
if ((((ntohl(p[1]) & 0xffff) << 8) | ntohl(p[2]) >> 24) !=
sys/dev/ieee1394/if_fwip.c
751
(ntohl(p[2]) & 0xffffff) != 1) {
sys/dev/ieee1394/if_fwip.c
753
ntohl(p[1]), ntohl(p[2]));
sys/dev/ieee1394/if_fwip.c
762
src = ntohl(p[1]) >> 16;
sys/dev/ieee1394/sbp.c
1782
sdev->bustgtlun, ntohl(sbp_status->orb_lo));
sys/dev/ieee1394/sbp.c
1809
ntohs(sbp_status->orb_hi), ntohl(sbp_status->orb_lo));
sys/dev/ieee1394/sbp.c
1848
switch (ntohl(ocb->orb[4]) & ORB_FMT_MSK) {
sys/dev/ieee1394/sbp.c
1856
orb_fun = ntohl(ocb->orb[4]) & ORB_FUN_MSK;
sys/dev/ieee1394/sbp.c
1872
login_res->cmd_lo = ntohl(login_res->cmd_lo);
sys/dev/ieee1394/sbp.c
2362
const int flag = (ntohl(ocb->orb[4]) & ORB_CMD_IN) ?
sys/dev/ieee1394/sbp.c
2394
__func__, sdev->bustgtlun, ntohl(sbp_status->orb_lo),
sys/dev/ieee1394/sbp.c
2407
if (ntohl(ocb->orb[4]) & 0xffff) {
sys/dev/ieee1394/sbp.c
2409
(ntohl(ocb->orb[4]) & ORB_CMD_IN) ?
sys/dev/ieee1394/sbp.c
2559
if (ntohl(ocb->orb[4]) & 0xffff) {
sys/dev/ieee1394/sbp.c
2560
const int flag = (ntohl(ocb->orb[4]) & ORB_CMD_IN) ?
sys/dev/ieee1394/sbp.c
271
#define OCB_MATCH(o,s) ((o)->bus_addr == ntohl((s)->orb_lo))
sys/dev/iscsi/iscsi_rcv.c
1014
ntohl(pdu->pdu_hdr.pduh_p.nop_in.StatSN)));
sys/dev/iscsi/iscsi_rcv.c
1079
ntohl(pdu->pdu_hdr.pduh_p.response.StatSN),
sys/dev/iscsi/iscsi_rcv.c
1080
ntohl(pdu->pdu_hdr.pduh_p.response.ExpCmdSN),
sys/dev/iscsi/iscsi_rcv.c
1081
ntohl(pdu->pdu_hdr.pduh_p.response.MaxCmdSN),
sys/dev/iscsi/iscsi_rcv.c
1082
ntohl(pdu->pdu_hdr.pduh_p.response.ExpDataSN)));
sys/dev/iscsi/iscsi_rcv.c
1091
offset = ntohl(pdu->pdu_hdr.pduh_p.data_in.BufferOffset);
sys/dev/iscsi/iscsi_rcv.c
1164
ExpCmdSN = ntohl(pdu->pdu_hdr.pduh_p.nop_in.ExpCmdSN);
sys/dev/iscsi/iscsi_rcv.c
1165
MaxCmdSN = ntohl(pdu->pdu_hdr.pduh_p.nop_in.MaxCmdSN);
sys/dev/iscsi/iscsi_rcv.c
347
uint32_t sn = ntohl(nw_sn);
sys/dev/iscsi/iscsi_rcv.c
400
uint32_t sn = ntohl(nw_sn);
sys/dev/iscsi/iscsi_rcv.c
456
ntohl(pdu->pdu_hdr.pduh_p.login_rsp.StatSN)));
sys/dev/iscsi/iscsi_rcv.c
474
ntohl(pdu->pdu_hdr.pduh_p.login_rsp.StatSN) + 1;
sys/dev/iscsi/iscsi_rcv.c
634
sn = ntohl(pdu->pdu_hdr.pduh_p.data_in.DataSN);
sys/dev/iscsi/iscsi_rcv.c
790
req_ccb->ccb_residual = ntohl(pdu->pdu_hdr.pduh_p.response.ResidualCount);
sys/dev/iscsi/iscsi_send.c
1378
offs = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.BufferOffset);
sys/dev/iscsi/iscsi_send.c
1379
totlen = ntohl(rx_pdu->pdu_hdr.pduh_p.r2t.DesiredDataTransferLength);
sys/dev/iscsi/iscsi_send.c
359
ntohl(pdu->pdu_hdr.pduh_p.command.CmdSN),
sys/dev/iscsi/iscsi_send.c
360
ntohl(pdu->pdu_hdr.pduh_p.command.ExpStatSN)));
sys/dev/iscsi/iscsi_send.c
495
ntohl(pdu->pdu_hdr.pduh_p.command.CmdSN),
sys/dev/iscsi/iscsi_send.c
570
ntohl(pdu->pdu_hdr.pduh_p.command.CmdSN),
sys/dev/pci/cxgb/cxgb_lro.c
120
if (__predict_false(G_HASHTYPE(ntohl(rss_hi)) != RSS_HASH_4_TUPLE ||
sys/dev/pci/cxgb/cxgb_lro.c
142
*ptr != ntohl((TCPOPT_NOP << 24) |
sys/dev/pci/cxgb/cxgb_lro.c
168
s->seq = ntohl(th->th_seq) + ip_len - sizeof(*ih) - (th->th_off << 2);
sys/dev/pci/cxgb/cxgb_lro.c
251
uint32_t seq = ntohl(nth->th_seq);
sys/dev/pci/cxgb/cxgb_lro.c
271
if (__predict_false(ntohl(*(ptr + 1)) > ntohl(*(nptr + 1)) ||
sys/dev/pci/cxgb/cxgb_offload.c
1111
unsigned int opcode = G_OPCODE(ntohl(m0->m_pkthdr.csum_data));
sys/dev/pci/cxgb/cxgb_offload.c
1120
G_TID(ntohl(p->opcode_tid)));
sys/dev/pci/cxgb/cxgb_offload.c
672
unsigned int atid = G_TID(ntohl(rpl->atid));
sys/dev/pci/cxgb/cxgb_offload.c
691
unsigned int stid = G_TID(ntohl(p->opcode_tid));
sys/dev/pci/cxgb/cxgb_offload.c
716
hwtid = G_TID(ntohl(p->opcode_tid));
sys/dev/pci/cxgb/cxgb_offload.c
735
unsigned int stid = G_PASS_OPEN_TID(ntohl(req->tos_tid));
sys/dev/pci/cxgb/cxgb_offload.c
754
unsigned int hwtid = G_TID(ntohl(p->opcode_tid));
sys/dev/pci/cxgb/cxgb_offload.c
793
unsigned int atid = G_PASS_OPEN_TID(ntohl(req->tos_tid));
sys/dev/pci/cxgb/cxgb_offload.c
839
unsigned int hwtid = ntohl(m_get_priority(m)) >> 8 & 0xfffff;
sys/dev/pci/cxgb/cxgb_offload.c
840
unsigned int opcode = G_OPCODE(ntohl(m->m_pkthdr.csum_data));
sys/dev/pci/cxgb/cxgb_sge.c
2204
unsigned int len_cq = ntohl(r->len_cq);
sys/dev/pci/cxgb/cxgb_sge.c
2208
uint32_t flags = ntohl(r->flags);
sys/dev/pci/cxgb/cxgb_sge.c
2271
unsigned int len_cq = ntohl(r->len_cq);
sys/dev/pci/cxgb/cxgb_sge.c
2275
uint32_t flags = ntohl(r->flags);
sys/dev/pci/cxgb/cxgb_sge.c
2405
uint32_t flags = ntohl(r->flags);
sys/dev/pci/cxgb/cxgb_sge.c
284
uint32_t flags = ntohl(resp->flags);
sys/dev/pci/cxgb/cxgb_sge.c
294
len = G_RSPD_LEN(ntohl(resp->len_cq));
sys/dev/pci/cxgb/cxgb_sge.c
328
len = G_RSPD_LEN(ntohl(resp->len_cq));
sys/dev/pci/cxgb/cxgb_t3_cpl.h
201
#define GET_TID(cmd) (G_TID(ntohl(OPCODE_TID(cmd))))
sys/dev/pci/cxgb/cxgb_t3_hw.c
1040
csum += ntohl(p[i]);
sys/dev/pci/cxgb/cxgb_t3_hw.c
935
csum += ntohl(p[i]);
sys/dev/pci/if_aq.c
4264
uint32_t key_data = sc->sc_rss_enable ? ntohl(rss_key[i]) : 0;
sys/dev/pci/ixgbe/ixgbe_osdep.h
135
#define IXGBE_NTOHL(_i) ntohl(_i)
sys/dev/pci/ubsec.c
144
#define SWAP32(x) (x) = htole32(ntohl((x)))
sys/dev/pci/xmm7360.c
1283
if (ntohl(first->tag) == XMM_TAG_ACBH)
sys/dev/pci/xmm7360.c
1286
if (ntohl(first->tag) != XMM_TAG_ADBH) {
sys/dev/pci/xmm7360.c
1292
if (ntohl(adth->tag) != XMM_TAG_ADTH) {
sys/dev/std/ieee1212.c
104
crclen = P1212_ROMFMT_GET_CRCLEN((ntohl(t[0])));
sys/dev/std/ieee1212.c
116
offset = P1212_ROMFMT_GET_INFOLEN((ntohl(t[0]))) + 1;
sys/dev/std/ieee1212.c
1190
sum = ((crc >> 12) ^ (ntohl(data[i]) >> shift)) &
sys/dev/std/ieee1212.c
1198
sum = ((crc >> 12) ^ ntohl(data[i])) & 0x0000000f;
sys/dev/std/ieee1212.c
145
newlen = P1212_DIRENT_GET_LEN((ntohl(t[offset])));
sys/dev/std/ieee1212.c
167
type = P1212_DIRENT_GET_KEYTYPE((ntohl(t[offset+i])));
sys/dev/std/ieee1212.c
168
val = P1212_DIRENT_GET_VALUE((ntohl(t[offset+i])));
sys/dev/std/ieee1212.c
198
P1212_DIRENT_GET_LEN((ntohl(t[test])));
sys/dev/std/ieee1212.c
282
crc = p1212_calc_crc(0, &t[1], P1212_ROMFMT_GET_CRCLEN((ntohl(t[0]))),
sys/dev/std/ieee1212.c
285
romcrc = P1212_ROMFMT_GET_CRC((ntohl(t[0])));
sys/dev/std/ieee1212.c
288
P1212_ROMFMT_GET_CRCLEN((ntohl(t[0]))), 1);
sys/dev/std/ieee1212.c
303
rom->len = P1212_ROMFMT_GET_INFOLEN((ntohl(t[0])));
sys/dev/std/ieee1212.c
374
crclen = P1212_DIRENT_GET_LEN((ntohl(t[offset])));
sys/dev/std/ieee1212.c
375
romcrc = P1212_DIRENT_GET_CRC((ntohl(t[offset])));
sys/dev/std/ieee1212.c
402
desc = ntohl(t[i]);
sys/dev/std/ieee1212.c
615
P1212_DIRENT_GET_KEY((ntohl(t[i])));
sys/dev/std/ieee1212.c
617
P1212_DIRENT_GET_VALUE((ntohl(t[i])));
sys/dev/std/ieee1212.c
652
P1212_DIRENT_GET_KEY((ntohl(t[i])));
sys/dev/std/ieee1212.c
654
P1212_DIRENT_GET_VALUE((ntohl(t[i])));
sys/dev/std/ieee1212.c
720
crclen = P1212_DIRENT_GET_LEN((ntohl(t[0])));
sys/dev/std/ieee1212.c
721
romcrc = P1212_DIRENT_GET_CRC((ntohl(t[0])));
sys/dev/std/ieee1212.c
742
leafdata->data[i] = ntohl(t[i]);
sys/dev/std/ieee1212.c
763
crclen = P1212_DIRENT_GET_LEN((ntohl(t[0])));
sys/dev/std/ieee1212.c
764
romcrc = P1212_DIRENT_GET_CRC((ntohl(t[0])));
sys/dev/std/ieee1212.c
775
entry = ntohl(t[i]);
sys/dev/std/ieee1212.c
813
crclen = P1212_DIRENT_GET_LEN((ntohl(t[0])));
sys/dev/std/ieee1212.c
814
romcrc = P1212_DIRENT_GET_CRC((ntohl(t[0])));
sys/dev/std/ieee1212.c
834
text->spec_type = P1212_TEXT_GET_Spec_Type((ntohl(t[0])));
sys/dev/std/ieee1212.c
835
text->spec_id = P1212_TEXT_GET_Spec_Id((ntohl(t[0])));
sys/dev/std/ieee1212.c
836
text->lang_id = ntohl(t[1]);
sys/dev/std/ieee1212.c
98
infolen = P1212_ROMFMT_GET_INFOLEN((ntohl(t[0])));
sys/dist/pf/net/if_pfsync.c
259
" %08x\n", ntohl(sp->creatorid));
sys/dist/pf/net/if_pfsync.c
277
ntohl(sp->rule) <
sys/dist/pf/net/if_pfsync.c
280
PF_RULESET_FILTER].active.ptr_array[ntohl(sp->rule)];
sys/dist/pf/net/if_pfsync.c
324
st->creation = time_second - ntohl(sp->creation);
sys/dist/pf/net/if_pfsync.c
325
st->expire = ntohl(sp->expire) + time_second;
sys/dist/pf/net/if_pfsync.c
555
ntohl(sp->src.seqlo)))
sys/dist/pf/net/if_pfsync.c
569
SEQ_GT(st->dst.seqlo, ntohl(sp->dst.seqlo)))
sys/dist/pf/net/if_pfsync.c
589
ntohl(st->creatorid));
sys/dist/pf/net/if_pfsync.c
606
st->expire = ntohl(sp->expire) + time_second;
sys/dist/pf/net/if_pfsync.c
694
ntohl(up->src.seqlo)))
sys/dist/pf/net/if_pfsync.c
697
SEQ_GT(st->dst.seqlo, ntohl(up->dst.seqlo)))
sys/dist/pf/net/if_pfsync.c
715
ntohl(st->creatorid));
sys/dist/pf/net/if_pfsync.c
733
st->expire = ntohl(up->expire) + time_second;
sys/dist/pf/net/if_pfsync.c
831
if (time_uptime - ntohl(bus->endtime) >=
sys/dist/pf/net/if_pfsync.h
218
(d)->seqlo = ntohl((s)->seqlo); \
sys/dist/pf/net/if_pfsync.h
219
(d)->seqhi = ntohl((s)->seqhi); \
sys/dist/pf/net/if_pfsync.h
220
(d)->seqdiff = ntohl((s)->seqdiff); \
sys/dist/pf/net/if_pfsync.h
230
(d)->scrub->pfss_ts_mod = ntohl((s)->scrub.pfss_ts_mod);\
sys/dist/pf/net/if_pfsync.h
250
d = ntohl(s[0]); \
sys/dist/pf/net/if_pfsync.h
252
d += ntohl(s[1]); \
sys/dist/pf/net/pf.c
1201
u_int32_t a = ntohl(addr->addr32[0]);
sys/dist/pf/net/pf.c
1624
htonl(ntohl(SACK_START) -
sys/dist/pf/net/pf.c
1627
htonl(ntohl(SACK_END) -
sys/dist/pf/net/pf.c
2165
addr->addr32[0] = htonl(ntohl(addr->addr32[0]) + 1);
sys/dist/pf/net/pf.c
2176
htonl(ntohl(addr->addr32[0]) + 1);
sys/dist/pf/net/pf.c
2179
htonl(ntohl(addr->addr32[1]) + 1);
sys/dist/pf/net/pf.c
2182
htonl(ntohl(addr->addr32[2]) + 1);
sys/dist/pf/net/pf.c
2185
htonl(ntohl(addr->addr32[3]) + 1);
sys/dist/pf/net/pf.c
3441
u_int32_t ack = ntohl(th->th_seq) + pd->p_len;
sys/dist/pf/net/pf.c
3459
ntohl(th->th_ack), ack, TH_RST|TH_ACK, 0, 0,
sys/dist/pf/net/pf.c
3541
s->src.seqlo = ntohl(th->th_seq);
sys/dist/pf/net/pf.c
3723
th->th_sport, s->src.seqhi, ntohl(th->th_seq) + 1,
sys/dist/pf/net/pf.c
3859
if (ntohl(th->th_seq) != (*state)->src.seqlo) {
sys/dist/pf/net/pf.c
3865
(*state)->src.seqhi, ntohl(th->th_seq) + 1,
sys/dist/pf/net/pf.c
3871
(ntohl(th->th_ack) != (*state)->src.seqhi + 1) ||
sys/dist/pf/net/pf.c
3872
(ntohl(th->th_seq) != (*state)->src.seqlo + 1)) {
sys/dist/pf/net/pf.c
3894
(ntohl(th->th_ack) != (*state)->src.seqhi + 1) ||
sys/dist/pf/net/pf.c
3895
(ntohl(th->th_seq) != (*state)->src.seqlo + 1)) {
sys/dist/pf/net/pf.c
3910
(ntohl(th->th_ack) != (*state)->dst.seqhi + 1)) {
sys/dist/pf/net/pf.c
3915
(*state)->dst.seqlo = ntohl(th->th_seq);
sys/dist/pf/net/pf.c
3918
ntohl(th->th_ack), ntohl(th->th_seq) + 1,
sys/dist/pf/net/pf.c
3954
orig_seq = seq = ntohl(th->th_seq);
sys/dist/pf/net/pf.c
3970
ack = ntohl(th->th_ack) - dst->seqdiff;
sys/dist/pf/net/pf.c
3976
ack = ntohl(th->th_ack);
sys/dist/pf/net/pf.c
4020
ack = ntohl(th->th_ack) - dst->seqdiff;
sys/dist/pf/net/pf.c
4223
th->th_sport, ntohl(th->th_ack), 0,
sys/dist/pf/net/pf.c
4627
seq = ntohl(th.th_seq) - src->seqdiff;
sys/dist/pf/net/pf.c
5967
(ntohl(pd.dst->v4.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET)
sys/dist/pf/net/pf.c
903
be64toh(s->id), ntohl(s->creatorid));
sys/dist/pf/net/pf.c
907
betoh64(s->id), ntohl(s->creatorid));
sys/dist/pf/net/pf_if.c
845
tmp = ntohl(m->addr32[j]);
sys/dist/pf/net/pf_norm.c
1201
jumbolen = ntohl(jumbolen);
sys/dist/pf/net/pf_norm.c
1456
src->scrub->pfss_tsval0 = ntohl(tsval);
sys/dist/pf/net/pf_norm.c
1457
src->scrub->pfss_tsval = ntohl(tsval);
sys/dist/pf/net/pf_norm.c
1458
src->scrub->pfss_tsecr = ntohl(tsecr);
sys/dist/pf/net/pf_norm.c
1566
tsval = ntohl(tsval);
sys/dist/pf/net/pf_norm.c
1581
tsecr = ntohl(tsecr)
sys/dist/pf/net/pfvar.h
326
(a)->addr32[0] = htonl(ntohl((a)->addr32[0]) + 1); \
sys/fs/adosfs/adutil.c
133
sum += ntohl(*lp++);
sys/fs/adosfs/adutil.c
184
return(ntohl(*((u_int32_t *)bp->b_data + wn)));
sys/fs/nfs/client/nfs_clport.c
1079
if ((ntohl(nh_ext.nh_src.s_addr) >> IN_CLASSA_NSHIFT) ==
sys/fs/nfs/client/nfs_clvfsops.c
494
l = ntohl(nd->root_saddr.sin_addr.s_addr);
sys/fs/nfs/client/nfs_clvfsops.c
514
inittodr(ntohl(nd->root_time));
sys/fs/nfs/common/bootp_subr.c
1253
ip = ntohl(addr.s_addr);
sys/fs/nfs/common/bootp_subr.c
1574
if (IN_CLASSA(ntohl(ifctx->myaddr.sin_addr.s_addr)))
sys/fs/nfs/common/bootp_subr.c
1576
else if (IN_CLASSB(ntohl(ifctx->myaddr.sin_addr.s_addr)))
sys/fs/nfs/common/krpc_subr.c
323
saddr = ntohl(sa->sin_addr.s_addr);
sys/fs/nfs/common/nfs_commonsubs.c
4023
portnum = ntohl(saddr.s_addr);
sys/fs/nfs/common/old_xdr_subs.h
53
#define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v)))
sys/fs/nfs/common/old_xdr_subs.h
58
(t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
sys/fs/nfs/common/old_xdr_subs.h
60
(t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
sys/fs/nfs/common/old_xdr_subs.h
75
(t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
sys/fs/nfs/common/old_xdr_subs.h
76
(t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
sys/fs/nfs/common/old_xdr_subs.h
85
((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
sys/fs/nfs/common/old_xdr_subs.h
86
(u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
sys/fs/nfs/common/xdr_subs.h
51
#define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v)))
sys/fs/nfs/common/xdr_subs.h
55
(t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
sys/fs/nfs/common/xdr_subs.h
57
(t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
sys/fs/nfs/common/xdr_subs.h
71
(t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
sys/fs/nfs/common/xdr_subs.h
72
(t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
sys/fs/nfs/common/xdr_subs.h
81
(t)->tv_sec = ntohl(((struct nfsv4_time *)(f))->nfsv4_sec); \
sys/fs/nfs/common/xdr_subs.h
82
(t)->tv_nsec = (ntohl(((struct nfsv4_time *)(f))->nfsv4_nsec) % \
sys/fs/nfs/common/xdr_subs.h
93
((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
sys/fs/nfs/common/xdr_subs.h
94
(u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
sys/kern/exec_aout.c
106
midmag = ntohl(execp->a_midmag);
sys/kern/uipc_mbufdebug.c
692
flow = ntohl(ip6.ip6_flow);
sys/kern/uipc_mbufdebug.c
830
(*pr)("TCP: Seq. = %u\n", ntohl(tcp.th_seq));
sys/kern/uipc_mbufdebug.c
831
(*pr)("TCP: Ack. = %u\n", ntohl(tcp.th_ack));
sys/kern/uipc_mbufdebug.c
922
ntohl(ts_val), ntohl(ts_ecr));
sys/lib/libkern/intoa.c
60
addr = ntohl(addr);
sys/lib/libsa/bootp.c
327
d->xid, ntohl(bp->bp_xid));
sys/lib/libsa/bootparam.c
196
x = ntohl((uint32_t)repl->encap_len);
sys/lib/libsa/bootparam.c
360
slen = ntohl(*lenp);
sys/lib/libsa/bootparam.c
425
ntohl((uint32_t)nxi->atype)));
sys/lib/libsa/bootparam.c
436
*cp++ = (u_char)ntohl(*ip++);
sys/lib/libsa/bootparam.c
437
*cp++ = (u_char)ntohl(*ip++);
sys/lib/libsa/bootparam.c
438
*cp++ = (u_char)ntohl(*ip++);
sys/lib/libsa/bootparam.c
439
*cp++ = (u_char)ntohl(*ip++);
sys/lib/libsa/nfs.c
203
errno = ntohl(repl->errno);
sys/lib/libsa/nfs.c
317
return ntohl(replv2->errno);
sys/lib/libsa/nfs.c
330
return ntohl(replv3->errno);
sys/lib/libsa/nfs.c
386
return ntohl(rdata.d.errno);
sys/lib/libsa/nfs.c
388
rdata.d.len = ntohl(rdata.d.len);
sys/lib/libsa/nfs.c
510
errno = ntohl(replv2->errno);
sys/lib/libsa/nfs.c
513
x = ntohl(replv2->count);
sys/lib/libsa/nfs.c
518
errno = ntohl(replv3->errno);
sys/lib/libsa/nfs.c
524
x = ntohl(replv3->length);
sys/lib/libsa/nfs.c
528
x = ntohl(replv3no->length);
sys/lib/libsa/nfs.c
79
return (uint64_t)ntohl(x[0]) << 32 | ntohl(x[1]);
sys/lib/libsa/nfs.c
866
size = ntohl(d->u_fa.v2.fa_size);
sys/lib/libsa/nfs.c
904
ftype = ntohl(fp->u_fa.v2.fa_type);
sys/lib/libsa/nfs.c
905
mode = ntohl(fp->u_fa.v2.fa_mode);
sys/lib/libsa/nfs.c
906
sb->st_nlink = ntohl(fp->u_fa.v2.fa_nlink);
sys/lib/libsa/nfs.c
907
sb->st_uid = ntohl(fp->u_fa.v2.fa_uid);
sys/lib/libsa/nfs.c
908
sb->st_gid = ntohl(fp->u_fa.v2.fa_gid);
sys/lib/libsa/nfs.c
909
sb->st_size = ntohl(fp->u_fa.v2.fa_size);
sys/lib/libsa/nfs.c
912
ftype = ntohl(fp->u_fa.v3.fa_type);
sys/lib/libsa/nfs.c
913
mode = ntohl(fp->u_fa.v3.fa_mode);
sys/lib/libsa/nfs.c
914
sb->st_nlink = ntohl(fp->u_fa.v3.fa_nlink);
sys/lib/libsa/nfs.c
915
sb->st_uid = ntohl(fp->u_fa.v3.fa_uid);
sys/lib/libsa/nfs.c
916
sb->st_gid = ntohl(fp->u_fa.v3.fa_gid);
sys/lib/libsa/rpc.c
209
x = ntohl(auth->authlen);
sys/lib/libsa/rpc.c
218
x = ntohl(reply->rp_u.rpu_rok.rok_status);
sys/lib/libsa/rpc.c
253
x = ntohl(reply->rp_xid);
sys/lib/libsa/rpc.c
263
x = ntohl(reply->rp_direction);
sys/lib/libsa/rpc.c
272
x = ntohl(reply->rp_astatus);
sys/lib/libsa/rpc.c
274
errno = ntohl(reply->rp_u.rpu_errno);
sys/lib/libsa/rpc.c
437
port = (int)ntohl(res->port);
sys/net/bridgestp.c
656
cu.cu_root_path_cost = ntohl(cpdu.cbu_rootpathcost);
sys/net/if_arcsubr.c
149
adst = ntohl(satocsin(dst)->sin_addr.s_addr) & 0xFF;
sys/net/if_mpls.c
250
mh.s_addr = ntohl(pms->s_addr);
sys/net/if_mpls.c
333
sh->s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
363
dst.smpls_addr.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
450
htag->s_addr = ntohl(htag->s_addr);
sys/net/if_mpls.c
459
tshim.s_addr = ntohl(htag->s_addr);
sys/net/if_mpls.c
540
ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_mpls.c
640
ms.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/net/if_spppsubr.c
1818
if (ntohl(u32) == sp->lcp.magic) {
sys/net/if_spppsubr.c
1853
if (ntohl(u32) != sp->lcp.magic)
sys/net/if_spppsubr.c
3874
if (ntohl(wantaddr) != INADDR_ANY) {
sys/net/if_spppsubr.c
5583
*srcmask = ntohl(sm->sin_addr.s_addr);
sys/net/if_spppsubr.c
5593
if (dst) *dst = ntohl(ddst);
sys/net/if_spppsubr.c
5594
if (src) *src = ntohl(ssrc);
sys/net/if_spppsubr.c
5632
myaddr = ntohl(si->sin_addr.s_addr);
sys/net/if_spppsubr.c
5637
hisaddr = ntohl(dest->sin_addr.s_addr);
sys/net/if_spppsubr.c
5715
ntohl(sp->ipcp.saved_hisaddr) != 0)
sys/net/if_spppsubr.c
6210
status->myaddr = ntohl(myaddr);
sys/net/if_stf.c
397
tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/net/if_stf.c
466
if ((ntohl(in->s_addr) & 0xff000000) >> 24 == 10 ||
sys/net/if_stf.c
467
(ntohl(in->s_addr) & 0xfff00000) >> 16 == 172 * 256 + 16 ||
sys/net/if_stf.c
468
(ntohl(in->s_addr) & 0xffff0000) >> 16 == 192 * 256 + 168)
sys/net/if_stf.c
486
switch ((ntohl(in->s_addr) & 0xff000000) >> 24) {
sys/net/if_stf.c
502
if (((ntohl(in->s_addr) & 0xff000000) >> 24) == 169 &&
sys/net/if_stf.c
503
((ntohl(in->s_addr) & 0x00ff0000) >> 16) == 254)
sys/net/if_stf.c
532
(uint32_t)ntohl(sin.sin_addr.s_addr));
sys/net/if_stf.c
638
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/net/if_tun.c
902
dst.sa_family = ntohl(family);
sys/net/lagg/if_lagg_lacp.c
1079
if (ntohl(mi->mi_rq_xid) != lacpp->lp_marker_xid)
sys/net/lagg/if_lagg_lacp.c
2733
ntohl(mi_info->mi_rq_xid));
sys/net/lagg/if_lagg_lacp.c
2740
ntohl(mi_res->mi_rq_xid));
sys/net/npf/npf_inet.c
257
*seq = ntohl(th->th_seq);
sys/net/npf/npf_inet.c
258
*ack = ntohl(th->th_ack);
sys/net/slcompress.c
148
(f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \
sys/net/slcompress.c
151
(f) = htonl(ntohl(f) + (uint32_t)*cp++); \
sys/net/slcompress.c
311
deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack);
sys/net/slcompress.c
319
deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq);
sys/net/slcompress.c
558
th->th_ack = htonl(ntohl(th->th_ack) + i);
sys/net/slcompress.c
559
th->th_seq = htonl(ntohl(th->th_seq) + i);
sys/net/slcompress.c
564
th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len)
sys/netatalk/ddp_input.c
156
ddps.dsh_bytes = ntohl(ddps.dsh_bytes);
sys/netatalk/ddp_input.c
188
ddpe.deh_bytes = ntohl(ddpe.deh_bytes);
sys/netinet/dccp_tfrc.c
1238
TFRC_DEBUG_TIME((LOG_INFO, "TFRC - Sending a feedback packet with (t_elapsed %u, pinv %x, x_recv %u, ack=%llu) (tfrc_recv_send_feedback)\n", ntohs(t_elapsed), ntohl(pinv), ntohl(x_recv), elm->seq));
sys/netinet/dccp_tfrc.c
880
t_elapsed_l = ntohl(t_elapsed_l);
sys/netinet/dccp_tfrc.c
881
x_recv = ntohl(x_recv);
sys/netinet/dccp_tfrc.c
882
pinv = ntohl(pinv);
sys/netinet/dccp_usrreq.c
1669
IN_MULTICAST(ntohl(sin->sin_addr.s_addr))) {
sys/netinet/dccp_usrreq.c
1726
&& IN_MULTICAST(ntohl(sin->sin_addr.s_addr))) {
sys/netinet/dccp_usrreq.c
266
(unsigned long)ntohl(dlh->dh_seq2)));
sys/netinet/dccp_usrreq.c
270
dh->dh_cscov, dh->dh_off, dh->dh_type, dh->dh_res, ntohl(dh->dh_seq)));
sys/netinet/dccp_usrreq.c
487
seqnr = CONVERT_TO_LONGSEQ((ntohl(dh->dh_seq) >> 8), dp->ref_pseq);
sys/netinet/dccp_usrreq.c
489
ntohl(dh->dh_seq) >> 8, dp->ref_pseq.hi, dp->ref_pseq.lo));
sys/netinet/dccp_usrreq.c
704
dp->ack_rcv = CONVERT_TO_LONGSEQ((ntohl(dah->dash.dah_ack) >> 8), dp->ref_seq);
sys/netinet/dccp_usrreq.c
760
dp->ack_rcv = CONVERT_TO_LONGSEQ((ntohl(dah->dash.dah_ack) >> 8), dp->ref_seq);
sys/netinet/dccp_usrreq.c
778
dp->ack_rcv = CONVERT_TO_LONGSEQ((ntohl(dah->dash.dah_ack) >> 8), dp->ref_seq);
sys/netinet/dccp_var.h
45
x = ((u_int64_t)ntohs(y->dh_seq) << 32) | ntohl(y->dh_seq2);\
sys/netinet/dccp_var.h
54
x = ((u_int64_t)ntohs(y.dah_ack) << 32) | ntohl(y.dah_ack2);\
sys/netinet/in.c
1980
switch ((ntohl(ip->ip_src.s_addr) & 0xff000000) >> 24) {
sys/netinet/in.c
2045
(((ntohl((d).s_addr) ^ (a)->sin_addr.s_addr) & (m)->sin_addr.s_addr)) == 0 )
sys/netinet/in.c
2055
lle_addr.s_addr = ntohl(lle->r_l3addr.addr4.s_addr);
sys/netinet/in_gif.c
135
tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netinet/in_gif.c
273
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netinet/in_gif.c
323
(u_int32_t)ntohl(u.sin.sin_addr.s_addr));
sys/netinet/in_offload.c
92
tcpseq = ntohl(th->th_seq);
sys/netinet/in_pcb.c
1098
ntohl(faddr.s_addr), ntohs(fport),
sys/netinet/in_pcb.c
1099
ntohl(laddr.s_addr), ntohs(lport));
sys/netinet/in_pcb.c
1146
ntohl(laddr.s_addr), ntohs(lport));
sys/netinet/in_pcb.c
148
((ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_bindhash]
sys/netinet/in_pcb.c
151
((ntohl((faddr).s_addr) + ntohs(fport)) + \
sys/netinet/in_pcb.c
152
(ntohl((laddr).s_addr) + ntohs(lport))) & (table)->inpt_connecthash]
sys/netinet/in_print.c
43
const in_addr_t a = ntohl(ia->s_addr);
sys/netinet/in_selsrc.c
226
" categ %d\n", __func__, ntohl(dst->s_addr), dst_c,
sys/netinet/in_selsrc.c
227
ntohl(src->s_addr), src_c);
sys/netinet/in_selsrc.c
340
__func__, ntohl(dst->sin_addr.s_addr),
sys/netinet/in_selsrc.c
341
ntohl(satosin(best_ifa->ifa_addr)->sin_addr.s_addr));
sys/netinet/in_selsrc.c
363
ntohl(src->sin_addr.s_addr));
sys/netinet/in_selsrc.c
381
ntohl(IA_SIN(best_ifa)->sin_addr.s_addr));
sys/netinet/ip_carp.c
305
ntohl(in.s_addr) > ntohl(last.s_addr) &&
sys/netinet/ip_carp.c
306
ntohl(in.s_addr) < ntohl(cur.s_addr)) {
sys/netinet/ip_carp.c
757
tmp_counter = ntohl(ch->carp_counter[0]);
sys/netinet/ip_carp.c
759
tmp_counter += ntohl(ch->carp_counter[1]);
sys/netinet/ip_ecn.c
112
outer8 = (ntohl(*outer) >> 20) & 0xff;
sys/netinet/ip_ecn.c
113
inner8 = (ntohl(*inner) >> 20) & 0xff;
sys/netinet/ip_ecn.c
127
outer8 = (ntohl(*outer) >> 20) & 0xff;
sys/netinet/ip_ecn.c
128
inner8 = (ntohl(*inner) >> 20) & 0xff;
sys/netinet/ip_input.c
489
if ((ntohl(ip->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
sys/netinet/ip_input.c
490
(ntohl(ip->ip_src.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET) {
sys/netinet/ip_mroute.c
1065
ntohl(mfccp->mfcc_origin.s_addr),
sys/netinet/ip_mroute.c
1066
ntohl(mfccp->mfcc_mcastgrp.s_addr),
sys/netinet/ip_mroute.c
1087
ntohl(mfccp->mfcc_origin.s_addr),
sys/netinet/ip_mroute.c
1088
ntohl(mfccp->mfcc_mcastgrp.s_addr),
sys/netinet/ip_mroute.c
1093
ntohl(mfccp->mfcc_origin.s_addr),
sys/netinet/ip_mroute.c
1094
ntohl(mfccp->mfcc_mcastgrp.s_addr),
sys/netinet/ip_mroute.c
1128
ntohl(mfccp->mfcc_origin.s_addr),
sys/netinet/ip_mroute.c
1129
ntohl(mfccp->mfcc_mcastgrp.s_addr),
sys/netinet/ip_mroute.c
1218
ntohl(mfccp->mfcc_origin.s_addr),
sys/netinet/ip_mroute.c
1219
ntohl(mfccp->mfcc_mcastgrp.s_addr));
sys/netinet/ip_mroute.c
1311
ntohl(ip->ip_src.s_addr), ntohl(ip->ip_dst.s_addr), ifp);
sys/netinet/ip_mroute.c
1333
ntohl(ip->ip_src.s_addr));
sys/netinet/ip_mroute.c
1375
ntohl(ip->ip_src.s_addr),
sys/netinet/ip_mroute.c
1376
ntohl(ip->ip_dst.s_addr));
sys/netinet/ip_mroute.c
1557
ntohl(rt->mfc_origin.s_addr),
sys/netinet/ip_mroute.c
1558
ntohl(rt->mfc_mcastgrp.s_addr));
sys/netinet/ip_mroute.c
3079
(u_long)ntohl(encap_ip->ip_src.s_addr),
sys/netinet/ip_mroute.c
3080
(u_long)ntohl(encap_ip->ip_dst.s_addr),
sys/netinet/ip_mroute.c
3109
(u_long)ntohl(encap_ip->ip_dst.s_addr));
sys/netinet/ip_mroute.c
3115
if ((ntohl(*reghdr) & PIM_NULL_REGISTER))
sys/netinet/ip_mroute.c
3168
(u_long)ntohl(encap_ip->ip_src.s_addr),
sys/netinet/ip_mroute.c
3169
(u_long)ntohl(encap_ip->ip_dst.s_addr),
sys/netinet/ip_mroute.c
892
ntohl(vifcp->vifc_lcl_addr.s_addr),
sys/netinet/ip_mroute.c
894
ntohl(vifcp->vifc_rmt_addr.s_addr),
sys/netinet/ip_output.c
1699
if (ntohl(a->s_addr) >> 24 == 0) {
sys/netinet/ip_output.c
1700
ifindex = ntohl(a->s_addr) & 0xffffff;
sys/netinet/sctp_asconf.c
1354
serial_num = ntohl(cp->serial_number);
sys/netinet/sctp_asconf.c
596
serial_num = ntohl(cp->serial_number);
sys/netinet/sctp_indata.c
1679
tsn = ntohl(ch->dp.tsn);
sys/netinet/sctp_indata.c
2161
((compare_with_wrap(tsn, ntohl(asoc->pending_reply->reset_at_tsn), MAX_TSN)) ||
sys/netinet/sctp_indata.c
2162
(tsn == ntohl(asoc->pending_reply->reset_at_tsn)))
sys/netinet/sctp_indata.c
2347
((compare_with_wrap((asoc->cumulative_tsn+1), ntohl(asoc->pending_reply->reset_at_tsn), MAX_TSN)) ||
sys/netinet/sctp_indata.c
2348
((asoc->cumulative_tsn+1) == ntohl(asoc->pending_reply->reset_at_tsn)))
sys/netinet/sctp_indata.c
3542
cum_ack = last_tsn = ntohl(sack->cum_tsn_ack);
sys/netinet/sctp_indata.c
3582
a_rwnd = (u_int32_t)ntohl(sack->a_rwnd);
sys/netinet/sctp_indata.c
4438
new_cum_tsn = ntohl(fwd->new_cumulative_tsn);
sys/netinet/sctp_input.c
1138
if ((ntohl(initack_cp->init.initiate_tag) == asoc->my_vtag) &&
sys/netinet/sctp_input.c
1139
(ntohl(init_cp->init.initiate_tag) == asoc->peer_vtag)) {
sys/netinet/sctp_input.c
1234
if (ntohl(initack_cp->init.initiate_tag) != asoc->my_vtag &&
sys/netinet/sctp_input.c
1235
ntohl(init_cp->init.initiate_tag) == asoc->peer_vtag &&
sys/netinet/sctp_input.c
1244
if (ntohl(initack_cp->init.initiate_tag) == asoc->my_vtag &&
sys/netinet/sctp_input.c
1245
(ntohl(init_cp->init.initiate_tag) != asoc->peer_vtag ||
sys/netinet/sctp_input.c
1264
asoc->my_rwnd = ntohl(initack_cp->init.a_rwnd);
sys/netinet/sctp_input.c
1267
asoc->init_seq_number = ntohl(initack_cp->init.initial_tsn);
sys/netinet/sctp_input.c
129
if (ntohl(init->a_rwnd) < SCTP_MIN_RWND) {
sys/netinet/sctp_input.c
1319
if ((ntohl(initack_cp->init.initiate_tag) != asoc->my_vtag &&
sys/netinet/sctp_input.c
1320
ntohl(init_cp->init.initiate_tag) != asoc->peer_vtag) &&
sys/netinet/sctp_input.c
1338
asoc->my_vtag = ntohl(initack_cp->init.initiate_tag);
sys/netinet/sctp_input.c
1339
asoc->my_rwnd = ntohl(initack_cp->init.a_rwnd);
sys/netinet/sctp_input.c
1342
asoc->init_seq_number = ntohl(initack_cp->init.initial_tsn);
sys/netinet/sctp_input.c
1490
stcb = sctp_aloc_assoc(inp, init_src, 0, &error, ntohl(initack_cp->init.initiate_tag));
sys/netinet/sctp_input.c
1528
asoc->my_vtag = ntohl(initack_cp->init.initiate_tag);
sys/netinet/sctp_input.c
1529
asoc->my_rwnd = ntohl(initack_cp->init.a_rwnd);
sys/netinet/sctp_input.c
1531
asoc->init_seq_number = ntohl(initack_cp->init.initial_tsn);
sys/netinet/sctp_input.c
175
asoc->peer_vtag = ntohl(init->initiate_tag);
sys/netinet/sctp_input.c
176
asoc->peers_rwnd = ntohl(init->a_rwnd);
sys/netinet/sctp_input.c
2229
tsn = ntohl(cp->tsn);
sys/netinet/sctp_input.c
230
asoc->highest_tsn_inside_map = asoc->asconf_seq_in = ntohl(init->initial_tsn) - 1;
sys/netinet/sctp_input.c
2308
if (compare_with_wrap(ntohl(cp->tsn), ntohl(ecne->tsn),
sys/netinet/sctp_input.c
237
asoc->mapping_array_base_tsn = ntohl(init->initial_tsn);
sys/netinet/sctp_input.c
2380
tsn = ntohl(desc->tsn_ifany);
sys/netinet/sctp_input.c
2678
seq = ntohl(resp->reset_req_seq_resp);
sys/netinet/sctp_input.c
2683
tsn = ntohl(resp->reset_at_tsn);
sys/netinet/sctp_input.c
2792
bottle_bw = ntohl(cp->bottle_bw);
sys/netinet/sctp_input.c
2793
on_queue = ntohl(cp->current_onq);
sys/netinet/sctp_input.c
2909
bottle_bw = ntohl(cp->bottle_bw);
sys/netinet/sctp_input.c
2911
on_queue = ntohl(cp->current_onq);
sys/netinet/sctp_input.c
3063
vtag_in = ntohl(sh->v_tag);
sys/netinet/sctp_input.c
3880
if (stcb->asoc.my_vtag != ntohl(sh->v_tag)) {
sys/netinet/sctp_input.c
807
asoc->cookie_preserve_req = ntohl(*p) << 1;
sys/netinet/sctp_input.c
926
if (ntohl(init_ack->a_rwnd) < SCTP_MIN_RWND) {
sys/netinet/sctp_output.c
2204
printf("Destination was %x\n", (u_int)(ntohl(ip->ip_dst.s_addr)));
sys/netinet/sctp_output.c
2241
(u_int)(ntohl(ip->ip_src.s_addr)));
sys/netinet/sctp_output.c
2242
printf("Destination is %x\n", (u_int)(ntohl(ip->ip_dst.s_addr)));
sys/netinet/sctp_output.c
2669
ali->indication = ntohl(inp->sctp_ep.adaption_layer_indicator);
sys/netinet/sctp_output.c
3637
ali->indication = ntohl(inp->sctp_ep.adaption_layer_indicator);
sys/netinet/sctp_output.c
8617
if (compare_with_wrap(high_tsn, ntohl(cwr->tsn),
sys/netinet/sctp_output.c
8776
seq = ntohl(req->reset_req_seq);
sys/netinet/sctp_pcb.c
1193
retval = sctp_findassoc_by_vtag(from, ntohl(sh->v_tag),
sys/netinet/sctp_pcb.c
4167
stcb, ntohl(aip->indication), NULL);
sys/netinet/sctp_usrreq.c
256
if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) {
sys/netinet/sctp_usrreq.c
361
if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag)) {
sys/netinet/sctputil.c
2784
*vtagfill = ntohl(init_chk->init.initiate_tag);
sys/netinet/tcp_debug.c
176
seq = ntohl(seq);
sys/netinet/tcp_debug.c
177
ack = ntohl(ack);
sys/netinet/tcp_input.c
1317
iptos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netinet/tcp_sack.c
285
left = ntohl(left);
sys/netinet/tcp_sack.c
286
right = ntohl(right);
sys/netinet/tcp_subr.c
1446
seq = ntohl(th->th_seq);
sys/netinet/tcp_syncache.c
838
if (ntohl(th->th_seq) != sc->sc_iss) {
sys/netinet/tcp_vtw.h
322
return (ntohl(faddr) + ntohs(fport)
sys/netinet/tcp_vtw.h
323
+ ntohl(laddr) + ntohs(lport));
sys/netinet6/icmp6.c
1103
notifymtu = ntohl(icmp6->icmp6_mtu);
sys/netinet6/icmp6.c
1127
u_int mtu = ntohl(icmp6->icmp6_mtu);
sys/netinet6/in6.h
249
(a)->__u6_addr.__u6_addr32[3] == ntohl(1))
sys/netinet6/in6.h
259
(a)->__u6_addr.__u6_addr32[3] != ntohl(1))
sys/netinet6/in6.h
267
(a)->__u6_addr.__u6_addr32[2] == ntohl(0x0000ffff))
sys/netinet6/in6_gif.c
138
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netinet6/in6_gif.c
179
ip6->ip6_flow &= ~ntohl(0xff00000);
sys/netinet6/in6_gif.c
311
otos8 = (ntohl(otos) >> 20) & 0xff;
sys/netinet6/in6_offload.c
94
tcpseq = ntohl(th->th_seq);
sys/netinet6/ip6_input.c
1111
flowinfo = (u_int32_t)ntohl(ip6->ip6_flow & IPV6_FLOWINFO_MASK);
sys/netinet6/ip6_mroute.c
1823
if ((ntohl(*reghdr) & PIM_NULL_REGISTER))
sys/netinet6/sctp6_usrreq.c
276
ecn_bits = ((ntohl(ip6->ip6_flow) >> 20) & 0x000000ff);
sys/netinet6/sctp6_usrreq.c
327
if (ntohl(sh->v_tag) != (stcb->asoc.peer_vtag))
sys/netinet6/sctp6_usrreq.c
340
nxtsz = ntohl(icmp6->icmp6_mtu);
sys/netipsec/ipsec.c
1782
(u_int32_t)ntohl(sav->spi),
sys/netipsec/ipsec_input.c
314
(u_long) ntohl(spi));
sys/netipsec/ipsec_input.c
321
(u_long) ntohl(spi));
sys/netipsec/ipsec_input.c
329
(u_long) ntohl(spi), sproto, ntohs(dport), ntohs(sport));
sys/netipsec/ipsec_input.c
400
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/ipsec_input.c
536
buf, sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/ipsec_output.c
192
(u_long)ntohl(sav->spi));
sys/netipsec/ipsecif.c
261
tos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netipsec/ipsecif.c
566
itos = (ntohl(xip6->ip6_flow) >> 20) & 0xff;
sys/netipsec/ipsecif.c
613
ip6->ip6_flow &= ~ntohl(0xff00000);
sys/netipsec/ipsecif.c
776
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netipsec/ipsecif.c
873
otos8 = (ntohl(otos) >> 20) & 0xff;
sys/netipsec/key.c
1288
tmp = ntohl(spi);
sys/netipsec/key.c
1300
must_check_spi, ntohl(spi),
sys/netipsec/key.c
1315
ntohl(spi), ntohl(sav->spi));
sys/netipsec/key.c
1332
ntohl(spi), ntohl(sav->spi));
sys/netipsec/key.c
3352
where, tag, newsav, ntohl(newsav->spi), proto);
sys/netipsec/key.c
3822
if (ntohl(sav->spi) <= 255) {
sys/netipsec/key.c
3824
(u_int32_t)ntohl(sav->spi));
sys/netipsec/key.c
3878
&& ntohl(sav->spi) >= 0x10000) {
sys/netipsec/key.c
5815
(u_int32_t)ntohl(sa0->sadb_sa_spi));
sys/netipsec/key.c
5831
(u_int32_t)ntohl(sav->spi),
sys/netipsec/key.c
5832
(u_int32_t)ntohl(sa0->sadb_sa_spi));
sys/netipsec/key.c
5859
ntohl(newsav->spi), proto);
sys/netipsec/key_debug.c
306
(u_int32_t)ntohl(sa->sadb_sa_spi), sa->sadb_sa_replay,
sys/netipsec/key_debug.c
537
(u_int32_t)ntohl(sav->spi), sav->flags);
sys/netipsec/xform_ah.c
553
if (sav->replay && !ipsec_chkreplay(ntohl(ah->ah_seq), sav)) {
sys/netipsec/xform_ah.c
573
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
584
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
801
(u_long) ntohl(sav->spi),
sys/netipsec/xform_ah.c
837
if (ipsec_updatereplay(ntohl(seq), sav)) {
sys/netipsec/xform_ah.c
849
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
927
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
936
(u_long) ntohl(sav->spi),
sys/netipsec/xform_ah.c
950
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
962
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ah.c
993
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
354
(u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
363
if (esph && sav->replay && !ipsec_chkreplay(ntohl(esp->esp_seq), sav)) {
sys/netipsec/xform_esp.c
572
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
600
if (ipsec_updatereplay(ntohl(seq), sav)) {
sys/netipsec/xform_esp.c
620
(u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
634
(u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
645
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
741
(u_long)ntohl(sav->spi));
sys/netipsec/xform_esp.c
750
(u_long) ntohl(sav->spi),
sys/netipsec/xform_esp.c
764
(u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
776
(u_long) ntohl(sav->spi));
sys/netipsec/xform_esp.c
806
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
316
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
327
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
400
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
409
(u_long) ntohl(sav->spi),
sys/netipsec/xform_ipcomp.c
423
(u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
553
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/xform_ipcomp.c
574
cpi = ntohl(sav->spi) & 0xffff;
sys/netipsec/xform_ipcomp.c
600
sizeof(buf)), (u_long) ntohl(sav->spi));
sys/netipsec/xform_ipip.c
175
otos = (ntohl(mtod(m, struct ip6_hdr *)->ip6_flow) >> 20) & 0xff;
sys/netipsec/xform_ipip.c
243
itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff;
sys/netipsec/xform_ipip.c
351
(u_long)ntohl(sav->spi));
sys/netipsec/xform_ipip.c
403
itos = ntohl(itos32) >> 20;
sys/netipsec/xform_ipip.c
426
(u_long)ntohl(sav->spi));
sys/netipsec/xform_ipip.c
483
itos = ntohl(itos32) >> 20;
sys/netmpls/mpls_ttl.c
344
(ntohl(iph->ip_dst.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
sys/netmpls/mpls_ttl.c
345
(ntohl(iph->ip_src.s_addr) >> IN_CLASSA_NSHIFT) == IN_LOOPBACKNET ||
sys/netmpls/mpls_ttl.c
373
mshim->s_addr = ntohl(mshim->s_addr);
sys/netmpls/mpls_ttl.c
397
bos_shim.s_addr = ntohl(mtod(m, union mpls_shim *)->s_addr);
sys/netmpls/mpls_var.h
47
#define MPLS_GETSADDR(rt) ntohl(((struct sockaddr_mpls*)rt_gettag(rt))->smpls_addr.s_addr)
sys/nfs/nfs_bootdhcp.c
224
#define INTOHL(ina) ((u_int32_t)ntohl((ina).s_addr))
sys/nfs/nfs_clntsocket.c
210
len = ntohl(len) & ~0x80000000;
sys/nfs/nfs_srvsocket.c
298
recmark = ntohl(recmark);
sys/nfs/xdr_subs.h
51
#define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v)))
sys/nfs/xdr_subs.h
72
(t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
sys/nfs/xdr_subs.h
75
ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
sys/nfs/xdr_subs.h
89
(t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
sys/nfs/xdr_subs.h
90
(t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
sys/nfs/xdr_subs.h
98
((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
sys/nfs/xdr_subs.h
99
(u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
sys/sys/core.h
49
#define CORE_GETMAGIC(c) ( ntohl(((c).c_midmag)) & 0xffff )
sys/sys/core.h
50
#define CORE_GETMID(c) ( (ntohl(((c).c_midmag)) >> 16) & 0x03ff )
sys/sys/core.h
51
#define CORE_GETFLAG(c) ( (ntohl(((c).c_midmag)) >> 26) & 0x03f )
sys/sys/endian.h
132
#define NTOHL(x) (x) = ntohl(__CAST(uint32_t, (x)))
sys/sys/endian.h
72
uint32_t ntohl(uint32_t) __constfunc;
tests/lib/libc/sys/t_getrusage.c
182
sin.sin_addr.s_addr = ntohl(INADDR_LOOPBACK);
tests/lib/libutil/t_sockaddr_snprintf.c
71
sin4->sin_addr.s_addr = ntohl(INADDR_LOOPBACK);
tests/net/inpcb/inpcb_bind.c
378
if (!IN_MULTICAST( ntohl(sin->sin_addr.s_addr) )) {
tests/net/net/t_mapped.c
154
a->__u6_addr.__u6_addr32[2] == ntohl(0x0000ffff);
tests/net/net/t_mapped.c
155
a->__u6_addr.__u6_addr32[3] == ntohl(INADDR_LOOPBACK);
tests/net/net/t_pktinfo_send.c
149
if (ntohl(addr.s_addr) >> 24 == 0)
tests/net/net/t_pktinfo_send.c
150
pi->ipi_ifindex = ntohl(addr.s_addr) & 0xffffff;
tests/sys/netinet/t_print.c
44
{ .s_addr = ntohl(INADDR_LOOPBACK) },
tests/sys/netinet/t_print.c
49
{ .s_addr = ntohl(INADDR_ANY) },
tests/sys/netinet/t_print.c
54
{ .s_addr = ntohl(IN_CLASSC_NET) },
tests/sys/netinet/t_print.c
59
{ .s_addr = ntohl(INADDR_ALLHOSTS_GROUP) },
usr.bin/audio/play/play.c
483
if (ntohl(sunhdr->magic) == AUDIO_FILE_MAGIC) {
usr.bin/audio/play/play.c
484
if (audio_sun_to_encoding(ntohl(sunhdr->encoding),
usr.bin/audio/play/play.c
488
" format %d", ntohl(sunhdr->encoding));
usr.bin/audio/play/play.c
494
info.play.sample_rate = ntohl(sunhdr->sample_rate);
usr.bin/audio/play/play.c
495
info.play.channels = ntohl(sunhdr->channels);
usr.bin/audio/play/play.c
496
hdr_len = ntohl(sunhdr->hdr_size);
usr.bin/audio/play/play.c
498
*datasize = (off_t)ntohl(sunhdr->data_size);
usr.bin/gencat/gencat.c
576
if (ntohl((uint32_t)cat_hdr.__magic) != _NLS_MAGIC)
usr.bin/gencat/gencat.c
579
cat_hdr.__mem = ntohl(cat_hdr.__mem);
usr.bin/gencat/gencat.c
581
cat_hdr.__nsets = ntohl(cat_hdr.__nsets);
usr.bin/gencat/gencat.c
582
cat_hdr.__msg_hdr_offset = ntohl(cat_hdr.__msg_hdr_offset);
usr.bin/gencat/gencat.c
583
cat_hdr.__msg_txt_offset = ntohl(cat_hdr.__msg_txt_offset);
usr.bin/gencat/gencat.c
609
set_hdr->__setno = ntohl(set_hdr->__setno);
usr.bin/gencat/gencat.c
617
set_hdr->__nmsgs = ntohl(set_hdr->__nmsgs);
usr.bin/gencat/gencat.c
618
set_hdr->__index = ntohl(set_hdr->__index);
usr.bin/gencat/gencat.c
625
msg_hdr->__msgno = ntohl(msg_hdr->__msgno);
usr.bin/gencat/gencat.c
626
msg_hdr->__offset = ntohl(msg_hdr->__offset);
usr.bin/mklocale/yacc.y
877
u_int32_t r = ntohl(list->types[x - list->min]);
usr.bin/netstat/inet.c
1032
inp->s_addr = ntohl(inp->s_addr);
usr.bin/rump_dhcpclient/dhcp.c
305
*i = ntohl(d);
usr.bin/rump_dhcpclient/dhcp.c
388
uint32_t p = ntohl(ip_in);
usr.bin/rump_dhcpclient/net.c
119
return ntohl(IN_CLASSA_NET);
usr.bin/rump_dhcpclient/net.c
121
return ntohl(IN_CLASSB_NET);
usr.bin/rump_dhcpclient/net.c
123
return ntohl(IN_CLASSC_NET);
usr.bin/systat/netstat.c
616
in.s_addr = ntohl(in.s_addr);
usr.bin/talk/ctl_transact.c
106
rp->id_num = ntohl(rp->id_num);
usr.sbin/altq/libaltq/altq_qop.h
237
#define ntoh32(x) ((u_int32_t)ntohl((u_int32_t)(x)))
usr.sbin/bootp/bootptest/print-bootp.c
121
printf(" xid:%d", ntohl(bp->bp_xid));
usr.sbin/bootp/bootptest/print-bootp.c
335
printf("%d", ntohl(ul));
usr.sbin/bootp/common/dovend.c
377
value = ntohl(value); /* Must use host byte order here */
usr.sbin/bootp/common/lookup.c
95
a = ntohl(addr);
usr.sbin/faithd/faithd.c
657
|| IN_MULTICAST(ntohl(dst4->sin_addr.s_addr)))
usr.sbin/fwctl/fwcontrol.c
1023
eui.hi = ntohl(hi);
usr.sbin/fwctl/fwcontrol.c
1024
eui.lo = ntohl(lo);
usr.sbin/fwctl/fwcontrol.c
226
return ntohl(res);
usr.sbin/inetd/inetd.c
1624
in.s_addr = ntohl(sin->sin_addr.s_addr);
usr.sbin/inetd/inetd.c
1647
in.s_addr = ntohl(in.s_addr);
usr.sbin/ldpd/fsm.c
137
ntohl(hi->transport_address.sin.sin_addr.s_addr) <
usr.sbin/ldpd/fsm.c
138
ntohl(ladd->s_addr))) {
usr.sbin/ldpd/fsm.c
168
if (ntohl(sa->sin_addr.s_addr) >> 24 != IN_LOOPBACKNET)
usr.sbin/ldpd/fsm.c
195
if (ntohl(sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET)
usr.sbin/ldpd/fsm.c
235
if (ntohl(sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET)
usr.sbin/ldpd/fsm.c
237
if (ntohl(sa->sin_addr.s_addr) > ntohl(a.s_addr))
usr.sbin/ldpd/ldp_command.c
150
sin.sin_addr.s_addr = ntohl(INADDR_LOOPBACK);
usr.sbin/ldpd/ldp_errors.c
166
ms2.s_addr = ntohl(smpls->smpls_addr.s_addr);
usr.sbin/ldpd/mpls_routes.c
243
m = ntohl(m);
usr.sbin/ldpd/mpls_routes.c
268
a = ntohl(sin->sin_addr.s_addr);
usr.sbin/ldpd/mpls_routes.c
802
ntohl(ifa->sin.sin_addr.s_addr) >> 24 == IN_LOOPBACKNET)
usr.sbin/ldpd/mpls_routes.c
885
if ((ntohl(so_dst->sin.sin_addr.s_addr) >> 24)==IN_LOOPBACKNET)
usr.sbin/ldpd/socketops.c
1034
ntohl(peer_address.sin.sin_addr.s_addr) <
usr.sbin/ldpd/socketops.c
1035
ntohl(my_address.sin.sin_addr.s_addr)) {
usr.sbin/ldpd/socketops.c
1185
send_notification(p, ntohl(itlv->messageid),
usr.sbin/ldpd/socketops.c
1196
send_notification(p, ntohl(itlv->messageid),
usr.sbin/ldpd/socketops.c
1264
send_notification(p, ntohl(lmtlv->messageid),
usr.sbin/ldpd/socketops.c
1268
send_notification(p, ntohl(lmtlv->messageid),
usr.sbin/ldpd/socketops.c
1272
send_notification(p, ntohl(lmtlv->messageid),
usr.sbin/ldpd/socketops.c
1306
nottlv->st_code = ntohl(nottlv->st_code);
usr.sbin/ldpd/socketops.c
145
(ntohl(if_sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET) ||
usr.sbin/ldpd/socketops.c
507
(ntohl(if_sa->sin_addr.s_addr) >> 24 == IN_LOOPBACKNET) ||
usr.sbin/ldpd/tlv.c
64
t->messageid = ntohl(t->messageid);
usr.sbin/ldpd/tlv_stack.c
127
ntohl(l->label));
usr.sbin/ldpd/tlv_stack.c
133
lbl_check->label = ntohl(l->label);
usr.sbin/ldpd/tlv_stack.c
85
debugp("Label %u for:\n", ntohl(l->label));
usr.sbin/mrinfo/mrinfo.c
535
target_level = ntohl(group);
usr.sbin/mrinfo/mrinfo.c
540
igmpdatalen, ntohl(group));
usr.sbin/mrinfo/mrinfo.c
547
igmpdatalen, ntohl(group));
usr.sbin/mrouted/cfparse.y
379
if ((ntohl($1.addr) & 0xff000000) != 0xef000000) {
usr.sbin/mrouted/igmp.c
193
group = ntohl(group);
usr.sbin/mrouted/igmp.c
324
if (IN_MULTICAST(ntohl(dst))) {
usr.sbin/mrouted/inet.c
132
bits = 33 - ffs(ntohl(mask));
usr.sbin/mrouted/inet.c
33
addr = ntohl(naddr);
usr.sbin/mrouted/inet.c
70
subnet = ntohl(nsubnet);
usr.sbin/mrouted/inet.c
71
mask = ntohl(nmask);
usr.sbin/mrouted/prune.c
1024
if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp))
usr.sbin/mrouted/prune.c
1063
if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp))
usr.sbin/mrouted/prune.c
1158
prun_tmr = ntohl(prun_tmr);
usr.sbin/mrouted/prune.c
1276
if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp))
usr.sbin/mrouted/prune.c
143
if (ntohl(grp) > ntohl(gt->gt_mcastgrp) ||
usr.sbin/mrouted/prune.c
145
(ntohl(mask) < ntohl(gt->gt_route->rt_originmask) ||
usr.sbin/mrouted/prune.c
147
(ntohl(src) > ntohl(gt->gt_route->rt_origin)))))) {
usr.sbin/mrouted/prune.c
1980
if (IN_MULTICAST(ntohl(dst))) {
usr.sbin/mrouted/prune.c
2045
if (IN_MULTICAST(ntohl(dst)))
usr.sbin/mrouted/prune.c
2054
if (IN_MULTICAST(ntohl(dst)))
usr.sbin/mrouted/prune.c
2062
if (IN_MULTICAST(ntohl(dst)))
usr.sbin/mrouted/prune.c
2217
if (IN_MULTICAST(ntohl(dst))) {
usr.sbin/mrouted/prune.c
386
if (ntohl(grp) < ntohl(gt->gt_mcastgrp))
usr.sbin/mrouted/prune.c
428
while ((*gtpp) && ntohl((*gtpp)->gt_mcastgrp) < ntohl(grp))
usr.sbin/mrouted/prune.c
440
if (((ntohl(gt->gt_mcastgrp)> ntohl(grp))
usr.sbin/mrouted/prune.c
441
|| (ntohl(gt->gt_mcastgrp)==ntohl(grp)
usr.sbin/mrouted/prune.c
442
&& ntohl(st->st_origin)> ntohl(src))
usr.sbin/mrouted/prune.c
443
|| (ntohl(gt->gt_mcastgrp)==ntohl(grp)
usr.sbin/mrouted/prune.c
444
&& ntohl(st->st_origin)==src && 0xFFFFFFFF>ntohl(mask)))
usr.sbin/mrouted/prune.c
446
|| (ntohl(gt->gt_mcastgrp)< ntohl(gbest->gt_mcastgrp))
usr.sbin/mrouted/prune.c
447
|| (ntohl(gt->gt_mcastgrp)==ntohl(gbest->gt_mcastgrp)
usr.sbin/mrouted/prune.c
448
&& ntohl(st->st_origin)< ntohl(sbest->st_origin)))) {
usr.sbin/mrouted/prune.c
505
if ((ntohl(rt->rt_origin) > ntohl(src)
usr.sbin/mrouted/prune.c
506
|| (ntohl(rt->rt_origin) == ntohl(src)
usr.sbin/mrouted/prune.c
507
&& ntohl(rt->rt_originmask) > ntohl(mask)))
usr.sbin/mrouted/prune.c
508
&& (!rbest || (ntohl(rt->rt_origin) < ntohl(rbest->rt_origin))
usr.sbin/mrouted/prune.c
509
|| (ntohl(rt->rt_origin) == ntohl(rbest->rt_origin)
usr.sbin/mrouted/prune.c
510
&& ntohl(rt->rt_originmask) < ntohl(rbest->rt_originmask))))
usr.sbin/mrouted/prune.c
701
if (ntohl(st->st_origin) >= ntohl(origin))
usr.sbin/mrouted/prune.c
83
if ((ntohl((gt)->gt_mcastgrp) & 0xff000000) == 0xef000000) \
usr.sbin/mrouted/prune.h
140
u_int32_t _x = ntohl(x); \
usr.sbin/mrouted/route.c
261
if (ntohl(mask) < ntohl(r->rt_originmask) ||
usr.sbin/mrouted/route.c
263
ntohl(origin) < ntohl(r->rt_origin))) {
usr.sbin/mrouted/route.c
379
inet_fmt(origin), ntohl(mask));
usr.sbin/mrouted/route.c
452
(ntohl(src) < ntohl(r->rt_gateway) ||
usr.sbin/mrouted/route.c
495
ntohl(src) < ntohl(uvifs[vifi].uv_lcl_addr))) {
usr.sbin/mrouted/route.c
544
ntohl(src) > ntohl(uvifs[vifi].uv_lcl_addr)))) {
usr.sbin/mrouted/route.c
712
u_int32_t m1 = ntohl(r1->mask);
usr.sbin/mrouted/route.c
713
u_int32_t m2 = ntohl(r2->mask);
usr.sbin/mrouted/route.c
722
o1 = ntohl(r1->origin);
usr.sbin/mrouted/route.c
723
o2 = ntohl(r2->origin);
usr.sbin/mrouted/route.c
773
if (!inet_valid_mask(ntohl(mask))) {
usr.sbin/mrouted/route.c
776
inet_fmt(src), ntohl(mask),
usr.sbin/mrouted/vif.c
1093
ntohl(addr) < ntohl(v->uv_lcl_addr))
usr.sbin/mrouted/vif.c
1239
if (ntohl(n->al_addr) < ntohl(v->uv_lcl_addr)) {
usr.sbin/mrouted/vif.c
524
(ntohl(src) < ntohl(v->uv_lcl_addr))) {
usr.sbin/mrouted/vif.c
701
if (IN_MULTICAST(ntohl(dst))) { /* query sent to a multicast group */
usr.sbin/mrouted/vif.c
725
#define PUT_ADDR(a) temp_addr = ntohl(a); \
usr.sbin/mrouted/vif.c
788
if (IN_MULTICAST(ntohl(dst))) { /* query sent to a multicast group */
usr.sbin/mtrace/mtrace.c
1005
res = ((ntohl(n->tr_pktcnt) < ntohl(b->tr_pktcnt)) ||
usr.sbin/mtrace/mtrace.c
1006
(ntohl(n->tr_pktcnt) < ntohl(p->tr_pktcnt)));
usr.sbin/mtrace/mtrace.c
1059
u_long qarrtime = fixtime(ntohl(n->tr_qarr));
usr.sbin/mtrace/mtrace.c
1081
printf("\t\t\t\tv_in: %ld ", (long)ntohl(n->tr_vifin));
usr.sbin/mtrace/mtrace.c
1082
printf("v_out: %ld ", (long)ntohl(n->tr_vifout));
usr.sbin/mtrace/mtrace.c
1083
printf("pkts: %ld\n", (long)ntohl(n->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
1084
printf("\t\t\t\tv_in: %ld ", (long)ntohl(b->tr_vifin));
usr.sbin/mtrace/mtrace.c
1085
printf("v_out: %ld ", (long)ntohl(b->tr_vifout));
usr.sbin/mtrace/mtrace.c
1086
printf("pkts: %ld\n", (long)ntohl(b->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
1088
(long)(ntohl(n->tr_vifin) - ntohl(b->tr_vifin)));
usr.sbin/mtrace/mtrace.c
1090
(long)(ntohl(n->tr_vifout) - ntohl(b->tr_vifout)));
usr.sbin/mtrace/mtrace.c
1092
(long)(ntohl(n->tr_pktcnt) - ntohl(b->tr_pktcnt)));
usr.sbin/mtrace/mtrace.c
1111
qarrtime = fixtime(ntohl((n-1)->tr_qarr));
usr.sbin/mtrace/mtrace.c
1274
if (IN_MULTICAST(ntohl(qsrc))) goto usage;
usr.sbin/mtrace/mtrace.c
1281
if (IN_MULTICAST(ntohl(qdst))) {
usr.sbin/mtrace/mtrace.c
1285
if (IN_MULTICAST(ntohl(qdst))) goto usage;
usr.sbin/mtrace/mtrace.c
1286
} else if (qgrp && !IN_MULTICAST(ntohl(qgrp))) goto usage;
usr.sbin/mtrace/mtrace.c
1371
if (gwy && !IN_MULTICAST(ntohl(gwy)))
usr.sbin/mtrace/mtrace.c
1373
int version = ntohl(incr[0].igmp.igmp_group.s_addr) & 0xFFFF;
usr.sbin/mtrace/mtrace.c
1395
if (IN_MULTICAST(ntohl(raddr))) k_join(raddr, lcl_addr);
usr.sbin/mtrace/mtrace.c
1412
if (IN_MULTICAST(ntohl(tdst))) {
usr.sbin/mtrace/mtrace.c
1574
if (IN_MULTICAST(ntohl(tdst))) {
usr.sbin/mtrace/mtrace.c
1651
if (IN_MULTICAST(ntohl(raddr))) k_leave(raddr, lcl_addr);
usr.sbin/mtrace/mtrace.c
413
if (IN_MULTICAST(ntohl(dst))) local = lcl_addr;
usr.sbin/mtrace/mtrace.c
427
IN_MULTICAST(ntohl(query->tr_raddr)) ? get_ttl(save) : UNICAST_TTL;
usr.sbin/mtrace/mtrace.c
530
int n = ntohl(*p++) & 0xFF;
usr.sbin/mtrace/mtrace.c
630
if (IN_MULTICAST(ntohl(raddr))) k_join(raddr, INADDR_ANY);
usr.sbin/mtrace/mtrace.c
779
hop = t_diff(fixtime(ntohl(r->tr_qarr)), buf->qtime);
usr.sbin/mtrace/mtrace.c
807
u_int32_t version = ntohl(incr[0].igmp.igmp_group.s_addr);
usr.sbin/mtrace/mtrace.c
835
int flags = (ntohl(*p) & 0xFF00) >> 8;
usr.sbin/mtrace/mtrace.c
836
int n = ntohl(*p++) & 0xFF;
usr.sbin/mtrace/mtrace.c
873
int timediff = (fixtime(ntohl(s->tr_qarr)) -
usr.sbin/mtrace/mtrace.c
874
fixtime(ntohl(r->tr_qarr))) >> 16;
usr.sbin/mtrace/mtrace.c
877
int v_out = ntohl(s->tr_vifout) - ntohl(r->tr_vifout);
usr.sbin/mtrace/mtrace.c
878
int g_out = ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt);
usr.sbin/mtrace/mtrace.c
903
v_lost = v_out - (ntohl(s->tr_vifin) - ntohl(r->tr_vifin));
usr.sbin/mtrace/mtrace.c
910
g_lost = g_out - (ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
927
v_out = ntohl(s->tr_vifin) - ntohl(r->tr_vifin);
usr.sbin/mtrace/mtrace.c
947
printf("\t\t\t\tv_in: %ld ", (long)ntohl(s->tr_vifin));
usr.sbin/mtrace/mtrace.c
948
printf("v_out: %ld ", (long)ntohl(s->tr_vifout));
usr.sbin/mtrace/mtrace.c
949
printf("pkts: %ld\n", (long)ntohl(s->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
950
printf("\t\t\t\tv_in: %ld ", (long)ntohl(r->tr_vifin));
usr.sbin/mtrace/mtrace.c
951
printf("v_out: %ld ", (long)ntohl(r->tr_vifout));
usr.sbin/mtrace/mtrace.c
952
printf("pkts: %ld\n", (long)ntohl(r->tr_pktcnt));
usr.sbin/mtrace/mtrace.c
954
(long)ntohl(s->tr_vifin)-ntohl(r->tr_vifin));
usr.sbin/mtrace/mtrace.c
956
(long)(ntohl(s->tr_vifout) - ntohl(r->tr_vifout)));
usr.sbin/mtrace/mtrace.c
957
printf("pkts: %ld ", (long)(ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt)));
usr.sbin/mtrace/mtrace.c
981
if (*s || (ntohl(n->tr_vifout) - ntohl(p->tr_vifout)) > 100000) {
usr.sbin/ndbootd/ndbootd.c
1000
htonl(ntohl(nd_packet->ndboot_packet_current_byte_offset)
usr.sbin/ndbootd/ndbootd.c
1001
+ ntohl(nd_packet->ndboot_packet_current_byte_count));
usr.sbin/ndbootd/ndbootd.c
725
(int) ntohl(nd_packet->ndboot_packet_sequence),
usr.sbin/ndbootd/ndbootd.c
726
(int) ntohl(nd_packet->ndboot_packet_block_number),
usr.sbin/ndbootd/ndbootd.c
727
(int) ntohl(nd_packet->ndboot_packet_byte_count),
usr.sbin/ndbootd/ndbootd.c
728
(int) ntohl(nd_packet->ndboot_packet_current_byte_offset),
usr.sbin/ndbootd/ndbootd.c
729
(int) ntohl(nd_packet->ndboot_packet_current_byte_count)));
usr.sbin/ndbootd/ndbootd.c
752
if (ntohl(nd_packet->ndboot_packet_block_number) < 0) {
usr.sbin/ndbootd/ndbootd.c
754
(int) ntohl(nd_packet->ndboot_packet_block_number)));
usr.sbin/ndbootd/ndbootd.c
757
if (ntohl(nd_packet->ndboot_packet_byte_count) <= 0 ||
usr.sbin/ndbootd/ndbootd.c
758
ntohl(nd_packet->ndboot_packet_byte_count) > NDBOOT_MAX_BYTE_COUNT) {
usr.sbin/ndbootd/ndbootd.c
760
(int) ntohl(nd_packet->ndboot_packet_byte_count)));
usr.sbin/ndbootd/ndbootd.c
763
if (ntohl(nd_packet->ndboot_packet_current_byte_offset) < 0 ||
usr.sbin/ndbootd/ndbootd.c
764
ntohl(nd_packet->ndboot_packet_current_byte_offset)
usr.sbin/ndbootd/ndbootd.c
765
>= ntohl(nd_packet->ndboot_packet_byte_count)) {
usr.sbin/ndbootd/ndbootd.c
767
(int) ntohl(nd_packet->ndboot_packet_current_byte_offset)));
usr.sbin/ndbootd/ndbootd.c
770
if (ntohl(nd_packet->ndboot_packet_current_byte_count) < 0 ||
usr.sbin/ndbootd/ndbootd.c
771
ntohl(nd_packet->ndboot_packet_current_byte_count)
usr.sbin/ndbootd/ndbootd.c
772
> (ntohl(nd_packet->ndboot_packet_byte_count)
usr.sbin/ndbootd/ndbootd.c
773
- ntohl(nd_packet->ndboot_packet_current_byte_offset))) {
usr.sbin/ndbootd/ndbootd.c
775
(int) ntohl(nd_packet->ndboot_packet_current_byte_count)));
usr.sbin/ndbootd/ndbootd.c
780
if (ntohl(nd_packet->ndboot_packet_current_byte_count) == 0) {
usr.sbin/ndbootd/ndbootd.c
782
htonl(ntohl(nd_packet->ndboot_packet_byte_count)
usr.sbin/ndbootd/ndbootd.c
783
- ntohl(nd_packet->ndboot_packet_current_byte_offset));
usr.sbin/ndbootd/ndbootd.c
787
block_number = ntohl(nd_packet->ndboot_packet_block_number);
usr.sbin/ndbootd/ndbootd.c
788
byte_offset = ntohl(nd_packet->ndboot_packet_current_byte_offset);
usr.sbin/ndbootd/ndbootd.c
789
byte_count = ntohl(nd_packet->ndboot_packet_current_byte_count);
usr.sbin/ndbootd/ndbootd.c
925
byte_count = ntohl(nd_packet->ndboot_packet_current_byte_count);
usr.sbin/ndbootd/ndbootd.c
939
| ((ntohl(nd_packet->ndboot_packet_current_byte_offset)
usr.sbin/ndbootd/ndbootd.c
940
+ ntohl(nd_packet->ndboot_packet_current_byte_count))
usr.sbin/ndbootd/ndbootd.c
941
== ntohl(nd_packet->ndboot_packet_byte_count)
usr.sbin/ndbootd/ndbootd.c
952
ntohl(nd_packet->ndboot_packet_current_byte_count));
usr.sbin/ndbootd/ndbootd.c
957
+ ntohl(nd_packet->ndboot_packet_current_byte_count));
usr.sbin/ndbootd/ndbootd.c
972
(int) ntohl(nd_packet->ndboot_packet_sequence),
usr.sbin/ndbootd/ndbootd.c
973
(int) ntohl(nd_packet->ndboot_packet_block_number),
usr.sbin/ndbootd/ndbootd.c
974
(int) ntohl(nd_packet->ndboot_packet_byte_count),
usr.sbin/ndbootd/ndbootd.c
975
(int) ntohl(nd_packet->ndboot_packet_current_byte_offset),
usr.sbin/ndbootd/ndbootd.c
976
(int) ntohl(nd_packet->ndboot_packet_current_byte_count),
usr.sbin/ndbootd/ndbootd.c
986
sizeof(struct ether_header) + (ip_packet->ip_hl << 2) + sizeof(struct ndboot_packet) + ntohl(nd_packet->ndboot_packet_current_byte_count)) < 0) {
usr.sbin/ndbootd/ndbootd.c
997
byte_count -= ntohl(nd_packet->ndboot_packet_current_byte_count);
usr.sbin/ndbootd/ndbootd.c
998
disk_buffer_offset += ntohl(nd_packet->ndboot_packet_current_byte_count);
usr.sbin/npf/npfctl/npf_bpf_comp.c
604
uint32_t word = ntohl(awords[i]);
usr.sbin/npf/npfctl/npf_bpf_comp.c
700
mac_word = ntohl(mac_word);
usr.sbin/npf/npftest/npfstream.c
66
seq = ntohl(th->th_seq);
usr.sbin/npf/npftest/npfstream.c
83
packetno, error, (unsigned)seq, (unsigned)ntohl(th->th_ack),
usr.sbin/rbootd/rmp_var.h
142
#define GETWORD(w, i) (i) = ntohl(w)
usr.sbin/rdate/rdate.c
150
tim = ntohl(data) - DIFFERENCE;
usr.sbin/rtadvd/rtadvd.c
1134
reachabletime = ntohl(ra->nd_ra_reachable);
usr.sbin/rtadvd/rtadvd.c
1149
retranstimer = ntohl(ra->nd_ra_retransmit);
usr.sbin/rtadvd/rtadvd.c
1165
mtu = ntohl(ndopts.nd_opts_mtu->nd_opt_mtu_mtu);
usr.sbin/rtadvd/rtadvd.c
1243
preferred_time = ntohl(pinfo->nd_opt_pi_preferred_time);
usr.sbin/rtadvd/rtadvd.c
1286
valid_time = ntohl(pinfo->nd_opt_pi_valid_time);
usr.sbin/rwhod/rwhod.c
318
wd.wd_sendtime = ntohl(wd.wd_sendtime);
usr.sbin/rwhod/rwhod.c
320
wd.wd_loadav[i] = ntohl(wd.wd_loadav[i]);
usr.sbin/rwhod/rwhod.c
321
wd.wd_boottime = ntohl(wd.wd_boottime);
usr.sbin/rwhod/rwhod.c
324
we->we_idle = ntohl(we->we_idle);
usr.sbin/rwhod/rwhod.c
326
ntohl(we->we_utmp.out_time);
usr.sbin/rwhod/rwhod.c
563
interval(ntohl(w->wd_sendtime) - ntohl(w->wd_boottime), " up"));
usr.sbin/rwhod/rwhod.c
565
ntohl(w->wd_loadav[0]) / 100.0, ntohl(w->wd_loadav[1]) / 100.0,
usr.sbin/rwhod/rwhod.c
566
ntohl(w->wd_loadav[2]) / 100.0);
usr.sbin/rwhod/rwhod.c
569
time_t t = ntohl(we->we_utmp.out_time);
usr.sbin/rwhod/rwhod.c
572
we->we_idle = ntohl(we->we_idle) / 60;
usr.sbin/timed/timed/byteorder.c
74
ptr->tsp_time.tv_sec = ntohl((uint32_t)ptr->tsp_time.tv_sec);
usr.sbin/timed/timed/byteorder.c
75
ptr->tsp_time.tv_usec = ntohl((uint32_t)ptr->tsp_time.tv_usec);
usr.sbin/timed/timed/measure.c
216
sendtime = ntohl(icp.icmp_otime);
usr.sbin/timed/timed/measure.c
225
histime1 = ntohl(icp.icmp_rtime);
usr.sbin/timed/timed/measure.c
226
histime2 = ntohl(icp.icmp_ttime);
usr.sbin/timed/timed/timed.c
309
if (ntohl(ntp->net.s_addr) == nt->net)
usr.sbin/timed/timedc/cmds.c
182
sec = ntohl(sec);
usr.sbin/traceroute/ifaddrlist.c
117
if (ntohl(sin->sin_addr.s_addr) == INADDR_LOOPBACK)
usr.sbin/traceroute/traceroute.c
1179
mpls.mpls_h = ntohl(*(uint32_t *)buf);
usr.sbin/trpt/trpt.c
292
ntime = ntohl(td->td_time);
usr.sbin/trpt/trpt.c
319
ntime = ntohl(td->td_time);