/openbsd/usr.sbin/tcpdump/ |
H A D | print-cnfp.c | 82 nrecs = ntohl(nh->ver_cnt) & 0xffff; 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() 114 ntohl(nr->ports) >> 16); in cnfp_print() 118 (ntohl(nr->masks) >> 16) & 0xff); in cnfp_print() 120 ntohl(nr->asses) & 0xffff); in cnfp_print() 123 ntohl(nr->ports) & 0xffff); in cnfp_print() [all …]
|
H A D | print-nfs.c | 183 res = ((u_int64_t)ntohl(dp[0]) << 32) | (u_int64_t)ntohl(dp[1]); in print_int64() 317 len = ntohl(dp[1]); in parsereq() 321 len = ntohl(dp[1]); in parsereq() 890 len = ntohl(dp[1]); in parserep() 1153 (u_int32_t)ntohl(dp[0]), (u_int32_t)ntohl(dp[1])); in parserddires() 1169 (u_int32_t)ntohl(dp[2]), (u_int32_t)ntohl(dp[3]), in parse_wcc_attr() 1170 (u_int32_t)ntohl(dp[4]), (u_int32_t)ntohl(dp[5])); in parse_wcc_attr() 1184 if (!ntohl(dp[0])) in parse_pre_op_attr() 1205 if (!ntohl(dp[0])) in parse_post_op_attr() 1240 if (!ntohl(dp[0])) in parsecreateopres() [all …]
|
H A D | print-wb.c | 190 (u_int32_t)ntohl(id->pi_mslot), in wb_id() 258 n = ntohl(prep->pp_n); in wb_prep() 265 (u_int32_t)ntohl(ps->slot), in wb_prep() 271 (u_int32_t)ntohl(io->off)); in wb_prep() 312 int ts = ntohl(dh->dh_ts); in wb_dops() 346 (u_int32_t)ntohl(dop->pd_sseq), in wb_rrep() 347 (u_int32_t)ntohl(dop->pd_eseq)); in wb_rrep() 351 ntohl(dop->pd_sseq), ntohl(dop->pd_eseq))); in wb_rrep() 366 (u_int32_t)ntohl(dop->pd_sseq), in wb_drawop() 367 (u_int32_t)ntohl(dop->pd_eseq)); in wb_drawop() [all …]
|
H A D | print-lwres.c | 321 switch (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() 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() 446 (unsigned long)ntohl(gnba->flags)); in lwres_print() 474 switch (ntohl(np->opcode)) { in lwres_print() 488 (unsigned long)ntohl(gabn->flags)); in lwres_print() 564 relts_print(ntohl(grbn->ttl)); in lwres_print() [all …]
|
H A 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() 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() 250 printf(" %u", (u_int32_t)ntohl(rh->rh_ssrc)); in rtcp_print() 276 (u_int32_t)ntohl(rr->rr_nl) & 0x00ffffff, in rtcp_print() 277 (u_int32_t)ntohl(rr->rr_ls), in rtcp_print() [all …]
|
H A 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()
|
H A 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()
|
H A D | print-ospf6.c | 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() 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() 422 (u_int32_t)ntohl(llsap->llsa_nprefix)); in ospf6_print_lsa() 491 ntohl(op->ospf6_hello.hello_options)); in ospf6_decode_v3() 520 ntohl(op->ospf6_db.db_options)); in ospf6_decode_v3() 537 (u_int32_t)ntohl(op->ospf6_db.db_seq)); in ospf6_decode_v3() [all …]
|
H A 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/lib/libc/nls/ |
H A 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()
|
H A 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/usr.sbin/mtrace/ |
H A D | mtrace.c | 848 int v_out = ntohl(s->tr_vifout) - ntohl(r->tr_vifout); in stat_line() 849 int g_out = ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt); in stat_line() 874 v_lost = v_out - (ntohl(s->tr_vifin) - ntohl(r->tr_vifin)); in stat_line() 881 g_lost = g_out - (ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt)); in stat_line() 898 v_out = ntohl(s->tr_vifin) - ntohl(r->tr_vifin); in stat_line() 925 printf("v_out: %u ", ntohl(s->tr_vifout) - ntohl(r->tr_vifout)); in stat_line() 926 printf("pkts: %u ", ntohl(s->tr_pktcnt) - ntohl(r->tr_pktcnt)); in stat_line() 950 if (*s || ntohl(n->tr_vifout) - ntohl(p->tr_vifout) > 100000) { in fixup_stats() 974 res = ((ntohl(n->tr_pktcnt) < ntohl(b->tr_pktcnt)) || in fixup_stats() 975 (ntohl(n->tr_pktcnt) < ntohl(p->tr_pktcnt))); in fixup_stats() [all …]
|
/openbsd/sys/nfs/ |
H A 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/libexec/spamd/ |
H A 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() 305 aa.s_addr = ntohl(a->s_addr); in match_addr_v4() 332 aa.addr32[0] = ntohl(a->addr32[0]); in match_addr_v6() 333 aa.addr32[1] = ntohl(a->addr32[1]); in match_addr_v6() 334 aa.addr32[2] = ntohl(a->addr32[2]); in match_addr_v6() [all …]
|
/openbsd/lib/libc/locale/ |
H A D | rune.c | 108 re->re_min = ntohl((uint32_t)fre.fre_min); in readrange() 109 re->re_max = ntohl((uint32_t)fre.fre_max); in readrange() 110 re->re_map = ntohl((uint32_t)fre.fre_map); in readrange() 147 re[i].re_rune_types[j] = ntohl(re[i].re_rune_types[j]); in readentry() 237 runetype_nranges = ntohl(frl.frl_runetype_ext.frr_nranges); in _Read_RuneMagi() 238 maplower_nranges = ntohl(frl.frl_maplower_ext.frr_nranges); in _Read_RuneMagi() 239 mapupper_nranges = ntohl(frl.frl_mapupper_ext.frr_nranges); in _Read_RuneMagi() 240 var_len = ntohl((uint32_t)frl.frl_variable_len); in _Read_RuneMagi() 268 rl->rl_runetype[x] = ntohl(frl.frl_runetype[x]); in _Read_RuneMagi() 271 rl->rl_maplower[x] = ntohl((uint32_t)frl.frl_maplower[x]); in _Read_RuneMagi() [all …]
|
/openbsd/sbin/pfctl/ |
H A 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() 340 if (ntohl(s->rule) != -1) in print_state() 341 printf(", rule %u", ntohl(s->rule)); in print_state() 357 betoh64(id), ntohl(s->creatorid)); in print_state() [all …]
|
/openbsd/usr.sbin/iscsid/ |
H A 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/include/ |
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)
|
/openbsd/usr.sbin/ospf6d/ |
H A D | database.c | 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() 309 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() [all …]
|
/openbsd/usr.sbin/ospfd/ |
H A D | database.c | 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() 322 nbr->dd_seq_num, ntohl(dd_hdr.dd_seq_num)); in recv_db_description() [all …]
|
/openbsd/sys/lib/libsa/ |
H A 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() 598 ftype = ntohl(fp->fa.fa_type); in nfs_stat() 599 mode = ntohl(fp->fa.fa_mode); in nfs_stat() 604 sb->st_uid = ntohl(fp->fa.fa_uid); in nfs_stat() 605 sb->st_gid = ntohl(fp->fa.fa_gid); in nfs_stat() [all …]
|
/openbsd/usr.sbin/ripd/ |
H A 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/usr.sbin/sasyncd/ |
H A 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/sys/netinet/ |
H A D | ip_esp.c | 378 ntohl(tdb->tdb_spi)); in esp_input() 388 btsx = ntohl(btsx); in esp_input() 396 ntohl(tdb->tdb_spi)); in esp_input() 402 ntohl(tdb->tdb_spi)); in esp_input() 408 ntohl(tdb->tdb_spi)); in esp_input() 415 ntohl(tdb->tdb_spi)); in esp_input() 544 btsx = ntohl(btsx); in esp_input() 586 ntohl(tdb->tdb_spi)); in esp_input() 656 ntohl(tdb->tdb_spi)); in esp_input() 665 ntohl(tdb->tdb_spi)); in esp_input() [all …]
|
/openbsd/usr.sbin/eigrpd/ |
H A 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() 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() 424 ntohl(eigrp_hdr->ack_num) != 0)) { in recv_packet_eigrp() 435 ei->eigrp->as, ntohl(eigrp_hdr->seq_num), in recv_packet_eigrp() 436 ntohl(eigrp_hdr->ack_num)); in recv_packet_eigrp() [all …]
|