/openbsd/usr.sbin/dvmrpd/ |
H A D | rde_mfc.c | 147 if (ntohl(a->origin.s_addr) < ntohl(b->origin.s_addr)) in mfc_compare() 149 if (ntohl(a->origin.s_addr) > ntohl(b->origin.s_addr)) in mfc_compare() 151 if (ntohl(a->group.s_addr) < ntohl(b->group.s_addr)) in mfc_compare() 153 if (ntohl(a->group.s_addr) > ntohl(b->group.s_addr)) in mfc_compare()
|
H A D | igmp.c | 123 if (!IN_MULTICAST(ntohl(igmp_hdr.grp_addr))) { in recv_igmp_query() 160 if (!IN_MULTICAST(ntohl(igmp_hdr.grp_addr))) { in recv_igmp_report() 215 if (!IN_MULTICAST(ntohl(igmp_hdr.grp_addr))) { in recv_igmp_leave()
|
H A D | rde_srt.c | 146 if (ntohl(a->prefix.s_addr) < ntohl(b->prefix.s_addr)) in rt_compare() 148 if (ntohl(a->prefix.s_addr) > ntohl(b->prefix.s_addr)) in rt_compare() 271 rr.mask.s_addr = ntohl(prefixlen2mask(r->prefixlen)); in rt_snap() 606 rr.mask.s_addr = ntohl(prefixlen2mask(rn->prefixlen)); in flash_update() 617 rr.mask.s_addr = ntohl(prefixlen2mask(rn->prefixlen)); in flash_update_ds()
|
/openbsd/sys/netinet/ |
H A D | ip_ipcomp.c | 230 ntohl(tdb->tdb_spi)); in ipcomp_input() 354 ntohl(tdb->tdb_spi)); in ipcomp_output() 367 ntohl(tdb->tdb_spi)); in ipcomp_output() 379 ntohl(tdb->tdb_spi)); in ipcomp_output() 424 ntohl(tdb->tdb_spi)); in ipcomp_output() 492 ntohl(tdb->tdb_spi)); in ipcomp_output() 501 cpi = (u_int16_t) ntohl(tdb->tdb_spi); in ipcomp_output() 522 ntohl(tdb->tdb_spi)); in ipcomp_output()
|
H A D | ip_ipip.c | 183 otos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in ipip_input_if() 261 itos = (ntohl(ip6->ip6_flow) >> 20) & 0xff; in ipip_input_if() 363 ntohl(tdb->tdb_spi)); in ipip_output() 423 itos = ntohl(itos32) >> 20; in ipip_output() 452 ntohl(tdb->tdb_spi)); in ipip_output() 505 itos = ntohl(itos32) >> 20; in ipip_output()
|
/openbsd/sys/netmpls/ |
H A D | mpls_input.c | 42 #define MPLS_LABEL_GET(l) ((ntohl((l) & MPLS_LABEL_MASK)) >> MPLS_LABEL_OFFSET) 43 #define MPLS_TTL_GET(l) (ntohl((l) & MPLS_TTL_MASK)) 86 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK); in mpls_input() 94 ttl = ntohl(shim->shim_label & MPLS_TTL_MASK); in mpls_input() 105 if (ntohl(smpls->smpls_label) < MPLS_LABEL_RESERVED_MAX) { in mpls_input() 121 switch (ntohl(smpls->smpls_label)) { in mpls_input() 259 ifp->if_xname, ntohl(shim->shim_label), smpls->smpls_family, in mpls_input()
|
/openbsd/usr.bin/systat/ |
H A D | pftop.c | 355 ntohl(state_buf[* (size_t *) s1].expire)) in sort_exp_callback() 358 ntohl(state_buf[* (size_t *) s1].expire)) in sort_exp_callback() 404 if (ntohl(a->addr32[0]) > ntohl(b->addr32[0])) in compare_addr() 410 if (ntohl(a->addr32[0]) > ntohl(b->addr32[0])) in compare_addr() 414 if (ntohl(a->addr32[1]) > ntohl(b->addr32[1])) in compare_addr() 418 if (ntohl(a->addr32[2]) > ntohl(b->addr32[2])) in compare_addr() 422 if (ntohl(a->addr32[3]) > ntohl(b->addr32[3])) in compare_addr() 707 tmp = ntohl(m->addr32[j]); in unmask() 873 print_fld_age(FLD_AGE, ntohl(s->creation)); in print_state() 874 print_fld_age(FLD_EXP, ntohl(s->expire)); in print_state() [all …]
|
H A D | cache.h | 41 #define COUNTER(c) ((((u_int64_t) ntohl(c[0]))<<32) + ntohl(c[1]))
|
/openbsd/usr.sbin/ospf6ctl/ |
H A D | ospf6ctl.c | 634 ntohs(lsa->age), ntohl(lsa->seq_num), in show_database_msg() 706 printf("LS Seq Number: 0x%08x\n", ntohl(lsa->seq_num)); in show_db_hdr_msg_detail() 799 print_asext_flags(ntohl(lsa->data.asext.metric))); in show_db_msg_detail() 800 printf(" Metric: %d Type: ", ntohl(asext->metric) in show_db_msg_detail() 802 if (ntohl(lsa->data.asext.metric) & LSA_ASEXT_E_FLAG) in show_db_msg_detail() 814 if (ntohl(lsa->data.asext.metric) & LSA_ASEXT_F_FLAG) { in show_db_msg_detail() 820 if (ntohl(lsa->data.asext.metric) & LSA_ASEXT_T_FLAG) { in show_db_msg_detail() 822 printf(" External Route Tag: %d\n", ntohl(ext_tag)); in show_db_msg_detail() 833 ntohl(lsa->data.link.opts)))); in show_db_msg_detail() 837 nlinks = ntohl(lsa->data.link.numprefix); in show_db_msg_detail() [all …]
|
/openbsd/usr.sbin/bgpd/ |
H A D | rde_prefix.c | 371 if (ntohl(a4->prefix4.s_addr) > ntohl(b4->prefix4.s_addr)) in pt_prefix_cmp() 373 if (ntohl(a4->prefix4.s_addr) < ntohl(b4->prefix4.s_addr)) in pt_prefix_cmp() 401 if (ntohl(va4->prefix4.s_addr) > ntohl(vb4->prefix4.s_addr)) in pt_prefix_cmp() 403 if (ntohl(va4->prefix4.s_addr) < ntohl(vb4->prefix4.s_addr)) in pt_prefix_cmp()
|
/openbsd/sys/arch/hppa/stand/mkboot/ |
H A D | mkboot.c | 212 (void) lseek(from, ntohl(elf_header.e_phoff), SEEK_SET); in putfile() 219 ntohl(elf_segments[i].p_flags) & PF_X) { in putfile() 227 entry = ntohl(elf_header.e_entry) + in putfile() 228 ntohl(elf_segments[elf_load_image_segment].p_offset) - in putfile() 229 ntohl(elf_segments[elf_load_image_segment].p_vaddr); in putfile()
|
/openbsd/usr.sbin/mrouted/ |
H A D | prune.c | 128 if (ntohl(grp) > ntohl(gt->gt_mcastgrp) || in find_src_grp() 130 (ntohl(mask) < ntohl(gt->gt_route->rt_originmask) || in find_src_grp() 132 (ntohl(src) > ntohl(gt->gt_route->rt_origin)))))) { in find_src_grp() 480 if (ntohl(st->st_origin) >= ntohl(origin)) in add_table_entry() 802 if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp)) in update_lclgrp() 841 if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp)) in delete_lclgrp() 936 prun_tmr = ntohl(prun_tmr); in accept_prune() 1052 if (ntohl(mcastgrp) < ntohl(g->gt_mcastgrp)) in chkgrp_graft() 1763 if (IN_MULTICAST(ntohl(dst))) { in accept_mtrace() 1825 if (IN_MULTICAST(ntohl(dst))) in accept_mtrace() [all …]
|
/openbsd/sys/dev/pci/ |
H A D | if_bnx.c | 422 *p = ntohl(*p); in nswaph() 454 hdr->bnx_COM_FwTextLen = ntohl(hdr->bnx_COM_FwTextLen); in bnx_read_firmware() 456 hdr->bnx_COM_FwDataLen = ntohl(hdr->bnx_COM_FwDataLen); in bnx_read_firmware() 459 hdr->bnx_COM_FwBssAddr = ntohl(hdr->bnx_COM_FwBssAddr); in bnx_read_firmware() 460 hdr->bnx_COM_FwBssLen = ntohl(hdr->bnx_COM_FwBssLen); in bnx_read_firmware() 462 hdr->bnx_COM_FwSbssLen = ntohl(hdr->bnx_COM_FwSbssLen); in bnx_read_firmware() 469 hdr->bnx_RXP_FwTextLen = ntohl(hdr->bnx_RXP_FwTextLen); in bnx_read_firmware() 471 hdr->bnx_RXP_FwDataLen = ntohl(hdr->bnx_RXP_FwDataLen); in bnx_read_firmware() 474 hdr->bnx_RXP_FwBssAddr = ntohl(hdr->bnx_RXP_FwBssAddr); in bnx_read_firmware() 475 hdr->bnx_RXP_FwBssLen = ntohl(hdr->bnx_RXP_FwBssLen); in bnx_read_firmware() [all …]
|
/openbsd/usr.sbin/ospfctl/ |
H A D | output.c | 507 LSA_24_GETHI(ntohl(lsa->ls_id)), in show_db_hdr_msg_detail() 508 LSA_24_GETLO(ntohl(lsa->ls_id))); in show_db_hdr_msg_detail() 513 printf("LS Seq Number: 0x%08x\n", ntohl(lsa->seq_num)); in show_db_hdr_msg_detail() 529 ntohs(lsa->age), ntohl(lsa->seq_num), in show_db_simple() 553 if (ntohl(lsa->data.asext.metric) & LSA_ASEXT_E_FLAG) in show_db() 557 printf(" Metric: %d\n", ntohl(asext->metric) & in show_db() 561 printf(" External Route Tag: %d\n\n", ntohl(asext->ext_tag)); in show_db() 636 printf("Metric: %d\n\n", ntohl(lsa->data.sum.metric) & in show_db()
|
/openbsd/usr.sbin/eigrpd/ |
H A D | tlv.c | 412 ri->emetric.routerid = ntohl(ri->emetric.routerid); in tlv_decode_route() 413 ri->emetric.as = ntohl(ri->emetric.as); in tlv_decode_route() 414 ri->emetric.tag = ntohl(ri->emetric.tag); in tlv_decode_route() 415 ri->emetric.metric = ntohl(ri->emetric.metric); in tlv_decode_route() 422 ri->metric.delay = ntohl(ri->metric.delay); in tlv_decode_route() 423 ri->metric.bandwidth = ntohl(ri->metric.bandwidth); in tlv_decode_route()
|
H A D | util.c | 35 return (33 - ffs(ntohl(ina))); in mask2prefixlen() 150 return ((ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr)) ? 1 : -1); in eigrp_addrcmp() 223 uint32_t a = ntohl(addr.s_addr); in bad_addr_v4()
|
/openbsd/usr.sbin/tcpdump/ |
H A D | print-ipsec.c | 217 ntohl(esp->esp_spi), ntohl(esp->esp_seq), len); in esp_print() 258 ntohl(ah->ah_spi), ntohl(ah->ah_seq), len); in ah_print()
|
/openbsd/sys/dev/microcode/bwi/build/ |
H A D | build.c | 119 nfiles = ntohl(nfiles); in main() 121 h[i].filesize = ntohl(h[i].filesize); in main() 122 h[i].fileoffset = ntohl(h[i].fileoffset); in main()
|
/openbsd/usr.sbin/ospfd/ |
H A D | rde_lsdb.c | 81 v->ls_id = ntohl(lsa->hdr.ls_id); in vertex_get() 82 v->adv_rtr = ntohl(lsa->hdr.adv_rtr); in vertex_get() 148 a32 = (int32_t)ntohl(a->seq_num); in lsa_newer() 149 b32 = (int32_t)ntohl(b->seq_num); in lsa_newer() 209 if (ntohl(lsa->hdr.seq_num) == RESV_SEQ_NUM) { in lsa_check() 233 metric = ntohl(lsa->data.sum.metric); in lsa_check() 245 metric = ntohl(lsa->data.asext.metric); in lsa_check() 517 key.ls_id = ntohl(ls_id); in lsa_find_tree() 518 key.adv_rtr = ntohl(adv_rtr); in lsa_find_tree() 714 seqnum = ntohl(v->lsa->hdr.seq_num); in lsa_refresh()
|
/openbsd/usr.sbin/ldpd/ |
H A D | lde_lib.c | 63 if (ntohl(a->u.ipv4.prefix.s_addr) < in fec_compare() 64 ntohl(b->u.ipv4.prefix.s_addr)) in fec_compare() 66 if (ntohl(a->u.ipv4.prefix.s_addr) > in fec_compare() 67 ntohl(b->u.ipv4.prefix.s_addr)) in fec_compare() 95 if (ntohl(a->u.pwid.lsr_id.s_addr) < in fec_compare() 96 ntohl(b->u.pwid.lsr_id.s_addr)) in fec_compare() 98 if (ntohl(a->u.pwid.lsr_id.s_addr) > in fec_compare() 99 ntohl(b->u.pwid.lsr_id.s_addr)) in fec_compare() 588 lre->msg_id = ntohl(map->msg_id); in lde_check_request() 627 lre->msg_id = ntohl(map->msg_id); in lde_check_request_wcard()
|
H A D | util.c | 34 return (33 - ffs(ntohl(ina))); in mask2prefixlen() 149 return ((ntohl(a->v4.s_addr) > ntohl(b->v4.s_addr)) ? 1 : -1); in ldp_addrcmp() 222 uint32_t a = ntohl(addr.s_addr); in bad_addr_v4()
|
/openbsd/gnu/usr.bin/gcc/gcc/fixinc/tests/base/sys/ |
H A D | byteorder.h | 40 static __inline__ unsigned long ntohl (unsigned long); 138 ntohl (unsigned long __arg) in ntohl() function
|
/openbsd/sys/sys/ |
H A D | exec.h | 322 ( (((ex).a_midmag)&0xffff0000) ? (ntohl(((ex).a_midmag))&0xffff) : ((ex).a_midmag)) 324 ( (((ex).a_midmag)&0xffff0000) ? (ntohl(((ex).a_midmag))&0xffff) : \ 327 ( (((ex).a_midmag)&0xffff0000) ? ((ntohl(((ex).a_midmag))>>16)&0x03ff) : MID_ZERO ) 329 ( (((ex).a_midmag)&0xffff0000) ? ((ntohl(((ex).a_midmag))>>26)&0x3f) : 0 )
|
/openbsd/usr.sbin/nsd/ |
H A D | xfrd.h | 299 return within_refresh_bounds(zone, ntohl(zone->soa_disk.refresh)); in bound_soa_disk_refresh() 324 return within_retry_bounds(zone, ntohl(zone->soa_disk.retry)); in bound_soa_disk_retry() 351 return within_expire_bounds(zone, ntohl(zone->soa_disk.expire)); in bound_soa_disk_expire() 358 return within_expire_bounds(zone, ntohl(zone->soa_nsd.expire)); in bound_soa_nsd_expire()
|
/openbsd/usr.sbin/ripd/ |
H A D | auth.c | 127 if (ntohl(a->auth_seq) < nbr->auth_seq_num) { in auth_validate() 133 if (ntohl(a->auth_seq) < nbr_failed->auth_seq_num && in auth_validate() 134 ntohl(a->auth_seq)) { in auth_validate() 178 *crypt_seq_num = ntohl(a->auth_seq); in auth_validate()
|