| /freebsd-13.1/contrib/ntp/ntpdc/ |
| H A D | ntpdc_ops.c | 849 (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-13.1/sys/fs/nfs/ |
| H A D | xdr_subs.h | 51 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v))) 55 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \ 57 (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 (t)->tv_sec = ntohl(((struct nfsv4_time *)(f))->nfsv4_sec); \ 82 (t)->tv_nsec = (ntohl(((struct nfsv4_time *)(f))->nfsv4_nsec) % \ 93 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ 94 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
|
| /freebsd-13.1/tools/tools/netmap/ |
| H A D | pkt_hash.c | 157 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 168 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 175 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 198 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 227 rc = sym_hash_fn(ntohl(saddr), in decode_ipv6_n_hash() 228 ntohl(daddr), in decode_ipv6_n_hash() 239 ntohl(daddr), in decode_ipv6_n_hash() 246 ntohl(daddr), in decode_ipv6_n_hash() 273 ntohl(daddr), in decode_ipv6_n_hash() 299 rc = sym_hash_fn(ntohl(saddr), in decode_others_n_hash() [all …]
|
| /freebsd-13.1/sys/nfs/ |
| H A D | xdr_subs.h | 52 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v))) 57 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \ 59 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \ 74 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \ 75 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \ 84 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ 85 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
|
| /freebsd-13.1/sys/dev/dcons/ |
| H A D | dcons.c | 57 ptr = ntohl(*ch->ptr); in dcons_ischar() 86 ptr = ntohl(*ch->ptr); in dcons_checkc() 171 dc->o.size = ntohl(buf->osize[port]); in dcons_load_buffer() 172 dc->i.size = ntohl(buf->isize[port]); in dcons_load_buffer() 173 dc->o.buf = (char *)buf + ntohl(buf->ooffset[port]); in dcons_load_buffer() 174 dc->i.buf = (char *)buf + ntohl(buf->ioffset[port]); in dcons_load_buffer() 175 dc->o.gen = ntohl(buf->optr[port]) >> DCONS_GEN_SHIFT; in dcons_load_buffer() 177 dc->o.pos = ntohl(buf->optr[port]) & DCONS_POS_MASK; in dcons_load_buffer() 178 dc->i.pos = ntohl(buf->iptr[port]) & DCONS_POS_MASK; in dcons_load_buffer() 190 buf->magic = ntohl(DCONS_MAGIC); in dcons_load_buffer() [all …]
|
| /freebsd-13.1/contrib/tcpdump/ |
| H A D | print-pfsync.c | 271 endtime = ntohl(b->endtime); in pfsync_print_bus() 299 ntohl(t->spi), (uintmax_t )be64toh(t->rpl), in pfsync_print_tdb() 322 ND_PRINT((ndo, "[%u + %u](+%u)", ntohl(p->seqlo), in print_seq() 323 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff))); in print_seq() 325 ND_PRINT((ndo, "[%u + %u]", ntohl(p->seqlo), in print_seq() 326 ntohl(p->seqhi) - ntohl(p->seqlo))); in print_seq() 425 uint32_t creation = ntohl(s->creation); in print_state() 426 uint32_t expire = ntohl(s->expire); in print_state() 446 if (s->anchor != ntohl(-1)) in print_state() 448 if (s->rule != ntohl(-1)) in print_state() [all …]
|
| H A D | extract.h | 140 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_32BITS() 146 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | in EXTRACT_64BITS() 147 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS() 190 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_32BITS() 196 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | in EXTRACT_64BITS() 197 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_64BITS()
|
| /freebsd-13.1/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() 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-13.1/sys/dev/iscsi_initiator/ |
| H A D | iscsi_subr.c | 78 ntohl(r2t->r2tSN), ntohl(r2t->bo), ntohl(r2t->ddtl), opp->ipdu.scsi_req.W); in iscsi_r2t() 84 u_int ddtl = ntohl(r2t->ddtl); in iscsi_r2t() 89 bo = ntohl(r2t->bo); in iscsi_r2t() 104 ntohl(r2t->r2tSN), ntohl(r2t->bo), ntohl(r2t->ddtl), opp->ipdu.scsi_req.W); in iscsi_r2t() 270 n = ntohl(pq->pdu.ipdu.bhs.CmdSN); in iscsi_requeue() 543 ntohl(pq->pdu.ipdu.bhs.itt), in scsi_decap() 553 ntohl(pq->pdu.ipdu.bhs.itt), in scsi_decap() 565 ntohl(cmd->edtlen), pq->pdu.ds_len, pq->mp); in scsi_decap() 566 if(ntohl(cmd->edtlen) >= pq->pdu.ds_len) { in scsi_decap() 572 offset = ntohl(rcmd->bo); in scsi_decap() [all …]
|
| /freebsd-13.1/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-13.1/stand/libsa/ |
| H A D | nfs.c | 234 return (ntohl(repl->errno)); in nfs_getrootfh() 236 *fhlenp = ntohl(repl->fhsize); in nfs_getrootfh() 303 return (ntohl(repl->errno)); in nfs_lookupfh() 365 rc = ntohl(repl->errno); in nfs_readlink() 374 repl->len = ntohl(repl->len); in nfs_readlink() 443 errno = ntohl(repl->errno); in nfs_readdata() 448 x = ntohl(repl->count); in nfs_readdata() 751 ftype = ntohl(fp->fa.fa_type); in nfs_stat() 752 mode = ntohl(fp->fa.fa_mode); in nfs_stat() 813 rc = ntohl(repl->errno); in nfs_readdir() [all …]
|
| H A D | bootparam.c | 192 x = ntohl(repl->encap_len); in bp_whoami() 354 slen = ntohl(*lenp); in xdr_string_decode() 417 ntohl(xi->atype))); in xdr_inaddr_decode() 428 *cp++ = ntohl(*ip++); in xdr_inaddr_decode() 429 *cp++ = ntohl(*ip++); in xdr_inaddr_decode() 430 *cp++ = ntohl(*ip++); in xdr_inaddr_decode() 431 *cp++ = ntohl(*ip++); in xdr_inaddr_decode()
|
| H A D | rpc.c | 190 x = ntohl(auth->authlen); in rpc_call() 200 x = ntohl(reply->rp_u.rpu_rok.rok_status); in rpc_call() 240 x = ntohl(reply->rp_xid); in recvrpc() 250 x = ntohl(reply->rp_direction); in recvrpc() 260 x = ntohl(reply->rp_astatus); in recvrpc() 262 errno = ntohl(reply->rp_u.rpu_errno); in recvrpc() 422 port = (int)ntohl(res->port); in rpc_getport()
|
| /freebsd-13.1/usr.sbin/ctld/ |
| H A D | discovery.c | 68 if (ISCSI_SNLT(ntohl(bhstr->bhstr_cmdsn), conn->conn_cmdsn)) { in text_receive() 70 "was %u, is %u", conn->conn_cmdsn, ntohl(bhstr->bhstr_cmdsn)); in text_receive() 72 if (ntohl(bhstr->bhstr_expstatsn) != conn->conn_statsn) { in text_receive() 74 "is %u, should be %u", ntohl(bhstr->bhstr_expstatsn), in text_receive() 77 conn->conn_cmdsn = ntohl(bhstr->bhstr_cmdsn); in text_receive() 125 if (ISCSI_SNLT(ntohl(bhslr->bhslr_cmdsn), conn->conn_cmdsn)) { in logout_receive() 128 ntohl(bhslr->bhslr_cmdsn)); in logout_receive() 130 if (ntohl(bhslr->bhslr_expstatsn) != conn->conn_statsn) { in logout_receive() 132 "is %u, should be %u", ntohl(bhslr->bhslr_expstatsn), in logout_receive() 135 conn->conn_cmdsn = ntohl(bhslr->bhslr_cmdsn); in logout_receive()
|
| /freebsd-13.1/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); 151 return ((((uint64_t)ntohl(n)) << 32) + ntohl(n >> 32));
|
| /freebsd-13.1/contrib/libpcap/ |
| H A D | extract.h | 108 return ((uint32_t)ntohl(((const unaligned_uint32_t *)(p))->val)); in EXTRACT_32BITS() 114 return ((uint64_t)(((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 0)->val)) << 32 | \ in EXTRACT_64BITS() 115 ((uint64_t)ntohl(((const unaligned_uint32_t *)(p) + 1)->val)) << 0)); in EXTRACT_64BITS() 158 return ((uint32_t)ntohl(*(const uint32_t *)(p))); in EXTRACT_32BITS() 164 return ((uint64_t)(((uint64_t)ntohl(*((const uint32_t *)(p) + 0))) << 32 | \ in EXTRACT_64BITS() 165 ((uint64_t)ntohl(*((const uint32_t *)(p) + 1))) << 0)); in EXTRACT_64BITS()
|
| /freebsd-13.1/contrib/ntp/ntpd/ |
| H A D | ntp_crypto.c | 282 keyid = ntohl(keyid); in session_key() 698 ntohl(ep->fstamp)); in crypto_recv() 876 ntohl(ep->tstamp), ntohl(ep->fstamp)); in crypto_recv() 935 ntohl(ep->fstamp)); in crypto_recv() 972 ntohl(ep->fstamp)); in crypto_recv() 1011 ntohl(ep->pkt[0]), ntohl(ep->pkt[1]), in crypto_recv() 1012 ntohl(ep->pkt[2]), ntohl(ep->fstamp)); in crypto_recv() 2381 ntohl(ep->fstamp)); in crypto_iff() 2397 len = ntohl(ep->vallen); in crypto_iff() 2705 ntohl(ep->fstamp)); in crypto_gq() [all …]
|
| /freebsd-13.1/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-13.1/sys/compat/linuxkpi/common/include/linux/ |
| H A D | in.h | 42 #define ipv4_is_zeronet(be) IN_ZERONET(ntohl(be)) 43 #define ipv4_is_loopback(be) IN_LOOPBACK(ntohl(be)) 44 #define ipv4_is_multicast(be) IN_MULTICAST(ntohl(be))
|
| /freebsd-13.1/usr.sbin/iscsid/ |
| H A D | discovery.c | 65 if (ntohl(bhstr->bhstr_statsn) != conn->conn_statsn + 1) { in text_receive() 67 "is %u, should be %u", ntohl(bhstr->bhstr_statsn), in text_receive() 70 conn->conn_statsn = ntohl(bhstr->bhstr_statsn); in text_receive() 111 if (ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) { in logout_receive() 113 "is %u, should be %u", ntohl(bhslr->bhslr_statsn), in logout_receive() 116 conn->conn_statsn = ntohl(bhslr->bhslr_statsn); in logout_receive()
|
| /freebsd-13.1/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-13.1/sbin/ipf/libipf/ |
| H A D | nat_setgroupmap.c | 20 n->in_ippip = ~ntohl(n->in_osrcmsk); in nat_setgroupmap() 22 n->in_ippip /= (~ntohl(n->in_nsrcmsk) + 1); in nat_setgroupmap() 28 n->in_space = USABLE_PORTS * ~ntohl(n->in_nsrcmsk); in nat_setgroupmap()
|
| /freebsd-13.1/lib/libc/nls/ |
| H A D | msgcat.c | 297 u = ntohl((u_int32_t)cat_hdr->__nsets) - 1; in catgets() 300 r = set_id - ntohl((u_int32_t)set_hdr[i].__setno); in catgets() 306 ntohl((u_int32_t)cat_hdr->__msg_hdr_offset)); in catgets() 308 l = ntohl((u_int32_t)set_hdr[i].__index); in catgets() 309 u = l + ntohl((u_int32_t)set_hdr[i].__nmsgs) - 1; in catgets() 313 ntohl((u_int32_t)msg_hdr[i].__msgno); in catgets() 317 ntohl((u_int32_t) in catgets() 319 ntohl((u_int32_t) in catgets() 445 if (ntohl((u_int32_t)((struct _nls_cat_hdr *)data)->__magic) != in load_msgcat()
|
| /freebsd-13.1/sys/netpfil/ipfilter/netinet/ |
| H A D | ip_sync.c | 311 td->td_end = ntohl(td->td_end); in ipf_sync_tcporder() 336 n->nat_age = ntohl(n->nat_age); in ipf_sync_natorder() 337 n->nat_flags = ntohl(n->nat_flags); in ipf_sync_natorder() 339 n->nat_use = ntohl(n->nat_use); in ipf_sync_natorder() 340 n->nat_dir = ntohl(n->nat_dir); in ipf_sync_natorder() 378 ips->is_hv = ntohl(ips->is_hv); in ipf_sync_storder() 379 ips->is_die = ntohl(ips->is_die); in ipf_sync_storder() 444 sh.sm_magic = ntohl(sh.sm_magic); in ipf_sync_write() 445 sh.sm_len = ntohl(sh.sm_len); in ipf_sync_write() 446 sh.sm_num = ntohl(sh.sm_num); in ipf_sync_write() [all …]
|