| /openbsd/src/usr.sbin/tcpdump/ |
| D | print-cnfp.c | 82 nrecs = ntohl(nh->ver_cnt) & 0xffff; in cnfp_print() 83 ver = (ntohl(nh->ver_cnt) & 0xffff0000) >> 16; in cnfp_print() 87 ntohl(nh->msys_uptime)/1000, ntohl(nh->msys_uptime)%1000, in cnfp_print() 88 ntohl(nh->utc_sec), ntohl(nh->utc_nsec)); in cnfp_print() 103 ntohl(nr->start_time)/1000, ntohl(nr->start_time)%1000, in cnfp_print() 104 ntohl(nr->last_time)/1000, ntohl(nr->last_time)%1000); in cnfp_print() 109 (ntohl(nr->masks) >> 24) & 0xff); in cnfp_print() 111 (ntohl(nr->asses) >> 16) & 0xffff); in cnfp_print() 114 ntohl(nr->ports) >> 16); in cnfp_print() 118 (ntohl(nr->masks) >> 16) & 0xff); in cnfp_print() [all …]
|
| D | print-nfs.c | 183 res = ((u_int64_t)ntohl(dp[0]) << 32) | (u_int64_t)ntohl(dp[1]); in print_int64() 204 printf("0x%x%08x", (u_int32_t)ntohl(dp[0]), in print_int64() 205 (u_int32_t)ntohl(dp[1])); in print_int64() 207 printf("0x%x", (u_int32_t)ntohl(dp[1])); in print_int64() 223 if ((sa3->sa_modeset = ntohl(*dp++))) { in parse_sattr3() 225 sa3->sa_mode = ntohl(*dp++); in parse_sattr3() 229 if ((sa3->sa_uidset = ntohl(*dp++))) { in parse_sattr3() 231 sa3->sa_uid = ntohl(*dp++); in parse_sattr3() 235 if ((sa3->sa_gidset = ntohl(*dp++))) { in parse_sattr3() 237 sa3->sa_gid = ntohl(*dp++); in parse_sattr3() [all …]
|
| D | print-wb.c | 187 (u_int32_t)ntohl(id->pi_ps.slot), in wb_id() 189 (u_int32_t)ntohl(id->pi_ps.page.p_uid), in wb_id() 190 (u_int32_t)ntohl(id->pi_mslot), in wb_id() 192 (u_int32_t)ntohl(id->pi_mpage.p_uid)); in wb_id() 207 c, ipaddr_string(&io->id), (u_int32_t)ntohl(io->off)); in wb_id() 227 (u_int32_t)ntohl(rreq->pr_page.p_uid), in wb_rreq() 228 (u_int32_t)ntohl(rreq->pr_sseq), in wb_rreq() 229 (u_int32_t)ntohl(rreq->pr_eseq)); in wb_rreq() 241 (u_int32_t)ntohl(preq->pp_low), in wb_preq() 243 (u_int32_t)ntohl(preq->pp_page.p_uid)); in wb_preq() [all …]
|
| D | print-lwres.c | 321 switch (ntohl(ap->family)) { in lwres_printaddr() 331 printf(" %lu/", (unsigned long)ntohl(ap->family)); in lwres_printaddr() 360 s = (const char *)np + ntohl(np->length); in lwres_print() 367 v = (u_int32_t)ntohl(np->opcode); in lwres_print() 378 printf("serial:0x%lx", (unsigned long)ntohl(np->serial)); in lwres_print() 379 printf(" result:0x%lx", (unsigned long)ntohl(np->result)); in lwres_print() 380 printf(" recvlen:%lu", (unsigned long)ntohl(np->recvlength)); in lwres_print() 402 switch (ntohl(np->opcode)) { in lwres_print() 416 (unsigned long)ntohl(gabn->flags)); in lwres_print() 419 v = (u_int32_t)ntohl(gabn->addrtypes); in lwres_print() [all …]
|
| D | print-udp.c | 123 u_int i0 = ntohl(((u_int *)hdr)[0]); in vat_print() 124 u_int i1 = ntohl(((u_int *)hdr)[1]); in vat_print() 143 u_int i0 = ntohl(((u_int *)hdr)[0]); in rtp_print() 144 u_int i1 = ntohl(((u_int *)hdr)[1]); in rtp_print() 227 printf(" %u", (u_int32_t)ntohl(rh->rh_ssrc)); in rtcp_print() 232 ts = (double)((u_int32_t)ntohl(sr->sr_ntp.upper)) + in rtcp_print() 233 ((double)((u_int32_t)ntohl(sr->sr_ntp.lower)) / in rtcp_print() 235 printf(" @%.2f %u %up %ub", ts, (u_int32_t)ntohl(sr->sr_ts), in rtcp_print() 236 (u_int32_t)ntohl(sr->sr_np), (u_int32_t)ntohl(sr->sr_nb)); in rtcp_print() 245 printf(" %u", (u_int32_t)ntohl(rh->rh_ssrc)); in rtcp_print() [all …]
|
| D | print-sunrpc.c | 70 printf("xid 0x%x %d", (u_int32_t)ntohl(rp->rm_xid), length); in sunrpcrequest_print() 72 (u_int32_t)ntohl(rp->rm_call.cb_proc))); in sunrpcrequest_print() 73 x = ntohl(rp->rm_call.cb_rpcvers); in sunrpcrequest_print() 77 switch (ntohl(rp->rm_call.cb_proc)) { in sunrpcrequest_print() 83 x = ntohl(rp->rm_call.cb_prog); in sunrpcrequest_print() 88 printf(".%u", (u_int32_t)ntohl(rp->rm_call.cb_vers)); in sunrpcrequest_print()
|
| D | pf_print_state.c | 174 printf("[%u + %u](+%u)", ntohl(p->seqlo), in print_seq() 175 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff)); in print_seq() 177 printf("[%u + %u]", ntohl(p->seqlo), in print_seq() 178 ntohl(p->seqhi) - ntohl(p->seqlo)); in print_seq() 283 u_int32_t creation = ntohl(s->creation); in print_state() 284 u_int32_t expire = ntohl(s->expire); in print_state() 307 printf(", anchor %u", ntohl(s->anchor)); in print_state() 309 printf(", rule %u", ntohl(s->rule)); in print_state() 316 betoh64(id), ntohl(s->creatorid)); in print_state() 331 tmp = ntohl(m->addr32[j]); in unmask()
|
| D | print-ospf6.c | 208 ospf6_print_seqage(ntohl(lshp->ls_seq), ntohs(lshp->ls_age)); in ospf6_print_lshdr() 276 ntohl(lsap->lsa_un.un_rla.rla_options)); in ospf6_print_lsa() 319 ntohl(lsap->lsa_un.un_nla.nla_options)); in ospf6_print_lsa() 332 (u_int32_t)ntohl(lsap->lsa_un.un_inter_ap.inter_ap_metric) & SLA_MASK_METRIC); in ospf6_print_lsa() 350 ul = ntohl(*lp); in ospf6_print_lsa() 369 ul = ntohl(almp->asla_tosmetric); in ospf6_print_lsa() 393 switch (ntohl(mcp->mcla_vtype)) { in ospf6_print_lsa() 407 (u_int32_t)ntohl(mcp->mcla_vtype)); in ospf6_print_lsa() 418 ospf6_print_bits(ospf6_option_bits, ntohl(llsap->llsa_options)); in ospf6_print_lsa() 422 (u_int32_t)ntohl(llsap->llsa_nprefix)); in ospf6_print_lsa() [all …]
|
| D | print-ntp.c | 221 i = ntohl(lfp->int_part); in p_ntp_time() 222 uf = ntohl(lfp->fraction); in p_ntp_time() 242 i = ntohl(lfp->int_part) - ntohl(olfp->int_part); in p_ntp_delta() 244 uf = ntohl(lfp->fraction); in p_ntp_delta() 245 ouf = ntohl(olfp->fraction); in p_ntp_delta()
|
| /openbsd/src/lib/libc/nls/ |
| D | catgets.c | 57 u = ntohl(cat_hdr->__nsets) - 1; in catgets() 60 r = set_id - ntohl(set_hdr[i].__setno); in catgets() 65 + ntohl(cat_hdr->__msg_hdr_offset)); in catgets() 67 l = ntohl(set_hdr[i].__index); in catgets() 68 u = l + ntohl(set_hdr[i].__nmsgs) - 1; in catgets() 71 r = msg_id - ntohl(msg_hdr[i].__msgno); in catgets() 75 + ntohl(cat_hdr->__msg_txt_offset) in catgets() 76 + ntohl(msg_hdr[i].__offset); in catgets()
|
| D | catopen.c | 193 if (ntohl(((struct _nls_cat_hdr *) data)->__magic) != _NLS_MAGIC) in load_msgcat() 226 hdr_offset = ntohl(cat->__msg_hdr_offset); in verify_msgcat() 227 nsets = ntohl(cat->__nsets); in verify_msgcat() 228 txt_offset = ntohl(cat->__msg_txt_offset); in verify_msgcat() 237 if (remain <= hdr_offset || remain <= ntohl(cat->__msg_txt_offset) || in verify_msgcat() 253 index = ntohl(set[i].__index); in verify_msgcat() 254 nmsgs = ntohl(set[i].__nmsgs); in verify_msgcat() 269 if (ntohl(msg[j].__offset) > INT_MAX) in verify_msgcat() 271 off = MAXIMUM(off, ntohl(msg[j].__offset)); in verify_msgcat()
|
| /openbsd/src/usr.sbin/mtrace/ |
| D | mtrace.c | 390 if (IN_MULTICAST(ntohl(dst))) local = lcl_addr; in send_recv() 404 IN_MULTICAST(ntohl(query->tr_raddr)) ? get_ttl(save) : UNICAST_TTL; in send_recv() 507 int n = ntohl(*p++) & 0xFF; in send_recv() 606 if (IN_MULTICAST(ntohl(raddr))) k_join(raddr, INADDR_ANY); in passive_mode() 753 hop = t_diff(fixtime(ntohl(r->tr_qarr)), buf->qtime); in print_trace() 778 u_int32_t version = ntohl(incr[0].igmp.igmp_group.s_addr); in what_kind() 806 int flags = (ntohl(*p) & 0xFF00) >> 8; in what_kind() 807 int n = ntohl(*p++) & 0xFF; in what_kind() 844 int timediff = (fixtime(ntohl(s->tr_qarr)) - in stat_line() 845 fixtime(ntohl(r->tr_qarr))) >> 16; in stat_line() [all …]
|
| /openbsd/src/sys/nfs/ |
| D | xdr_subs.h | 53 #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); \ 68 (t)->tv_sec = ntohl(((struct nfsv3_time *)(f))->nfsv3_sec); \ 69 (t)->tv_nsec = ntohl(((struct nfsv3_time *)(f))->nfsv3_nsec); \ 77 ((((u_quad_t)ntohl(((u_int32_t *)(f))[0])) << 32) | \ 78 (u_quad_t)(ntohl(((u_int32_t *)(f))[1])))
|
| /openbsd/src/libexec/spamd/ |
| D | sdl.c | 57 aa.s_addr = ntohl(a->sda.s_addr); in compar_v4() 58 bb.s_addr = ntohl(b->sda.s_addr); in compar_v4() 76 aa.addr32[0] = ntohl(a->sda.addr32[0]); in compar_v6() 77 aa.addr32[1] = ntohl(a->sda.addr32[1]); in compar_v6() 78 aa.addr32[2] = ntohl(a->sda.addr32[2]); in compar_v6() 79 aa.addr32[3] = ntohl(a->sda.addr32[3]); in compar_v6() 81 bb.addr32[0] = ntohl(b->sda.addr32[0]); in compar_v6() 82 bb.addr32[1] = ntohl(b->sda.addr32[1]); in compar_v6() 83 bb.addr32[2] = ntohl(b->sda.addr32[2]); in compar_v6() 84 bb.addr32[3] = ntohl(b->sda.addr32[3]); in compar_v6() [all …]
|
| /openbsd/src/lib/libc/locale/ |
| D | rune.c | 109 re->re_min = ntohl((uint32_t)fre.fre_min); in readrange() 110 re->re_max = ntohl((uint32_t)fre.fre_max); in readrange() 111 re->re_map = ntohl((uint32_t)fre.fre_map); in readrange() 148 re[i].re_rune_types[j] = ntohl(re[i].re_rune_types[j]); in readentry() 238 runetype_nranges = ntohl(frl.frl_runetype_ext.frr_nranges); in _Read_RuneMagi() 239 maplower_nranges = ntohl(frl.frl_maplower_ext.frr_nranges); in _Read_RuneMagi() 240 mapupper_nranges = ntohl(frl.frl_mapupper_ext.frr_nranges); in _Read_RuneMagi() 241 var_len = ntohl((uint32_t)frl.frl_variable_len); in _Read_RuneMagi() 266 rl->rl_variable_len = ntohl((uint32_t)frl.frl_variable_len); in _Read_RuneMagi() 269 rl->rl_runetype[x] = ntohl(frl.frl_runetype[x]); in _Read_RuneMagi() [all …]
|
| /openbsd/src/sbin/pfctl/ |
| D | pf_print_state.c | 194 printf("[%u + %u](+%u)", ntohl(p->seqlo), in print_seq() 195 ntohl(p->seqhi) - ntohl(p->seqlo), ntohl(p->seqdiff)); in print_seq() 197 printf("[%u + %u]", ntohl(p->seqlo), in print_seq() 198 ntohl(p->seqhi) - ntohl(p->seqlo)); in print_seq() 315 u_int32_t creation = ntohl(s->creation); in print_state() 316 u_int32_t expire = ntohl(s->expire); in print_state() 338 if (ntohl(s->anchor) != -1) in print_state() 339 printf(", anchor %u", ntohl(s->anchor)); in print_state() 340 if (ntohl(s->rule) != -1) in print_state() 341 printf(", rule %u", ntohl(s->rule)); in print_state() [all …]
|
| /openbsd/src/usr.sbin/iscsid/ |
| D | task.c | 80 ipdu->itt = ntohl(t->itt); in task_pdu_add() 88 ipdu->cmdsn = ntohl(t->cmdseqnum); in task_pdu_add() 105 itt = ntohl(ipdu->itt); in task_pdu_cb() 108 c->expstatsn = ntohl(ipdu->cmdsn) + 1; in task_pdu_cb() 119 itt = ntohl(ipdu->itt); in task_pdu_cb() 120 c->expstatsn = ntohl(ipdu->cmdsn) + 1; in task_pdu_cb()
|
| /openbsd/src/include/ |
| 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)
|
| /openbsd/src/usr.sbin/ospf6d/ |
| D | database.c | 183 ntohl(dd_hdr.dd_seq_num) == nbr->dd_seq_num - nbr->dd_master ? in recv_db_description() 215 if ((ntohl(nbr->id.s_addr)) > in recv_db_description() 216 ntohl(ospfe_router_id())) { in recv_db_description() 219 nbr->dd_seq_num = ntohl(dd_hdr.dd_seq_num); in recv_db_description() 226 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) { in recv_db_description() 231 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 284 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 292 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) { in recv_db_description() 297 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 304 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num + 1) { in recv_db_description() [all …]
|
| /openbsd/src/usr.sbin/ospfd/ |
| D | database.c | 189 ntohl(dd_hdr.dd_seq_num) == nbr->dd_seq_num - nbr->dd_master ? in recv_db_description() 228 if ((ntohl(nbr->id.s_addr)) > in recv_db_description() 229 ntohl(ospfe_router_id())) { in recv_db_description() 232 nbr->dd_seq_num = ntohl(dd_hdr.dd_seq_num); in recv_db_description() 239 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) { in recv_db_description() 244 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 297 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 305 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num) { in recv_db_description() 310 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() 317 if (ntohl(dd_hdr.dd_seq_num) != nbr->dd_seq_num + 1) { in recv_db_description() [all …]
|
| /openbsd/src/sys/lib/libsa/ |
| D | nfs.c | 153 errno = ntohl(repl->errno); in nfs_getrootfh() 216 return (ntohl(repl->errno)); in nfs_lookupfh() 255 return (ntohl(rdata.d.errno)); in nfs_readlink() 257 rdata.d.len = ntohl(rdata.d.len); in nfs_readlink() 310 errno = ntohl(repl->errno); in nfs_readdata() 314 x = ntohl(repl->count); in nfs_readdata() 568 u_int32_t size = ntohl(d->fa.fa_size); in nfs_seek() 598 ftype = ntohl(fp->fa.fa_type); in nfs_stat() 599 mode = ntohl(fp->fa.fa_mode); in nfs_stat() 603 sb->st_nlink = ntohl(fp->fa.fa_nlink); in nfs_stat() [all …]
|
| /openbsd/src/usr.sbin/ripd/ |
| D | rde_rib.c | 123 if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr)) in rt_compare() 125 if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr)) in rt_compare() 127 if (ntohl(a->netmask.s_addr) < ntohl(b->netmask.s_addr)) in rt_compare() 129 if (ntohl(a->netmask.s_addr) > ntohl(b->netmask.s_addr)) in rt_compare()
|
| /openbsd/src/usr.sbin/sasyncd/ |
| D | net_ctl.c | 93 switch (ntohl(ctl->type)) { in net_ctl_handle_msg() 108 nstate = (enum RUNSTATE)ntohl(ctl->data); in net_ctl_handle_msg() 116 switch (ntohl(ctl->data)) { in net_ctl_handle_msg() 134 ctype = (enum CTLTYPE)ntohl(ctl->data); in net_ctl_handle_msg() 142 nstate = (enum RUNSTATE)ntohl(ctl->data2); in net_ctl_handle_msg() 150 ntohl(ctl->type), p->name); in net_ctl_handle_msg()
|
| /openbsd/src/sys/netinet/ |
| D | ip_esp.c | 376 ntohl(tdb->tdb_spi)); in esp_input() 386 btsx = ntohl(btsx); in esp_input() 394 ntohl(tdb->tdb_spi)); in esp_input() 400 ntohl(tdb->tdb_spi)); in esp_input() 406 ntohl(tdb->tdb_spi)); in esp_input() 413 ntohl(tdb->tdb_spi)); in esp_input() 529 ntohl(tdb->tdb_spi)); in esp_input() 542 btsx = ntohl(btsx); in esp_input() 554 ntohl(tdb->tdb_spi)); in esp_input() 560 ntohl(tdb->tdb_spi)); in esp_input() [all …]
|
| /openbsd/src/usr.sbin/eigrpd/ |
| D | packet.c | 109 if (IN_MULTICAST(ntohl(dst.sin_addr.s_addr))) in send_packet_v4() 183 flags |= ntohl(eigrp_hdr.flags); in send_packet() 207 buffer, ntohs(eigrp_hdr.as), ntohl(eigrp_hdr.seq_num), in send_packet() 208 ntohl(eigrp_hdr.ack_num)); in send_packet() 226 if (ntohl(eigrp_hdr.ack_num) == 0) in send_packet() 260 seq = ntohl(eigrp_hdr->seq_num); in recv_packet_nbr() 261 ack = ntohl(eigrp_hdr->ack_num); in recv_packet_nbr() 296 nbr->next_mcast_seq = ntohl(tm->seq); in recv_packet_nbr() 299 if ((ntohl(eigrp_hdr->flags) & EIGRP_HDR_FLAG_CR)) { in recv_packet_nbr() 303 if (ntohl(eigrp_hdr->seq_num) != nbr->next_mcast_seq) in recv_packet_nbr() [all …]
|