| /freebsd-12.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-12.1/tools/tools/netmap/ |
| H A D | pkt_hash.c | 154 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 165 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 172 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 195 ntohl(iph->ip_dst.s_addr), in decode_ip_n_hash() 224 rc = sym_hash_fn(ntohl(saddr), in decode_ipv6_n_hash() 225 ntohl(daddr), in decode_ipv6_n_hash() 236 ntohl(daddr), in decode_ipv6_n_hash() 243 ntohl(daddr), in decode_ipv6_n_hash() 270 ntohl(daddr), in decode_ipv6_n_hash() 296 rc = sym_hash_fn(ntohl(saddr), in decode_others_n_hash() [all …]
|
| /freebsd-12.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-12.1/contrib/tcpdump/ |
| H A D | print-pfsync.c | 272 endtime = ntohl(b->endtime); in pfsync_print_bus() 300 ntohl(t->spi), (uintmax_t )be64toh(t->rpl), in pfsync_print_tdb() 323 ND_PRINT((ndo, "[%u + %u](+%u)", ntohl(p->seqlo), in print_seq() 324 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff))); in print_seq() 326 ND_PRINT((ndo, "[%u + %u]", ntohl(p->seqlo), in print_seq() 327 ntohl(p->seqhi) - ntohl(p->seqlo))); in print_seq() 426 uint32_t creation = ntohl(s->creation); in print_state() 427 uint32_t expire = ntohl(s->expire); in print_state() 447 if (s->anchor != ntohl(-1)) in print_state() 449 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-12.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-12.1/sys/nfs/ |
| H A D | xdr_subs.h | 53 #define fxdr_unsigned(t, v) ((t)ntohl((int32_t)(v))) 58 (t)->tv_sec = ntohl(((struct nfsv2_time *)(f))->nfsv2_sec); \ 60 (t)->tv_nsec = 1000 * ntohl(((struct nfsv2_time *)(f))->nfsv2_usec); \ 75 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \ 76 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \ 85 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ 86 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
|
| /freebsd-12.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-12.1/sbin/pfctl/ |
| H A D | pf_print_state.c | 202 printf("[%u + %u](+%u)", ntohl(p->seqlo), in print_seq() 203 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff)); in print_seq() 205 printf("[%u + %u]", ntohl(p->seqlo), in print_seq() 206 ntohl(p->seqhi) - ntohl(p->seqlo)); in print_seq() 316 u_int32_t creation = ntohl(s->creation); in print_state() 317 u_int32_t expire = ntohl(s->expire); in print_state() 339 if (ntohl(s->anchor) != -1) in print_state() 340 printf(", anchor %u", ntohl(s->anchor)); in print_state() 341 if (ntohl(s->rule) != -1) in print_state() 342 printf(", rule %u", ntohl(s->rule)); in print_state() [all …]
|
| /freebsd-12.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() 274 n = ntohl(pq->pdu.ipdu.bhs.CmdSN); in iscsi_requeue() 551 ntohl(pq->pdu.ipdu.bhs.itt), in scsi_decap() 561 ntohl(pq->pdu.ipdu.bhs.itt), in scsi_decap() 573 ntohl(cmd->edtlen), pq->pdu.ds_len, pq->mp); in scsi_decap() 574 if(ntohl(cmd->edtlen) >= pq->pdu.ds_len) { in scsi_decap() 580 offset = ntohl(rcmd->bo); in scsi_decap() [all …]
|
| /freebsd-12.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() 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 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()
|
| /freebsd-12.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-12.1/usr.sbin/ctld/ |
| H A D | discovery.c | 69 if (ISCSI_SNLT(ntohl(bhstr->bhstr_cmdsn), conn->conn_cmdsn)) { in text_receive() 71 "was %u, is %u", conn->conn_cmdsn, ntohl(bhstr->bhstr_cmdsn)); in text_receive() 73 if (ntohl(bhstr->bhstr_expstatsn) != conn->conn_statsn) { in text_receive() 75 "is %u, should be %u", ntohl(bhstr->bhstr_expstatsn), in text_receive() 78 conn->conn_cmdsn = ntohl(bhstr->bhstr_cmdsn); in text_receive() 126 if (ISCSI_SNLT(ntohl(bhslr->bhslr_cmdsn), conn->conn_cmdsn)) { in logout_receive() 129 ntohl(bhslr->bhslr_cmdsn)); in logout_receive() 131 if (ntohl(bhslr->bhslr_expstatsn) != conn->conn_statsn) { in logout_receive() 133 "is %u, should be %u", ntohl(bhslr->bhslr_expstatsn), in logout_receive() 136 conn->conn_cmdsn = ntohl(bhslr->bhslr_cmdsn); in logout_receive()
|
| /freebsd-12.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-12.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-12.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-12.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-12.1/lib/libc/nls/ |
| H A D | msgcat.c | 280 u = ntohl((u_int32_t)cat_hdr->__nsets) - 1; in catgets() 283 r = set_id - ntohl((u_int32_t)set_hdr[i].__setno); in catgets() 289 ntohl((u_int32_t)cat_hdr->__msg_hdr_offset)); in catgets() 291 l = ntohl((u_int32_t)set_hdr[i].__index); in catgets() 292 u = l + ntohl((u_int32_t)set_hdr[i].__nmsgs) - 1; in catgets() 296 ntohl((u_int32_t)msg_hdr[i].__msgno); in catgets() 300 ntohl((u_int32_t) in catgets() 302 ntohl((u_int32_t) in catgets() 428 if (ntohl((u_int32_t)((struct _nls_cat_hdr *)data)->__magic) != in load_msgcat()
|
| /freebsd-12.1/usr.sbin/iscsid/ |
| H A D | discovery.c | 66 if (ntohl(bhstr->bhstr_statsn) != conn->conn_statsn + 1) { in text_receive() 68 "is %u, should be %u", ntohl(bhstr->bhstr_statsn), in text_receive() 71 conn->conn_statsn = ntohl(bhstr->bhstr_statsn); in text_receive() 112 if (ntohl(bhslr->bhslr_statsn) != conn->conn_statsn + 1) { in logout_receive() 114 "is %u, should be %u", ntohl(bhslr->bhslr_statsn), in logout_receive() 117 conn->conn_statsn = ntohl(bhslr->bhslr_statsn); in logout_receive()
|
| /freebsd-12.1/sys/opencrypto/ |
| H A D | xform_blf.c | 82 t[0] = ntohl(t[0]); in blf_encrypt() 83 t[1] = ntohl(t[1]); in blf_encrypt() 97 t[0] = ntohl(t[0]); in blf_decrypt() 98 t[1] = ntohl(t[1]); in blf_decrypt()
|
| /freebsd-12.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-12.1/sys/contrib/ipfilter/netinet/ |
| H A D | ip_sync.c | 320 td->td_end = ntohl(td->td_end); 347 n->nat_age = ntohl(n->nat_age); 348 n->nat_flags = ntohl(n->nat_flags); 350 n->nat_use = ntohl(n->nat_use); 351 n->nat_dir = ntohl(n->nat_dir); 391 ips->is_hv = ntohl(ips->is_hv); 392 ips->is_die = ntohl(ips->is_die); 459 sh.sm_magic = ntohl(sh.sm_magic); 460 sh.sm_len = ntohl(sh.sm_len); 461 sh.sm_num = ntohl(sh.sm_num); [all …]
|
| /freebsd-12.1/contrib/ipfilter/lib/ |
| H A D | nat_setgroupmap.c | 20 n->in_ippip = ~ntohl(n->in_osrcmsk); 22 n->in_ippip /= (~ntohl(n->in_nsrcmsk) + 1); 28 n->in_space = USABLE_PORTS * ~ntohl(n->in_nsrcmsk);
|