/openbsd/usr.sbin/nsd/ |
H A D | ipc.c | 531 udb_ptr_unlink(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_send_reload_req() 532 task_process_sync(xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_send_reload_req() 535 udb_ptr_init(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_send_reload_req() 536 udb_ptr_set(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask], p); in xfrd_send_reload_req() 545 xfrd->nsd->mytask = 1 - xfrd->nsd->mytask; in xfrd_send_reload_req() 546 task_remap(xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_send_reload_req() 547 udb_ptr_init(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_send_reload_req() 620 xfrd_handle_ipc_read(&xfrd->ipc_handler, xfrd); in xfrd_handle_ipc() 668 xfrd->ipc_pass = xfrd->ipc_conn->packet; in xfrd_handle_ipc_read() 691 xfrd->ipc_pass = xfrd->ipc_conn->packet; in xfrd_handle_ipc_read() [all …]
|
H A D | remote.c | 558 rc->xfrd = xfrd; in daemon_remote_attach() 1260 (void)xfrd; in do_status() 1286 (void)xfrd; in zonestat_inc_ifneeded() 1375 task_new_add_zone(xfrd->nsd->task[xfrd->nsd->mytask], in perform_changezone() 1443 task_new_add_zone(xfrd->nsd->task[xfrd->nsd->mytask], in perform_addzone() 1507 task_new_del_zone(xfrd->nsd->task[xfrd->nsd->mytask], in perform_delzone() 1606 task_new_del_key(xfrd->nsd->task[xfrd->nsd->mytask], xfrd->last_task, in remove_key() 1617 task_new_add_key(xfrd->nsd->task[xfrd->nsd->mytask], xfrd->last_task, in add_key() 1679 task_new_del_zone(xfrd->nsd->task[xfrd->nsd->mytask], in remove_cfgzone() 2114 task_new_add_key(xfrd->nsd->task[xfrd->nsd->mytask], xfrd->last_task, in do_update_tsig() [all …]
|
H A D | xfrd.c | 162 xfrd->last_task = region_alloc(xfrd->region, sizeof(*xfrd->last_task)); in xfrd_init() 163 udb_ptr_init(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_init() 201 daemon_remote_attach(xfrd->nsd->rc, xfrd); in xfrd_init() 277 xfrd->nsd->mytask], xfrd->last_task, NULL); in xfrd_sig_process() 407 xfrd_clean_pending_tasks(xfrd->nsd, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_shutdown() 548 xfrd->zones = rbtree_create(xfrd->region, in xfrd_init_zones() 921 xfrd->nsd->mytask = 1 - xfrd->nsd->mytask; in xfrd_receive_soa() 931 udb_ptr_init(xfrd->last_task, xfrd->nsd->task[xfrd->nsd->mytask]); in xfrd_receive_soa() 1566 task_new_expire(xfrd->nsd->task[xfrd->nsd->mytask], xfrd->last_task, in xfrd_send_expire_notification() 2508 xfrd->nsd->task[xfrd->nsd->mytask], in xfrd_handle_received_xfr_packet() [all …]
|
H A D | xfrd-catalog-zones.c | 42 return xfrd in xfrd_one_catalog_consumer_zone() 259 xfrd->zones, in xfrd_deinit_catalog_consumer_zone() 352 task_new_del_zone(xfrd->nsd->task[xfrd->nsd->mytask], in catalog_del_consumer_member_zone() 514 xfrd->nsd->db = namedb_open(xfrd->nsd->options); in xfrd_process_catalog_consumer_zone() 750 xfrd->nsd->task[xfrd->nsd->mytask], in xfrd_process_catalog_consumer_zone() 772 xfrd->nsd->task[xfrd->nsd->mytask], in xfrd_process_catalog_consumer_zone() 855 task_new_add_zone(xfrd->nsd->task[xfrd->nsd->mytask], in xfrd_process_catalog_consumer_zone() 868 init_notify_send(xfrd->notify_zones, xfrd->region, in xfrd_process_catalog_consumer_zone() 915 assert(xfrd); in xfrd_get_catalog_producer_zone() 971 assert(xfrd); in xfrd_add_catalog_producer_member() [all …]
|
H A D | xfrd-notify.c | 67 if(xfrd->notify_udp_num == XFRD_MAX_UDP_NOTIFY) { in notify_disable() 69 while(xfrd->notify_waiting_first) { in notify_disable() 74 xfrd->notify_waiting_first = wz->waiting_next; in notify_disable() 77 if(xfrd->notify_waiting_last == wz) in notify_disable() 78 xfrd->notify_waiting_last = NULL; in notify_disable() 89 xfrd->notify_udp_num--; in notify_disable() 125 xfrd->notify_zones, dname); in xfrd_del_notify() 499 xfrd->notify_udp_num++; in notify_enable() 507 if(xfrd->notify_waiting_last) { in notify_enable() 510 xfrd->notify_waiting_first = zone; in notify_enable() [all …]
|
H A D | Makefile.in | 80 XFRD_OBJ=xfrd-catalog-zones.o xfrd-disk.o xfrd-notify.o xfrd-tcp.o xfrd.o remote.o $(DNSTAP_OBJ) 511 …$(srcdir)/options.h $(srcdir)/tsig.h $(srcdir)/xfrd-catalog-zones.h $(srcdir)/xfrd-notify.h $(srcd… 534 xfrd.o: $(srcdir)/xfrd.c config.h $(srcdir)/xfrd.h $(srcdir)/rbtree.h \ 536 …$(srcdir)/options.h $(srcdir)/tsig.h $(srcdir)/xfrd-tcp.h $(srcdir)/xfrd-disk.h $(srcdir)/xfrd-not… 539 xfrd-catalog-zones.o: $(srcdir)/xfrd-catalog-zones.c config.h \ 542 $(srcdir)/xfrd-catalog-zones.h $(srcdir)/xfrd.h $(srcdir)/tsig.h $(srcdir)/xfrd-notify.h 543 xfrd-disk.o: $(srcdir)/xfrd-disk.c config.h $(srcdir)/xfrd-disk.h $(srcdir)/xfrd.h \ 546 xfrd-notify.o: $(srcdir)/xfrd-notify.c config.h $(srcdir)/xfrd-notify.h \ 549 xfrd-tcp.o: $(srcdir)/xfrd-tcp.c config.h $(srcdir)/nsd.h $(srcdir)/dns.h $(srcdir)/edns.h \ 550 …egion-allocator.h $(srcdir)/util.h $(srcdir)/bitset.h $(srcdir)/xfrd-tcp.h $(srcdir)/xfrd.h $(srcd… [all …]
|
H A D | xfrd-catalog-zones.h | 84 void xfrd_init_catalog_consumer_zone(xfrd_state_type* xfrd, 88 void xfrd_deinit_catalog_consumer_zone(xfrd_state_type* xfrd, 121 int xfrd_del_catalog_producer_member(xfrd_state_type* xfrd,
|
H A D | xfrd-disk.h | 20 void xfrd_read_state(struct xfrd_state* xfrd); 22 void xfrd_write_state(struct xfrd_state* xfrd);
|
H A D | xfrd.h | 361 extern xfrd_state_type* xfrd; 368 void xfrd_init_slave_zone(xfrd_state_type* xfrd, struct zone_options* zone_opt); 371 void xfrd_del_slave_zone(xfrd_state_type* xfrd, const dname_type* dname); 471 void xfrd_process_task_result(xfrd_state_type* xfrd, struct udb_base* taskudb); 474 void xfrd_set_reload_now(xfrd_state_type* xfrd);
|
H A D | xfrd-disk.c | 143 xfrd_read_state(struct xfrd_state* xfrd) in xfrd_read_state() argument 145 const char* statefile = xfrd->nsd->options->xfrdfile; in xfrd_read_state() 240 zone = (xfrd_zone_type*)rbtree_search(xfrd->zones, dname); in xfrd_read_state() 450 xfrd_write_state(struct xfrd_state* xfrd) in xfrd_write_state() argument 453 const char* statefile = xfrd->nsd->options->xfrdfile; in xfrd_write_state() 485 fprintf(out, "numzones: %d\n", (int)xfrd->zones->count); in xfrd_write_state() 487 for(p = rbtree_first(xfrd->zones); p && p!=RBTREE_NULL; p=rbtree_next(p)) in xfrd_write_state() 516 (int)xfrd->zones->count)); in xfrd_write_state()
|
H A D | xfrd-notify.h | 83 void xfrd_del_notify(struct xfrd_state* xfrd, const dname_type* dname); 89 void xfrd_notify_start(struct notify_zone* zone, struct xfrd_state* xfrd);
|
H A D | xfrd-tcp.c | 622 xfrd_tcp_pipe_release(xfrd->tcp_set, tp, conn); in xfrd_tcp_pipe_stop() 630 tv.tv_sec = xfrd->tcp_set->tcp_timeout; in tcp_pipe_reset_timeout() 645 if(event_base_set(xfrd->event_base, &tp->handler) != 0) in tcp_pipe_reset_timeout() 843 if(xfrd->nsd->outgoing_tcp_mss > 0) { in xfrd_tcp_open() 846 (void*)&xfrd->nsd->outgoing_tcp_mss, in xfrd_tcp_open() 847 sizeof(xfrd->nsd->outgoing_tcp_mss)) < 0) { in xfrd_tcp_open() 956 if(event_base_set(xfrd->event_base, &tp->handler) != 0) in xfrd_tcp_open() 1517 xfrd_tcp_release(xfrd->tcp_set, zone); in xfrd_tcp_read() 1521 xfrd_tcp_release(xfrd->tcp_set, zone); in xfrd_tcp_read() 1526 xfrd_tcp_release(xfrd->tcp_set, zone); in xfrd_tcp_read() [all …]
|
H A D | remote.h | 93 void daemon_remote_attach(struct daemon_remote* rc, struct xfrd_state* xfrd);
|
H A D | nsd.conf.sample.in | 19 # Any server/xfrd CPU affinity value will be masked by this value. 31 # Bind xfrd to a dedicated core. 32 # xfrd-cpu-affinity: 3 174 # xfrd-tcp-max: 32 and xfrd-tcp-pipeline: 128, also rrl-size: 1000 178 # xfrd-tcp-max: 128 180 # xfrd-tcp-pipeline: 128 192 # Number of seconds between reloads triggered by xfrd. 193 # xfrd-reload-timeout: 1
|
H A D | ipc.h | 96 void ipc_xfrd_set_listening(struct xfrd_state* xfrd, short mode);
|
H A D | configlexer.lex | 229 xfrd-reload-timeout{COLON} { LEXOUT(("v(%s) ", yytext)); return VAR_XFRD_RELOAD_TIMEOUT;} 312 xfrd-tcp-max{COLON} { LEXOUT(("v(%s) ", yytext)); return VAR_XFRD_TCP_MAX;} 313 xfrd-tcp-pipeline{COLON} { LEXOUT(("v(%s) ", yytext)); return VAR_XFRD_TCP_PIPELINE;} 344 xfrd-cpu-affinity{COLON} { LEXOUT(("v(%s) ", yytext)); return VAR_XFRD_CPU_AFFINITY; }
|
H A D | Makefile.bsd-wrapper | 22 --with-xfrdfile=${CHROOTDIR}/run/xfrd.state \
|
H A D | configure.ac | 115 # default xfrd file location. 116 xfrdfile=${dbdir}/xfrd.state 117 AC_ARG_WITH([xfrdfile], AS_HELP_STRING([--with-xfrdfile=path],[Pathname to the NSD xfrd zone timer … 118 AC_DEFINE_UNQUOTED(XFRDFILE, ["`eval echo $xfrdfile`"], [Pathname to the NSD xfrd zone timer state …
|
H A D | config.h.in | 755 /* Pathname to the NSD xfrd zone timer state file. */
|
H A D | configure | 1486 --with-xfrdfile=path Pathname to the NSD xfrd zone timer state file 4339 xfrdfile=${dbdir}/xfrd.state
|
/openbsd/usr.sbin/nsd/doc/ |
H A D | NSD-VERIFY-MODS | 58 To allow updates to be applied again on failure, xfrd has been updated to keep 61 loop. During the update window, xfrd will accept and transfer updates, but 62 does not schedule them until the reload finishes. As a result, xfrd manages 184 prevent a bad zone from being verified again and again, xfrd remembers the 188 Before afer reloading, the reload process informed xfrd which SOA's were 189 merged in the database, so that xfrd knew when zone needed to be refreshed. 190 This is adapted to inform xfrd about bad zones. The function 195 send. Reception of these messages by xfrd is handled by function 196 xfrd_handle_ipc_read in ipc.c. In the xfrd_state struct (in xfrd.h), the 199 The soas are eventually processed by xfrd, via xfrd_handle_ipc_SOAINFO in [all …]
|
H A D | ChangeLog | 2347 - Write xfrd.state for nodb mode again. Disable xfrd.state with 2970 - libevent in xfrd. 3086 - fix for xfrd restart if crashed. xfrd knows if a reload is 3954 - server_main sends SOA_END if reload crashes, to xfrd. So that xfrd 4063 - Easy overview of socket allocation for xfrd in xfrd.h 5059 - split off xfrd tcp handling into xfrd-tcp.c. 5066 to xfrd. 5123 - xfrd init zones. 5131 only has the old xfrd pid, new xfrd is an orphan. 5144 - added first xfrd files. xfrd is started from server_main. [all …]
|
H A D | README | 591 on disk (in the xfrdfile: "xfrd.state"), together with timeouts. If a 597 serve the zone dangit!''). You can delete the file 'xfrd.state', 643 - "xfrd: max number of tcp connections (32) reached." 646 same time. The value is a compile constant (xfrd-tcp.h), but if this 702 cpu-affinity, server-<N>-cpu-affinity and xfrd-cpu-affinity 713 are scheduled. server-<N>-cpu-affinity and xfrd-cpu-affinity can be used to 718 dedicated cores 0 and 2, while the transfer daemon (xfrd) must run on core 1, 726 xfrd-cpu-affinity: 1 757 xfrd-cpu-affinity: 4
|
H A D | RELNOTES | 34 - Fix control-reconfig-xfrd test for zonestatus primary that is 40 - Fix compile with memclean for xfrd nsd.db close. 41 - In xfrd del secondary zone, the timer could perhaps have 218 xfrd-tcp-max default. 281 - Fix typo in xfrd-tcp.c. 320 - Fix #143: xfrd no hysteresis with NOT IMPLEMENTED rcode. 588 - Cleanup tls context on xfrd exit. 883 - Robust fix against missing master in tcp_open for xfrd. 909 - Fix #817: xfrd update failed loop. 1593 - Bugfix #357, make xfrd quit with many zones. [all …]
|