2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 14:35:26 +00:00
Commit Graph

3148 Commits

Author SHA1 Message Date
Andreas Gustafsson
9a1e183042 removed unnecessary #includes 2000-01-31 18:32:36 +00:00
Andreas Gustafsson
6627af90c6 quiet compiler warning about ambiguous 'else' 2000-01-31 18:21:33 +00:00
Andreas Gustafsson
87fe131e60 include <isc/mktemplate.h> and <isc/ufile.h> 2000-01-31 18:05:13 +00:00
Andreas Gustafsson
c718c8aa60 separate transfer-source addresses for IPv4 and IPv6 2000-01-31 18:00:07 +00:00
Andreas Gustafsson
994a1996e4 spell ISC_*_H in uppercase 2000-01-31 17:41:49 +00:00
Andreas Gustafsson
3d659a692a mkstemp() requires <stdlib.h> on NetBSD 2000-01-31 17:36:02 +00:00
David Lawrence
98b6232ec1 added DNS_LOGMODULE_OMAPI 2000-01-31 15:25:29 +00:00
David Lawrence
824881962d Added rndc to subdirs. 2000-01-31 15:23:40 +00:00
David Lawrence
186a100dc6 Reset the assertion and fatal error callbacks before calling isc_log_*,
in case isc_log_* is what is causing the assertion/error.

Check bounds on port of -p option.

Start OMAPI on startup, destroy it on shutdown.
2000-01-31 15:23:10 +00:00
David Lawrence
4233113daf compile omapi.c, compile with OMAPI include directories, link with libomapi.a 2000-01-31 15:20:58 +00:00
David Lawrence
9397fb1fb1 dns_g_omapimgr to manage the OMAPI listener 2000-01-31 15:19:37 +00:00
David Lawrence
36e3f1b8e5 definitions for OMAPI support 2000-01-31 15:18:48 +00:00
David Lawrence
c6ea39f398 accept "reload" command via OMAPI 2000-01-31 15:17:59 +00:00
David Lawrence
9fac613f40 Allow -e flag to force an error from the client to the server, to test
the server's error response mechanism.

Test notify-object.

omapi_value_asint -> omapi_value_getint

omapi_string_totext API changed.

Process the additional text message in a "status" signal.

Shutdown the server side at a trigger value (hardwired at 32, or four
updates from the client.)

Test omapi_protocol_connect without asserting an error on failure.

Wait the server until shutdown so memory usage can be examined.
2000-01-31 15:17:11 +00:00
David Lawrence
03f727fcc5 Notes from Bob to bind-dev about tasks (shutdown and termination).
This is the start of what I hope will grow to be more descriptive
documentation of usage of the ISC task/event library.
2000-01-31 15:12:41 +00:00
David Lawrence
697de685e1 In xfrin_logv, do not omit the final dot of the zone name if the zone
name is dns_rootname.
2000-01-31 15:10:29 +00:00
David Lawrence
e5a213d7ee use isc_net_probeipv6 to decide family of sockaddr_any in dns_zone_configure 2000-01-31 15:09:09 +00:00
David Lawrence
6a11a9610d do not need config.h or isc/result.h
do need isc/util.h

mutex and recv_lock no longer needed in connection; wait_lock used instead.

messages_expected no longer needed in connection.

no more omapi_ipv6

connection_send return value changed from void to isc_result_t

connection_wait no longer takes a timeout parameter

new private function, handle_destroy
2000-01-31 15:07:04 +00:00
David Lawrence
450e60d4f1 _OMAPI_OMAPIP_H_ changed to _OMAPI_OMAPI_H_ to match file name.
include isc/region.h and new omapi/types.h

typedefs moved to omapi/types.h

define protocol port to 7912 so as not to conflict with dhcp server;
this clearly needs more thought. the default omapi port will need to be
server specific rather than library specific.

new public functions, omapi_listener_shutdown, omapi_data_getint.

changed API, omapi_string_totext, omapi_value_getint
2000-01-31 15:04:11 +00:00
David Lawrence
5964aac22f omapi_data_asint renamed to omapi_data_getint, old name of omapi_object_getvalue was wrong 2000-01-31 15:00:44 +00:00
David Lawrence
f6826ddc14 typedefs broken out of omapi.h 2000-01-31 14:59:46 +00:00
David Lawrence
ea44276a01 renamed omapi_value_asint to omapi_value_getint, added omapi_value_getregion 2000-01-31 14:59:23 +00:00
David Lawrence
ae47947fdb Changed API for omapi_string_totext; the string was not always
nul-terminated, so now the function sets a region instead.
2000-01-31 14:58:11 +00:00
David Lawrence
eb91bcf9c8 do not need config.h 2000-01-31 14:56:34 +00:00
David Lawrence
ed24fabb6d overhaul of way thread locking is done.
ensure only one socket task is outstanding at a time.

