| /freebsd-11-stable/contrib/unbound/smallapp/ |
| HD | worker_cb.c | 57 log_assert(0); in worker_handle_control_cmd() 64 log_assert(0); in worker_handle_request() 72 log_assert(0); in worker_handle_reply() 80 log_assert(0); in worker_handle_service_reply() 88 log_assert(0); in remote_accept_callback() 96 log_assert(0); in remote_control_callback() 102 log_assert(0); in worker_sighandler() 113 log_assert(0); in worker_send_query() 121 log_assert(0); in worker_win_stop_cb() 127 log_assert(0); in wsvc_cron_cb() [all …]
|
| /freebsd-11-stable/contrib/unbound/util/data/ |
| HD | dname.c | 103 log_assert(d1 && d2); in query_dname_compare() 114 log_assert(lab1 == lab2 && lab1 != 0); in query_dname_compare() 237 log_assert(pkt && d1 && d2); in dname_pkt_compare() 263 log_assert(len1 <= LDNS_MAX_LABELLEN); in dname_pkt_compare() 264 log_assert(len2 <= LDNS_MAX_LABELLEN); in dname_pkt_compare() 269 log_assert(len1 == len2 && len1 != 0); in dname_pkt_compare() 296 log_assert(lablen <= LDNS_MAX_LABELLEN); in dname_query_hash() 332 log_assert(lablen <= LDNS_MAX_LABELLEN); in dname_pkt_hash() 372 log_assert(lablen <= LDNS_MAX_LABELLEN); in dname_pkt_copy() 499 log_assert(atlabel == labs2); in dname_lab_cmp() [all …]
|
| HD | msgparse.c | 305 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() 1068 log_assert(LDNS_QDCOUNT(sldns_buffer_begin(pkt)) == 1); in parse_edns_from_pkt()
|
| /freebsd-11-stable/testcode/ |
| HD | fake_event.c | 333 log_assert(entry && entry->reply_list); in fill_buffer_with_reply() 409 log_assert(runtime && runtime->now && in answer_check_it() 587 log_assert(mom->autotrust_id); in autotrust_check() 640 log_assert(mom->autotrust_id); in tempfile_check() 1008 log_assert(ans); in comm_point_send_reply() 1088 log_assert(pend); in pending_udp_query() 1090 log_assert(pend->buffer); in pending_udp_query() 1138 log_assert(pend); in pending_tcp_query() 1140 log_assert(pend->buffer); in pending_tcp_query() 1194 log_assert(pend); in outnet_serviced_query() [all …]
|
| /freebsd-11-stable/contrib/unbound/dnstap/ |
| HD | unbound-dnstap-socket.c | 1367 log_assert(0); in worker_handle_control_cmd() 1374 log_assert(0); in worker_handle_request() 1382 log_assert(0); in worker_handle_reply() 1390 log_assert(0); in worker_handle_service_reply() 1398 log_assert(0); in remote_accept_callback() 1406 log_assert(0); in remote_control_callback() 1412 log_assert(0); in worker_sighandler() 1423 log_assert(0); in worker_send_query() 1431 log_assert(0); in worker_win_stop_cb() 1437 log_assert(0); in wsvc_cron_cb() [all …]
|
| HD | dnstap.c | 297 log_assert(b != NULL); in dt_fill_buffer() 310 log_assert(ss->ss_family == AF_INET6 || ss->ss_family == AF_INET); in dt_msg_fill_net() 343 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_fill_net() 378 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_client_query() 410 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_client_response() 458 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_outside_query() 480 log_assert(qbuf_len >= sizeof(qflags)); in dt_msg_send_outside_response() 514 log_assert(cptype == comm_udp || cptype == comm_tcp); in dt_msg_send_outside_response()
|
| /freebsd-11-stable/contrib/unbound/edns-subnet/ |
| HD | addrtree.c | 76 log_assert(parent_node->edge[parent_index] == NULL); in edge_create() 125 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() [all …]
|
| /freebsd-11-stable/contrib/unbound/libunbound/ |
| HD | libworker.c | 939 log_assert(0); in worker_handle_control_cmd() 946 log_assert(0); in worker_handle_request() 954 log_assert(0); in worker_handle_reply() 962 log_assert(0); in worker_handle_service_reply() 970 log_assert(0); in remote_accept_callback() 978 log_assert(0); in remote_control_callback() 984 log_assert(0); in worker_sighandler() 995 log_assert(0); in worker_send_query() 1002 log_assert(0); in worker_alloc_cleanup() 1007 log_assert(0); in worker_stat_timer_cb() [all …]
|
| HD | context.c | 256 log_assert( sldns_read_uint32(p) == UB_LIBCMD_NEWQUERY); in context_deserialize_new_query() 288 log_assert( sldns_read_uint32(p) == UB_LIBCMD_NEWQUERY); in context_lookup_new_query() 294 log_assert(q->async); in context_lookup_new_query() 343 log_assert( sldns_read_uint32(p) == UB_LIBCMD_ANSWER); in context_deserialize_answer() 397 log_assert( sldns_read_uint32(p) == UB_LIBCMD_CANCEL); in context_deserialize_cancel()
|
| /freebsd-11-stable/contrib/unbound/util/ |
| HD | regional.c | 95 log_assert(sizeof(struct regional) <= size); in regional_create_custom_large_object() 241 log_assert(ALIGNMENT >= sizeof(char*)); in regional_log_stats() 242 log_assert(REGIONAL_CHUNK_SIZE > ALIGNMENT); in regional_log_stats() 243 log_assert(REGIONAL_CHUNK_SIZE-ALIGNMENT > r->large_object_size); in regional_log_stats() 244 log_assert(REGIONAL_CHUNK_SIZE >= sizeof(struct regional)); in regional_log_stats()
|
| HD | netevent.c | 339 log_assert(c->fd != -1); 344 log_assert(addr && addrlen > 0); 468 log_assert(c->fd != -1); 473 log_assert(addr && addrlen > 0); 493 log_assert(msg.msg_controllen <= sizeof(control.buf)); 504 log_assert(msg.msg_controllen <= sizeof(control.buf)); 517 log_assert(msg.msg_controllen <= sizeof(control.buf)); 529 log_assert(msg.msg_controllen <= sizeof(control.buf)); 645 log_assert(rep.c->type == comm_udp); 649 log_assert(rep.c && rep.c->buffer && rep.c->fd == fd); [all …]
|
| HD | log.h | 220 #define log_assert(x) assert(x) macro 222 # define log_assert(x) \ macro 229 # define log_assert(x) /*nothing*/ macro
|
| HD | alloc.c | 217 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()
|
| HD | rbtree.c | 310 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()
|
| HD | winsock_event.c | 206 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()
|
| HD | tcp_conn_limit.c | 136 log_assert(p->str && p->str2); in read_tcl_list() 175 log_assert(tcl->count > 0); in tcl_close_connection()
|
| /freebsd-11-stable/contrib/unbound/iterator/ |
| HD | iter_delegpt.c | 96 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() 452 log_assert(!dp->dp_type_mlc); in delegpt_add_rrset_AAAA() 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() [all …]
|
| HD | iter_priv.c | 88 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-11-stable/contrib/unbound/dns64/ |
| HD | dns64.c | 203 log_assert(ipv6_len == 16); (void)ipv6_len; in extract_ipv4() 204 log_assert(offset == 32 || offset == 40 || offset == 48 || offset == 56 || in extract_ipv4() 233 log_assert(nm_len == MAX_PTR_QNAME_IPV4); (void)nm_len; in ipv4_to_ptr() 238 log_assert(c < ptr+nm_len); in ipv4_to_ptr() 242 log_assert(c + sizeof(IPV4_PTR_SUFFIX) <= ptr+nm_len); in ipv4_to_ptr() 262 log_assert(ipv6_len == 16); (void)ipv6_len; in ptr_to_ipv6() 304 log_assert(prefix_addr_len == 16 && a_len == 4 && aaaa_len == 16); in synthesize_aaaa() 305 log_assert(prefix_net == 32 || prefix_net == 40 || prefix_net == 48 || in synthesize_aaaa() 818 log_assert(super->region); in dns64_adjust_a() 819 log_assert(qstate->return_msg); in dns64_adjust_a() [all …]
|
| /freebsd-11-stable/contrib/unbound/services/ |
| HD | outside_network.c | 106 log_assert(p1->id == p2->id); in pending_cmp() 120 log_assert(q1->qbuflen == q2->qbuflen); in serviced_cmp() 121 log_assert(q1->qbuflen >= 15 /* 10 header, root, type, class */); in serviced_cmp() 228 log_assert(pi); in pick_outgoing_tcp() 352 log_assert(w->write_wait_queued); 353 log_assert(!w->write_wait_prev); 384 log_assert(!w->write_wait_queued); 399 log_assert(w->id_node.key == NULL); 491 log_assert(&key_p.reuse != (struct reuse_tcp*)result); 492 log_assert(&key_p != ((struct reuse_tcp*)result)->pending); [all …]
|
| HD | mesh.c | 532 log_assert(n != NULL); in mesh_new_client() 564 log_assert(mesh->num_detached_states > 0); in mesh_new_client() 642 log_assert(n != NULL); in mesh_new_callback() 665 log_assert(mesh->num_detached_states > 0); in mesh_new_callback() 718 log_assert(n != NULL); in mesh_schedule_prefetch() 746 log_assert(n != NULL); in mesh_schedule_prefetch() 886 log_assert(mesh->num_reply_addrs > 0); in mesh_state_cleanup() 894 log_assert(mesh->num_reply_addrs > 0); in mesh_state_cleanup() 930 log_assert(mesh->num_detached_states > 0); in mesh_state_delete() 934 log_assert(mesh->num_reply_states > 0); in mesh_state_delete() [all …]
|
| /freebsd-11-stable/contrib/unbound/validator/ |
| HD | val_nsec3.c | 126 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() 289 log_assert(d && r < (int)d->count); in nsec3_has_type() 456 log_assert(ve->nsec3_keyiter_count > 0); in get_max_iter() 671 log_assert(n); /* cannot be duplicate, just did lookup */ in nsec3_hash_name() [all …]
|
| HD | val_neg.c | 201 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() 238 log_assert(neg->first != el && neg->last != el); 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() [all …]
|
| /freebsd-11-stable/contrib/unbound/daemon/ |
| HD | acl_list.c | 337 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()
|
| HD | daemon.c | 309 log_assert(daemon); in daemon_open_shared_ports() 447 log_assert(daemon && daemon->cfg); in daemon_create_workers() 552 log_assert(daemon); in daemon_start_others() 573 log_assert(daemon); in daemon_stop_others() 597 log_assert(daemon); in daemon_fork() 722 log_assert(daemon); in daemon_cleanup()
|