Home
last modified time | relevance | path

Searched refs:log_assert (Results 1 – 25 of 787) sorted by relevance

12345678910>>...32

/freebsd-12.1/contrib/unbound/smallapp/
H A Dworker_cb.c54 log_assert(0); in worker_handle_control_cmd()
61 log_assert(0); in worker_handle_request()
69 log_assert(0); in worker_handle_reply()
77 log_assert(0); in worker_handle_service_reply()
85 log_assert(0); in remote_accept_callback()
93 log_assert(0); in remote_control_callback()
99 log_assert(0); in worker_sighandler()
110 log_assert(0); in worker_send_query()
118 log_assert(0); in worker_win_stop_cb()
124 log_assert(0); in wsvc_cron_cb()
[all …]
/freebsd-12.1/contrib/unbound/util/data/
H A Ddname.c103 log_assert(d1 && d2); in query_dname_compare()
237 log_assert(pkt && d1 && d2); in dname_pkt_compare()
499 log_assert(atlabel == labs2); in dname_lab_cmp()
507 log_assert(atlabel == labs1); in dname_lab_cmp()
721 log_assert(dname); in dname_is_root()
723 log_assert(!LABEL_IS_PTR(len)); in dname_is_root()
731 log_assert(dname && *dname && len); in dname_remove_label()
733 log_assert(!LABEL_IS_PTR(lablen)); in dname_remove_label()
734 log_assert(*len > lablen); in dname_remove_label()
819 log_assert(atlabel == labs2); in dname_canon_lab_cmp()
[all …]
H A Dmsgparse.c305 default: log_assert(0); in change_section()
317 default: log_assert(0); in change_section()
329 log_assert( rrset->type == LDNS_RR_TYPE_RRSIG ); in rrset_has_sigover()
397 log_assert( sigset->type == LDNS_RR_TYPE_RRSIG ); in change_rrsig_rrset()
398 log_assert( datatype != LDNS_RR_TYPE_RRSIG ); in change_rrsig_rrset()
410 default: log_assert(0); in change_rrsig_rrset()
585 log_assert(msg->qdcount == 1); in parse_query_section()
625 log_assert(0); /* add type above */ in get_rdf_size()
1005 log_assert(found->rr_first && found->rr_last); in parse_extract_edns()
1067 log_assert(LDNS_QDCOUNT(sldns_buffer_begin(pkt)) == 1); in parse_edns_from_pkt()
/freebsd-12.1/tests/sys/cddl/zfs/tests/cli_root/zpool_create/
H A Dzpool_create_002_pos.ksh81 log_assert "'zpool create -f <pool> <vspec> ...' can successfully create" \
99 log_assert "'zpool create' mirror without '-f' will fail " \
107 log_assert "'zpool create' mirror without '-f' will fail " \
113 log_assert "'zpool create' without '-f' will fail " \
/freebsd-12.1/contrib/unbound/edns-subnet/
H A Daddrtree.c125 log_assert(delfunc != NULL); in addrtree_create()
126 log_assert(sizefunc != NULL); in addrtree_create()
290 log_assert(sizeof *tree == addrtree_size(tree)); in addrtree_delete()
304 log_assert(addrlen > n); in getbit()
335 log_assert(skip < len); in bits_common()
369 log_assert(node != NULL); in addrtree_insert()
378 log_assert(depth <= sourcemask); in addrtree_insert()
481 log_assert(node != NULL); in addrtree_find()
484 log_assert(depth <= sourcemask); in addrtree_find()
488 log_assert(node->scope >= depth); in addrtree_find()
[all …]
/freebsd-12.1/contrib/unbound/dnstap/
H A Ddnstap.c151 log_assert(socket_path != NULL); in dt_create()
152 log_assert(num_workers > 0); in dt_create()
167 log_assert(res == fstrm_res_success); in dt_create()
173 log_assert(fw != NULL); in dt_create()
309 log_assert(b != NULL); in dt_fill_buffer()
355 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_fill_net()
390 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_client_query()
422 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_client_response()
470 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_outside_query()
492 log_assert(qbuf_len >= sizeof(qflags)); in dt_msg_send_outside_response()
[all …]
/freebsd-12.1/contrib/unbound/util/
H A Dregional.c88 log_assert(sizeof(struct regional) <= size); in regional_create_custom()
220 log_assert(ALIGNMENT >= sizeof(char*)); in regional_log_stats()
221 log_assert(REGIONAL_CHUNK_SIZE > ALIGNMENT); in regional_log_stats()
222 log_assert(REGIONAL_CHUNK_SIZE-ALIGNMENT > REGIONAL_LARGE_OBJECT_SIZE); in regional_log_stats()
223 log_assert(REGIONAL_CHUNK_SIZE >= sizeof(struct regional)); in regional_log_stats()
H A Dnetevent.c339 log_assert(c->fd != -1);
455 log_assert(c->fd != -1);
603 log_assert(fd != -1);
692 log_assert(fd != -1);
937 log_assert(fd != -1);
1441 log_assert(fd != -1);
1549 log_assert(fd != -1);
2219 log_assert(fd != -1);
2415 log_assert(fd != -1);
3340 log_assert(tv);
[all …]
H A Dlog.h220 #define log_assert(x) assert(x) macro
222 # define log_assert(x) \ macro
229 # define log_assert(x) /*nothing*/ macro
H A Dalloc.c217 log_assert(alloc); in alloc_special_obtain()
258 log_assert(p); in pushintosuper()
259 log_assert(alloc && alloc->super && in pushintosuper()
281 log_assert(alloc); in alloc_special_release()
350 log_assert(r->next == NULL); in alloc_reg_release()
379 log_assert(size <= SIZE_MAX-16); in unbound_stat_malloc()
402 log_assert(s <= SIZE_MAX-16); in unbound_stat_calloc()
452 log_assert(size <= SIZE_MAX-16); in unbound_stat_realloc()
528 log_assert(size <= SIZE_MAX-(lite_pad*2+sizeof(size_t))); in unbound_stat_malloc_lite()
546 log_assert(req <= SIZE_MAX-(lite_pad*2+sizeof(size_t))); in unbound_stat_calloc_lite()
H A Drbtree.c310 log_assert(rbtree->root == old); in change_parent_ptr()
314 log_assert(parent->left == old || parent->right == old in change_parent_ptr()
324 log_assert(child->parent == old || child->parent == new); in change_child_ptr()
378 log_assert(to_delete->left == RBTREE_NULL || to_delete->right == RBTREE_NULL); in rbtree_delete()
464 log_assert(sibling != RBTREE_NULL); in rbtree_delete_fixup()
498 log_assert(sibling->left->color == RED); in rbtree_delete_fixup()
504 log_assert(sibling->right->color == RED); in rbtree_delete_fixup()
517 log_assert(result); in rbtree_find_less_equal()
H A Dnet_help.c346 log_assert(i < 4 && i >= 0); in ipdnametoaddr()
350 log_assert(i < 16 && i >= 1); in ipdnametoaddr()
578 log_assert(len1 == len2); in sockaddr_cmp()
583 log_assert( p1_in->sin_family == p2_in->sin_family ); in sockaddr_cmp()
591 log_assert(p1_in->sin_port == p2_in->sin_port); in sockaddr_cmp()
599 log_assert(p1_in6->sin6_port == p2_in6->sin6_port); in sockaddr_cmp()
620 log_assert(len1 == len2); in sockaddr_cmp_addr()
625 log_assert( p1_in->sin_family == p2_in->sin_family ); in sockaddr_cmp_addr()
691 log_assert(z); in addr_in_common()
762 log_assert(list); in sock_list_insert()
H A Dwinsock_event.c206 log_assert(ev->is_signal && ev->hEvent); in handle_signal()
264 log_assert(numwait <= WSA_MAXIMUM_WAIT_EVENTS); in handle_select()
501 log_assert(ev->ev_fd==-1 || find_fd(ev->ev_base, ev->ev_fd) == -1); in event_add()
583 log_assert(ev->added); in event_del()
587 log_assert(ev->ev_base->max > 0); in event_del()
681 log_assert(ev->added && ev->ev_base->max > 0) in winsock_unregister_wsaevent()
/freebsd-12.1/contrib/unbound/libunbound/
H A Dlibworker.c927 log_assert(0); in worker_handle_control_cmd()
934 log_assert(0); in worker_handle_request()
942 log_assert(0); in worker_handle_reply()
950 log_assert(0); in worker_handle_service_reply()
958 log_assert(0); in remote_accept_callback()
966 log_assert(0); in remote_control_callback()
972 log_assert(0); in worker_sighandler()
983 log_assert(0); in worker_send_query()
990 log_assert(0); in worker_alloc_cleanup()
995 log_assert(0); in worker_stat_timer_cb()
[all …]
H A Dcontext.c253 log_assert( sldns_read_uint32(p) == UB_LIBCMD_NEWQUERY); in context_deserialize_new_query()
285 log_assert( sldns_read_uint32(p) == UB_LIBCMD_NEWQUERY); in context_lookup_new_query()
291 log_assert(q->async); in context_lookup_new_query()
340 log_assert( sldns_read_uint32(p) == UB_LIBCMD_ANSWER); in context_deserialize_answer()
394 log_assert( sldns_read_uint32(p) == UB_LIBCMD_CANCEL); in context_deserialize_cancel()
/freebsd-12.1/contrib/unbound/iterator/
H A Diter_delegpt.c96 log_assert(!dp->dp_type_mlc); in delegpt_set_name()
109 log_assert(!dp->dp_type_mlc); in delegpt_add_ns()
167 log_assert(!dp->dp_type_mlc); in delegpt_add_target()
189 log_assert(!dp->dp_type_mlc); in delegpt_add_addr()
405 log_assert(!dp->dp_type_mlc); in delegpt_rrset_add_ns()
428 log_assert(!dp->dp_type_mlc); in delegpt_add_rrset_A()
552 log_assert(dp->dp_type_mlc); in delegpt_free_mlc()
573 log_assert(dp->dp_type_mlc); in delegpt_set_name_mlc()
584 log_assert(dp->dp_type_mlc); in delegpt_add_ns_mlc()
613 log_assert(dp->dp_type_mlc); in delegpt_add_addr_mlc()
[all …]
H A Diter_priv.c88 log_assert(p->str); in read_addrs()
119 log_assert(p->str); in read_names()
200 log_assert(name_len == len); in priv_lookup_name()
/freebsd-12.1/contrib/unbound/validator/
H A Dval_nsec3.c126 log_assert(d && r < (int)d->count); in nsec3_unknown_flags()
137 log_assert(d && r < (int)d->count); in nsec3_has_optout()
149 log_assert(d && r < (int)d->count); in nsec3_get_algo()
161 log_assert(d && r < (int)d->count); in nsec3_known_algo()
178 log_assert(d && r < (int)d->count); in nsec3_get_iter()
193 log_assert(d && r < (int)d->count); in nsec3_get_salt()
228 log_assert(d && r < (int)d->count); in nsec3_get_nextowner()
1048 log_assert(ce.ce); in nsec3_do_prove_nameerror()
1165 log_assert(ce.ce); in nsec3_do_prove_nodata()
1209 log_assert(ce.nc_rrset); in nsec3_do_prove_nodata()
[all …]
H A Dval_neg.c201 log_assert(z->in_use); in neg_delete_zone()
202 log_assert(z->count > 0); in neg_delete_zone()
208 log_assert(p->count > 0); in neg_delete_zone()
232 log_assert(el->in_use); in neg_delete_data()
233 log_assert(el->count > 0); in neg_delete_data()
243 log_assert(p->count > 0); in neg_delete_data()
335 log_assert(len > 1); /* not root label */ in calc_data_need()
354 log_assert(len > 1); /* not root label */ in calc_zone_need()
543 log_assert(!parent || parent->count > 0); in neg_create_zone()
770 log_assert(parent->count > 0); in neg_insert_data()
[all …]
H A Dval_sigcrypt.c112 log_assert(sig_idx < d->rrsig_count); in rrset_get_sig_keytag()
129 log_assert(sig_idx < d->rrsig_count); in rrset_get_sig_algo()
141 log_assert(d && idx < (d->count + d->rrsig_count)); in rrset_get_rdata()
417 log_assert(dnskey_algo_id_is_supported((int)algo)); in algo_needs_init_list()
418 log_assert(n->needs[algo] == 0); in algo_needs_init_list()
439 log_assert(algo != 0); /* we do not support 0 and is EOS */ in algo_needs_init_ds()
850 log_assert(desc); in canonical_compare()
852 log_assert(desc->_minimum == desc->_maximum); in canonical_compare()
883 log_assert(r1->rrset == r2->rrset); in canonical_tree_compare()
935 log_assert(rrsig_labels < fqdn_labels); in insert_can_owner()
/freebsd-12.1/contrib/unbound/dns64/
H A Ddns64.c202 log_assert(ipv6_len == 16); (void)ipv6_len; in extract_ipv4()
230 log_assert(nm_len == MAX_PTR_QNAME_IPV4); in ipv4_to_ptr()
235 log_assert(c < ptr+nm_len); in ipv4_to_ptr()
239 log_assert(c + sizeof(IPV4_PTR_SUFFIX) <= ptr+nm_len); in ipv4_to_ptr()
259 log_assert(ipv6_len == 16); (void)ipv6_len; in ptr_to_ipv6()
299 log_assert(prefix_addr_len == 16 && a_len == 4 && aaaa_len == 16); in synthesize_aaaa()
813 log_assert(super->region); in dns64_adjust_a()
814 log_assert(qstate->return_msg); in dns64_adjust_a()
815 log_assert(qstate->return_msg->rep); in dns64_adjust_a()
977 log_assert(qstate->qinfo.qtype == LDNS_RR_TYPE_PTR); in dns64_inform_super()
/freebsd-12.1/contrib/unbound/services/
H A Dmesh.c520 log_assert(n != NULL); in mesh_new_client()
627 log_assert(n != NULL); in mesh_new_callback()
703 log_assert(n != NULL); in mesh_schedule_prefetch()
731 log_assert(n != NULL); in mesh_schedule_prefetch()
871 log_assert(mesh->num_reply_addrs > 0); in mesh_state_cleanup()
879 log_assert(mesh->num_reply_addrs > 0); in mesh_state_cleanup()
919 log_assert(mesh->num_reply_states > 0); in mesh_state_delete()
1018 log_assert(n != NULL); in mesh_add_sub()
1028 log_assert(n != NULL); in mesh_add_sub()
1812 log_assert(mesh->num_reply_addrs > 0); in mesh_state_remove_reply()
[all …]
H A Doutside_network.c101 log_assert(p1->id == p2->id); in pending_cmp()
181 log_assert(pi); in pick_outgoing_tcp()
290 log_assert(pend);
291 log_assert(pkt);
292 log_assert(w->addrlen > 0);
514 log_assert(pif->inuse > 0);
570 log_assert(reply_info);
1020 log_assert(x == p);
1183 log_assert(pend->pc);
1861 log_assert(roundtime >= 0);
[all …]
/freebsd-12.1/contrib/unbound/daemon/
H A Dacl_list.c337 log_assert(p->str && p->str2); in read_acl_list()
351 log_assert(p->str && p->str2); in read_acl_tags()
373 log_assert(p->str && p->str2); in read_acl_view()
395 log_assert(p->str && p->str2 && p->str3); in read_acl_tag_actions()
420 log_assert(p->str && p->str2 && p->str3); in read_acl_tag_datas()
H A Ddaemon.c299 log_assert(daemon); in daemon_open_shared_ports()
428 log_assert(daemon && daemon->cfg); in daemon_create_workers()
535 log_assert(daemon); in daemon_start_others()
556 log_assert(daemon); in daemon_stop_others()
580 log_assert(daemon); in daemon_fork()
701 log_assert(daemon); in daemon_cleanup()

12345678910>>...32