allow remote port to be 0, will use OMAPI_PROTOCOL_PORT.

cleaned up error handling so that everything is freed when
something fails.
2000-01-31 14:56:14 +00:00
David Lawrence
7630a0854f free allocated name string in omapi_object_getvalue 2000-01-31 14:52:33 +00:00
David Lawrence
141eff6120 Allow omapi_message_send to be called by the protocol's inner object
(an omapi manager).

overhaul of way connection locking is done.

clarified/fixed where connections can get disconnected.

omapi_value_asint renamed to omapi_value_getint (because
omapi_value_assstr was amusing but in questionable taste)

don't require an object in an OMAPI_OP_UPDATE message; thus the
message can be used just for notification.  (though arguably
OMAPI_OP_STATUS can be used, with a bit more effort.)

free the notify_object if it exists.

signal the notify_object with "status" in preference to the value object.
2000-01-31 14:51:32 +00:00
David Lawrence
a89a8e3754 New function, omapi_listener_shutdown, to destroy all memory used by the
listener.

Manage a list of all connections known by the listener, so they can be
shut down by omapi_listener_shutdown.
2000-01-31 14:46:29 +00:00
David Lawrence
fbf54b5ee2 ditch omapi_ipv6; the one place that needed it can call isc_net_probeipv6
directly.

note whether memory context is internal to the library so it can be
destroyed by omapi_lib_destroy.

destroy the handle table.

set destroyed pointers to null.

require omapi_lib_init only be called once (without omapi_lib_destroy).
2000-01-31 14:43:31 +00:00
David Lawrence
4bf4456d7f New functions to free the handle table.
Lock the mutex before any use of toptable or the object's handle.
2000-01-31 14:40:08 +00:00
David Lawrence
54a9eb1a8e style lint 2000-01-31 14:38:33 +00:00
David Lawrence
a29e02919d new function, omapi_data_getint 2000-01-31 14:38:01 +00:00
David Lawrence
6eb44b7026 Overhaul of the way thread locking for connectiond destruction is done.
Allow only one socket event to be outstanding at a time.

Signal the listener when a connection it accepted has disconnected.

Set some destroyed/freed pointers to NULL after destruction/freeing.

Use isc_net_probeipv6 directly instead of omapi_ipv6 variable.
2000-01-31 14:37:22 +00:00
David Lawrence
12ccbb032e Check for sigwait in libc in addition to lib pthread.
(Although BSD/OS 4.0.1 is *still* totally ignoring INTR, no matter
whether HAVE_SIGWAIT is defined.

Require NEED_PTHREAD_INIT under BSD/OS 4.0* too.

Add rndc Makefile to configured Makefiles.
2000-01-31 14:31:39 +00:00
David Lawrence
20bd7b4bbf start of omapi-based ndc; reload only so far 2000-01-31 14:30:48 +00:00
Mark Andrews
89ab7f672f add ufile and mktemplate 2000-01-31 07:46:56 +00:00
Mark Andrews
d718d8e129 Use a tmp file to dump the zone to so that we don't destroy the current
version unless we have successfully written to disk.
2000-01-31 07:45:18 +00:00
Mark Andrews
b1058f88f9 Add isc_mktemplate and isc_ufile 2000-01-31 07:31:31 +00:00
Mark Andrews
9ec46fafd6 Missed include file 2000-01-31 02:37:58 +00:00
Mark Andrews
d875b1151d dns_zone_dump() -> dns_zone_dumptostream() 2000-01-31 02:16:13 +00:00
Mark Andrews
89ab345002 dns_zone_dump() -> dns_zone_dumptostream()
replace seperate iteration of zone in dns_zone_dumptostream() with call
to dns_master_dumptostream().
dns_zone_dume() now dumps to database specified in zone.
2000-01-31 02:11:50 +00:00
Mark Andrews
9618b7e8c2 add extra test 2000-01-31 01:55:24 +00:00
Mark Andrews
fb5363b897 dns_master_dumptostream() from static to public. 2000-01-31 01:51:26 +00:00
Bob Halley
9ee5efde7d pid file support 2000-01-29 01:38:09 +00:00
Andreas Gustafsson
a31e0ba97b leading whitespace caused OSF/1 cpp to ignore #endif directive 2000-01-29 00:53:49 +00:00
James Brister
7d9c38e052 New test fields 2000-01-29 00:12:34 +00:00
James Brister
1549f02958 Zones now have a pointer to their owner view. 2000-01-29 00:04:50 +00:00
James Brister
93c69b1231 Several new fields added to views.
declarations of many new fields accessor/modifier functions.
2000-01-29 00:03:45 +00:00
James Brister
76861e034c New functions declarations. 2000-01-29 00:02:28 +00:00
James Brister
4714bab9f2 Added also-notify and transfer-source options fields.
declarations for new accessors/modifiers.
2000-01-29 00:01:54 +00:00