Home
last modified time | relevance | path

Searched refs:ntohl (Results 1 – 25 of 456) sorted by relevance

12345678910>>...19

/freebsd/contrib/ntp/ntpdc/
H A Dntpdc_ops.c849 (u_long)ntohl(pp->sent)); in peerstats()
857 (u_long)ntohl(pp->oldpkt)); in peerstats()
1074 (u_long)ntohl(ss->timeup)); in sysstats()
1088 (u_long)ntohl(ss->denied)); in sysstats()
1152 (u_long)ntohl(io->sent)); in iostats()
1741 count = ntohl(rl->count); in reslist()
1914 num = ntohl(cres.mask); in do_restrict()
2896 s = ntohl(cl->stimes); in clkbug()
3095 ntohl(ifs->ifnum), in iflist()
3104 (u_long)ntohl(ifs->sent), in iflist()
[all …]
/freebsd/sys/fs/nfs/
H A Dxdr_subs.h49 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v)))
53 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
55 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
69 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
70 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
79 (t)->tv_sec = ntohl(((struct nfsv4_time *)(f))->nfsv4_sec); \
80 (t)->tv_nsec = (ntohl(((struct nfsv4_time *)(f))->nfsv4_nsec) % \
91 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
92 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
/freebsd/tools/tools/netmap/
H A Dpkt_hash.c156 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
167 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
174 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
197 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash()
226 rc = sym_hash_fn(ntohl(saddr), in decode_ipv6_n_hash()
227 ntohl(daddr), in decode_ipv6_n_hash()
238 ntohl(daddr), in decode_ipv6_n_hash()
245 ntohl(daddr), in decode_ipv6_n_hash()
272 ntohl(daddr), in decode_ipv6_n_hash()
298 rc = sym_hash_fn(ntohl(saddr), in decode_others_n_hash()
[all …]
/freebsd/sys/nfs/
H A Dxdr_subs.h49 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v)))
54 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \
56 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \
71 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \
72 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \
81 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \
82 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
/freebsd/sys/dev/dcons/
H A Ddcons.c56 ptr = ntohl(*ch->ptr); in dcons_ischar()
85 ptr = ntohl(*ch->ptr); in dcons_checkc()
170 dc->o.size = ntohl(buf->osize[port]); in dcons_load_buffer()
171 dc->i.size = ntohl(buf->isize[port]); in dcons_load_buffer()
172 dc->o.buf = (char *)buf + ntohl(buf->ooffset[port]); in dcons_load_buffer()
173 dc->i.buf = (char *)buf + ntohl(buf->ioffset[port]); in dcons_load_buffer()
174 dc->o.gen = ntohl(buf->optr[port]) >> DCONS_GEN_SHIFT; in dcons_load_buffer()
176 dc->o.pos = ntohl(buf->optr[port]) & DCONS_POS_MASK; in dcons_load_buffer()
177 dc->i.pos = ntohl(buf->iptr[port]) & DCONS_POS_MASK; in dcons_load_buffer()
189 buf->magic = ntohl(DCONS_MAGIC); in dcons_load_buffer()
[all …]
/freebsd/contrib/tcpdump/
H A Dprint-pfsync.c285 endtime = ntohl(b->endtime); in pfsync_print_bus()
313 ntohl(t->spi), (uintmax_t )be64toh(t->rpl), in pfsync_print_tdb()
336 ND_PRINT("[%u + %u](+%u)", ntohl(p->seqlo), in print_seq()
337 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff)); in print_seq()
339 ND_PRINT("[%u + %u]", ntohl(p->seqlo), in print_seq()
340 ntohl(p->seqhi) - ntohl(p->seqlo)); in print_seq()
439 uint32_t creation = ntohl(s->pfs_1301.creation); in print_state()
440 uint32_t expire = ntohl(s->pfs_1301.expire); in print_state()
460 if (s->pfs_1301.anchor != ntohl(-1)) in print_state()
462 if (s->pfs_1301.rule != ntohl(-1)) in print_state()
[all …]
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/
H A Dsdp_bcopy.c54 ntohs(h->bufs), ntohl(h->len), ntohl(h->mseq), in _dump_packet()
55 ntohl(h->mseq_ack)); in _dump_packet()
64 ntohl(hh->localrcvsz), in _dump_packet()
65 ntohl(hh->desremrcvsz)); in _dump_packet()
70 ntohl(hah->actrcvsz)); in _dump_packet()
76 ntohl(req_size->size)); in _dump_packet()
80 ntohl(h->len) - sizeof(struct sdp_bsdh)); in _dump_packet()
86 ntohl(rrch->len)); in _dump_packet()
93 ntohl(h->len) - sizeof(struct sdp_bsdh) - in _dump_packet()
95 ntohl(srcah->len), ntohl(srcah->rkey), in _dump_packet()
H A Dsdp_rx.c220 rx_sa->mseq = ntohl(h->mseq); in sdp_sock_queue_rcv_mb()
222 rx_sa->len = mb_len = ntohl(srcah->len); in sdp_sock_queue_rcv_mb()
223 rx_sa->rkey = ntohl(srcah->rkey); in sdp_sock_queue_rcv_mb()
295 u32 new_size = ntohl(buf->size); in sdp_handle_resize_ack()
350 sdp_handle_sendsm(ssk, ntohl(h->mseq_ack)); in sdp_process_rx_ctl_mb()
356 ssk->srcavail_cancel_mseq = ntohl(h->mseq); in sdp_process_rx_ctl_mb()
419 mseq_ack = ntohl(h->mseq_ack); in sdp_process_rx_mb()
428 tx_credits(ssk), ntohl(h->mseq), ntohl(h->mseq_ack)); in sdp_process_rx_mb()
444 ntohl(h->mseq), ntohl(h->mseq_ack)); in sdp_process_rx_mb()
453 ntohl(rrch->len)); in sdp_process_rx_mb()
[all …]
/freebsd/crypto/openssh/openbsd-compat/
H A Dsha1.h51 x[0] = ntohl(x[0]); \
52 x[1] = ntohl(x[1]); \
53 x[2] = ntohl(x[2]); \
54 x[3] = ntohl(x[3]); \
55 x[4] = ntohl(x[4]); } while (0)
/freebsd/contrib/libpcap/
H A Dextract.h91 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_BE_U_4()
97 return ((int32_t)ntohl(*(const int32_t *)(p))); in EXTRACT_BE_S_4()
103 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | in EXTRACT_BE_U_8()
104 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_BE_U_8()
111 return ((int64_t)(((int64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | in EXTRACT_BE_S_8()
112 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_BE_S_8()
201 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_BE_U_4()
207 return ((int32_t)ntohl(((const unaligned_int32_t *)(p))->val)); in EXTRACT_BE_S_4()
214 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_BE_U_8()
220 return ((int64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | in EXTRACT_BE_S_8()
[all …]
/freebsd/stand/libsa/
H A Dnfs.c231 return (ntohl(repl->errno)); in nfs_getrootfh()
233 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh()
300 return (ntohl(repl->errno)); in nfs_lookupfh()
362 rc = ntohl(repl->errno); in nfs_readlink()
371 repl->len = ntohl(repl->len); in nfs_readlink()
440 errno = ntohl(repl->errno); in nfs_readdata()
445 x = ntohl(repl->count); in nfs_readdata()
750 ftype = ntohl(fp->fa.fa_type); in nfs_stat()
751 mode = ntohl(fp->fa.fa_mode); in nfs_stat()
812 rc = ntohl(repl->errno); in nfs_readdir()
[all …]
H A Dbootparam.c189 x = ntohl(repl->encap_len); in bp_whoami()
351 slen = ntohl(*lenp); in xdr_string_decode()
414 ntohl(xi->atype))); in xdr_inaddr_decode()
425 *cp++ = ntohl(*ip++); in xdr_inaddr_decode()
426 *cp++ = ntohl(*ip++); in xdr_inaddr_decode()
427 *cp++ = ntohl(*ip++); in xdr_inaddr_decode()
428 *cp++ = ntohl(*ip++); in xdr_inaddr_decode()
H A Drpc.c185 x = ntohl(auth->authlen); in rpc_call()
195 x = ntohl(reply->rp_u.rpu_rok.rok_status); in rpc_call()
235 x = ntohl(reply->rp_xid); in recvrpc()
245 x = ntohl(reply->rp_direction); in recvrpc()
255 x = ntohl(reply->rp_astatus); in recvrpc()
257 errno = ntohl(reply->rp_u.rpu_errno); in recvrpc()
417 port = (int)ntohl(res->port); in rpc_getport()
/freebsd/sys/dev/cxgbe/iw_cxgbe/
H A Dev.c50 G_FW_RI_TPTE_VALID(ntohl(tpte->valid_to_pdid)), in print_tpte()
51 G_FW_RI_TPTE_STAGKEY(ntohl(tpte->valid_to_pdid)), in print_tpte()
52 G_FW_RI_TPTE_STAGSTATE(ntohl(tpte->valid_to_pdid)), in print_tpte()
53 G_FW_RI_TPTE_PDID(ntohl(tpte->valid_to_pdid)), in print_tpte()
54 G_FW_RI_TPTE_PERM(ntohl(tpte->locread_to_qpid)), in print_tpte()
55 G_FW_RI_TPTE_PS(ntohl(tpte->locread_to_qpid)), in print_tpte()
56 (long long)(((u64)ntohl(tpte->len_hi) << 32) | ntohl(tpte->len_lo)), in print_tpte()
57 (long long)(((u64)ntohl(tpte->va_hi) << 32) | ntohl(tpte->va_lo_fbo))); in print_tpte()
/freebsd/sys/contrib/openzfs/lib/libspl/include/os/linux/sys/
H A Dbyteorder.h59 #if defined(_ZFS_BIG_ENDIAN) && !defined(ntohl) && !defined(__lint)
61 #define ntohl(x) (x) macro
66 #elif !defined(ntohl) /* little-endian */
81 extern uint32_t ntohl(uint32_t);
86 extern in_addr_t ntohl(in_addr_t);
165 return ((((uint64_t)ntohl(n)) << 32) + ntohl(n >> 32));
/freebsd/contrib/ntp/ntpd/
H A Dntp_crypto.c275 keyid = ntohl(keyid); in session_key()
690 ntohl(ep->fstamp)); in crypto_recv()
869 ntohl(ep->tstamp), ntohl(ep->fstamp)); in crypto_recv()
928 ntohl(ep->fstamp)); in crypto_recv()
965 ntohl(ep->fstamp)); in crypto_recv()
1004 ntohl(ep->pkt[0]), ntohl(ep->pkt[1]), in crypto_recv()
1005 ntohl(ep->pkt[2]), ntohl(ep->fstamp)); in crypto_recv()
2377 ntohl(ep->fstamp)); in crypto_iff()
2393 len = ntohl(ep->vallen); in crypto_iff()
2699 ntohl(ep->fstamp)); in crypto_gq()
[all …]
/freebsd/sys/compat/linuxkpi/common/include/linux/
H A Din.h39 #define ipv4_is_zeronet(be) IN_ZERONET(ntohl(be))
40 #define ipv4_is_loopback(be) IN_LOOPBACK(ntohl(be))
41 #define ipv4_is_multicast(be) IN_MULTICAST(ntohl(be))
/freebsd/contrib/bsnmp/snmp_mibII/
H A DmibII_ipaddr.c76 if (IN_CLASSA(ntohl(upd->addr.s_addr))) in create()
78 else if (IN_CLASSB(ntohl(upd->addr.s_addr))) in create()
80 else if (IN_CLASSC(ntohl(upd->addr.s_addr))) in create()
88 uint32_t tmp = ~ntohl(upd->mask.s_addr); in create()
324 value->v.ipaddress[0] = (ntohl(ifa->inmask.s_addr) >> 24) & 0xff; in op_ipaddr()
325 value->v.ipaddress[1] = (ntohl(ifa->inmask.s_addr) >> 16) & 0xff; in op_ipaddr()
326 value->v.ipaddress[2] = (ntohl(ifa->inmask.s_addr) >> 8) & 0xff; in op_ipaddr()
327 value->v.ipaddress[3] = (ntohl(ifa->inmask.s_addr) >> 0) & 0xff; in op_ipaddr()
331 value->v.integer = ntohl(ifa->inbcast.s_addr) & 1; in op_ipaddr()
/freebsd/lib/libiscsiutil/
H A Dtext.c83 if (ISCSI_SNLT(ntohl(bhstr->bhstr_cmdsn), conn->conn_cmdsn)) { in text_receive_request()
85 "was %u, is %u", conn->conn_cmdsn, ntohl(bhstr->bhstr_cmdsn)); in text_receive_request()
87 conn->conn_cmdsn = ntohl(bhstr->bhstr_cmdsn); in text_receive_request()
155 if (ntohl(bhstr->bhstr_statsn) != conn->conn_statsn + 1) { in text_receive_response()
157 "is %u, should be %u", ntohl(bhstr->bhstr_statsn), in text_receive_response()
160 conn->conn_statsn = ntohl(bhstr->bhstr_statsn); in text_receive_response()
258 if (ntohl(bhstr->bhstr_expstatsn) != conn->conn_statsn) { in text_read_request()
260 "is %u, should be %u", ntohl(bhstr->bhstr_expstatsn), in text_read_request()
/freebsd/contrib/ofed/infiniband-diags/src/
H A Dvendstat.c220 ntohl(cs->record[i].address), in do_config_space_records()
221 ntohl(cs->record[i].data & cs->record[i].mask)); in do_config_space_records()
244 printf("group%d mask %#x\n", i, ntohl(cg_info->group_masks[i])); in counter_groups_info()
471 fw_ver_major = ntohl(gi_is4->ext_fw_info.ext_major); in main()
472 fw_ver_minor = ntohl(gi_is4->ext_fw_info.ext_minor); in main()
473 fw_ver_sub_minor = ntohl(gi_is4->ext_fw_info.ext_sub_minor); in main()
490 printf("hw_uptime: 0x%08x\n", ntohl(gi_is3->hw_info.uptime)); in main()
493 printf("fw_build_id: 0x%04x\n", ntohl(gi_is3->fw_info.build_id)); in main()
499 ntohl(gi_is3->fw_info.ini_file_version)); in main()
527 …printf("Port %d: PortXmitWait 0x%x\n", i + 4, ntohl(cs->record[i].data)); /* port 4 is first port … in main()
[all …]
/freebsd/sbin/ipf/libipf/
H A Dnat_setgroupmap.c16 n->in_ippip = ~ntohl(n->in_osrcmsk); in nat_setgroupmap()
18 n->in_ippip /= (~ntohl(n->in_nsrcmsk) + 1); in nat_setgroupmap()
24 n->in_space = USABLE_PORTS * ~ntohl(n->in_nsrcmsk); in nat_setgroupmap()
/freebsd/usr.sbin/rwhod/
H A Drwhod.c414 wd.wd_sendtime = ntohl(wd.wd_sendtime); in receiver_process()
416 wd.wd_loadav[i] = ntohl(wd.wd_loadav[i]); in receiver_process()
417 wd.wd_boottime = ntohl(wd.wd_boottime); in receiver_process()
420 we->we_idle = ntohl(we->we_idle); in receiver_process()
422 ntohl(we->we_utmp.out_time); in receiver_process()
718 printf("sendto %x.%d\n", ntohl(sin->sin_addr.s_addr), in Sendto()
721 interval(ntohl(w->wd_sendtime) - ntohl(w->wd_boottime), " up")); in Sendto()
723 ntohl(w->wd_loadav[0]) / 100.0, ntohl(w->wd_loadav[1]) / 100.0, in Sendto()
724 ntohl(w->wd_loadav[2]) / 100.0); in Sendto()
727 time_t t = _time32_to_time(ntohl(we->we_utmp.out_time)); in Sendto()
[all …]
/freebsd/lib/libc/nls/
H A Dmsgcat.c294 u = ntohl((u_int32_t)cat_hdr->__nsets) - 1; in catgets()
297 r = set_id - ntohl((u_int32_t)set_hdr[i].__setno); in catgets()
303 ntohl((u_int32_t)cat_hdr->__msg_hdr_offset)); in catgets()
305 l = ntohl((u_int32_t)set_hdr[i].__index); in catgets()
306 u = l + ntohl((u_int32_t)set_hdr[i].__nmsgs) - 1; in catgets()
310 ntohl((u_int32_t)msg_hdr[i].__msgno); in catgets()
314 ntohl((u_int32_t) in catgets()
316 ntohl((u_int32_t) in catgets()
442 if (ntohl((u_int32_t)((struct _nls_cat_hdr *)data)->__magic) != in load_msgcat()
/freebsd/sys/netpfil/ipfilter/netinet/
H A Dip_sync.c307 td->td_end = ntohl(td->td_end); in ipf_sync_tcporder()
332 n->nat_age = ntohl(n->nat_age); in ipf_sync_natorder()
333 n->nat_flags = ntohl(n->nat_flags); in ipf_sync_natorder()
335 n->nat_use = ntohl(n->nat_use); in ipf_sync_natorder()
336 n->nat_dir = ntohl(n->nat_dir); in ipf_sync_natorder()
374 ips->is_hv = ntohl(ips->is_hv); in ipf_sync_storder()
375 ips->is_die = ntohl(ips->is_die); in ipf_sync_storder()
440 sh.sm_magic = ntohl(sh.sm_magic); in ipf_sync_write()
441 sh.sm_len = ntohl(sh.sm_len); in ipf_sync_write()
442 sh.sm_num = ntohl(sh.sm_num); in ipf_sync_write()
[all …]
/freebsd/contrib/netbsd-tests/sys/netinet/
H A Dt_print.c44 { .s_addr = ntohl(INADDR_LOOPBACK) },
49 { .s_addr = ntohl(INADDR_ANY) },
54 { .s_addr = ntohl(IN_CLASSC_NET) },
59 { .s_addr = ntohl(INADDR_ALLHOSTS_GROUP) },

12345678910>>...19