/freebsd/contrib/ntp/ntpdc/ |
H A D | ntpdc_ops.c | 627 (void) fprintf(fp, "timer %lds, flags", (long)ntohl(pp->timer)); in printpeer() 843 (u_long)ntohl(pp->timereceived)); in peerstats() 845 (u_long)ntohl(pp->timetosend)); in peerstats() 847 (u_long)ntohl(pp->timereachable)); in peerstats() 849 (u_long)ntohl(pp->sent)); in peerstats() 851 (u_long)ntohl(pp->processed)); in peerstats() 853 (u_long)ntohl(pp->badauth)); in peerstats() 855 (u_long)ntohl(pp->bogusorg)); in peerstats() 857 (u_long)ntohl(pp->oldpkt)); in peerstats() 859 (u_long)ntohl(pp->seldisp)); in peerstats() [all …]
|
/freebsd/sys/fs/nfs/ |
H A D | xdr_subs.h | 49 #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 D | pkt_hash.c | 155 rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), in decode_ip_n_hash() 156 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 166 rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), in decode_ip_n_hash() 167 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 173 rc = sym_hash_fn(ntohl(iph->ip_src.s_addr), in decode_ip_n_hash() 174 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 196 rc = sym_hash_fn(ntohl(iph->ip_src.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() [all …]
|
/freebsd/sys/nfs/ |
H A D | xdr_subs.h | 49 #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/contrib/tcpdump/ |
H A D | print-pfsync.c | 243 (uintmax_t)be64toh(iack->id), ntohl(iack->creatorid)); in pfsync_print_ins_ack() 252 (uintmax_t)be64toh(u->id), ntohl(u->creatorid)); in pfsync_print_upd_c() 265 (uintmax_t)be64toh(ur->id), ntohl(ur->creatorid)); in pfsync_print_upd_req() 274 (uintmax_t)be64toh(d->id), ntohl(d->creatorid)); in pfsync_print_del_c() 285 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() [all …]
|
/freebsd/sys/dev/dcons/ |
H A D | dcons.c | 56 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() 175 dc->i.gen = ntohl(buf->iptr[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() [all …]
|
/freebsd/sys/ofed/drivers/infiniband/ulp/sdp/ |
H A D | sdp_bcopy.c | 54 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 D | sdp_rx.c | 220 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() 285 if (sdp_resize_buffers(ssk, ntohl(buf->size)) == 0) in sdp_handle_resize_request() 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() [all …]
|
/freebsd/contrib/libpcap/ |
H A D | extract.h | 91 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() 213 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | in EXTRACT_BE_U_8() 214 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_BE_U_8() [all …]
|
/freebsd/crypto/openssh/openbsd-compat/ |
H A D | sha1.h | 51 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/stand/libsa/ |
H A D | nfs.c | 231 return (ntohl(repl->errno)); in nfs_getrootfh() 233 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh() 300 return (ntohl(repl->errno)); in nfs_lookupfh() 302 newfd->fhsize = ntohl(repl->fhsize); 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() 720 uint32_t size = ntohl(d->fa.fa_size.val[1]); in nfs_seek() 750 ftype = ntohl(fp->fa.fa_type); in nfs_stat() [all …]
|
H A D | bootparam.c | 189 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 D | rpc.c | 185 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 D | ev.c | 50 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 D | byteorder.h | 59 #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 D | ntp_crypto.c | 275 keyid = ntohl(keyid); in session_key() 396 peer->keynumber, keyid, cookie, ntohl(vp->tstamp), in make_keylist() 397 ntohl(vp->fstamp), peer->hpoll)); in make_keylist() 463 code = ntohl(ep->opcode) & 0xffff0000; in crypto_recv() 464 len = ntohl(ep->opcode) & 0x0000ffff; in crypto_recv() 466 associd = (associd_t)ntohl(pkt[1]); in crypto_recv() 494 fstamp = ntohl(ep->fstamp); in crypto_recv() 495 vallen = ntohl(ep->vallen); in crypto_recv() 680 ntohl(xinfo->cert.vallen)); in crypto_recv() 690 ntohl(e in crypto_recv() [all...] |
/freebsd/contrib/bsnmp/snmp_mibII/ |
H A D | mibII_ipaddr.c | 76 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 D | text.c | 83 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/sys/compat/linuxkpi/common/include/linux/ |
H A D | in.h | 39 #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/ofed/infiniband-diags/src/ |
H A D | vendstat.c | 220 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/usr.sbin/rwhod/ |
H A D | rwhod.c | 414 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( in Sendto() [all...] |
/freebsd/sys/netpfil/ipfilter/netinet/ |
H A D | ip_sync.c | 307 td->td_end = ntohl(td->td_end); in ipf_sync_tcporder() 308 td->td_maxend = ntohl(td->td_maxend); 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() 334 n->nat_ipsumd = ntohl(n->nat_ipsumd); 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() 376 ips->is_pass = ntohl(ips->is_pass); in ipf_sync_storder() [all …]
|
/freebsd/lib/libc/nls/ |
H A D | msgcat.c | 294 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() 450 if (ntohl((u_int32_t)((struct _nls_cat_hdr *)data)->__magic) != in load_msgcat()
|
/freebsd/sbin/ipf/libipf/ |
H A D | nat_setgroupmap.c | 16 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/ppp/ |
H A D | slcompress.c | 128 (f) = htonl(ntohl(f) + ((cp[1] << 8) | cp[2])); \ 131 (f) = htonl(ntohl(f) + (u_int32_t)*cp++); \ 304 deltaA = ntohl(th->th_ack) - ntohl(oth->th_ack); in sl_compress_tcp() 312 deltaS = ntohl(th->th_seq) - ntohl(oth->th_seq); in sl_compress_tcp() 513 th->th_ack = htonl(ntohl(th->th_ack) + i); in sl_uncompress_tcp() 514 th->th_seq = htonl(ntohl(th->th_seq) + i); in sl_uncompress_tcp() 519 th->th_seq = htonl(ntohl(th->th_seq) + ntohs(cs->cs_ip.ip_len) in sl_uncompress_tcp() 546 cs->cs_ip.ip_id, (u_long)ntohl(th->th_seq)); in sl_uncompress_tcp()
|