2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

2533 Commits

Author SHA1 Message Date
Ted Lemon
dd952dd18a Add support for logging random ID and fix various bugs in minires tracing. 2001-02-22 07:28:58 +00:00
Ted Lemon
e3fb86fbe0 Always use trace_mr_*() functions. 2001-02-22 07:28:25 +00:00
Ted Lemon
793b7b9f4b Move dst functionality into seperate library 2001-02-22 07:27:14 +00:00
Ted Lemon
246f7f725a Move dst API into its own subdirectory. 2001-02-22 07:22:09 +00:00
Ted Lemon
9560d30a7f Make header lengths signed rather than unsigned, fix snoop_time(). 2001-02-22 06:42:32 +00:00
Ted Lemon
af5ad6dff0 Declare dhcp_failover_toack_queue_timeout (). 2001-02-22 06:41:51 +00:00
Ted Lemon
1b5cb3175e Set lease file mode to 644, not 640. 2001-02-22 00:18:54 +00:00
Damien Neil
988c1ca71f Added failover ack queueing. Failover update messages are no longer
immediately responded to, but are placed on a queue (attached to
the dhcp_failover_state_t structure).  Updated leases are committed
only when the queue is drained, giving a significant performance
increase.

The toack queue is drained:
  a) when the queue size exceeds half the partner's max-unacked-updates
     setting, or
  b) two seconds after the last update message is received.

Added 'refcnt' and 'next' fields to the failover_message_t structure,
to allow messages to be placed on the toack queue.

On the sending side, leases are no longer committed immediately after
being acked.  Rather, the commit is deferred until no further acks are
pending.  This also gives a major gain in performance.
2001-02-22 00:15:54 +00:00
Ted Lemon
e6d30fd632 Add a changelog space for the next patchlevel. 2001-02-21 22:51:44 +00:00
Ted Lemon
80ff6258c9 Fix an uninitialized pointer think-o. 2001-02-18 06:53:00 +00:00
Ted Lemon
504d9311ba Oops, socklen_t is defined in all NetBSD versions *after* 1.3J, not *before*. 2001-02-18 06:52:30 +00:00
Ted Lemon
a7394d157f Fix cross-platform compile warnings 2001-02-17 21:34:56 +00:00
Ted Lemon
cb3993fc65 Fix a think-o. 2001-02-17 21:21:29 +00:00
Ted Lemon
0295cbac90 Mention fixed-address declarations in the address allocation documentation. 2001-02-17 21:21:07 +00:00
Ted Lemon
7a563fb8bf - Get rid of the requirement that trace types be declared after trace_init()
is called.
2001-02-17 21:19:55 +00:00
Ted Lemon
7980a66ed5 Apply a fix provided by Takeshi Hagiwara for a long-standing Sunos 4 bug. 2001-02-17 21:17:25 +00:00
Ted Lemon
fbd9c67bed - Set the fallback interface index to -1 to indicate that it doesn't have
one prior to calling interface_stash.
2001-02-17 21:16:44 +00:00
Damien Neil
6f7081bdc4 Format fix: %d -> %ld, (long int) cast. 2001-02-15 22:17:05 +00:00
Damien Neil
382f3632a9 Removed a log message from dhcp_failover_pool_rebalance() which generates
a bit too much spam.
2001-02-15 22:14:41 +00:00
Damien Neil
0980d1f7f9 Changed dhcp_failover_pool_rebalance() to defer committing updated
leases until the rebalance has completed.  This gives a significant
performance gain when rebalancing large numbers of leases.
2001-02-15 21:35:30 +00:00
Damien Neil
15c24b882b Changed supersede_lease() to return 1, even if the commit option is
not specified.  (Before, it would always return 0 if commit was not
given.)  Fixed up the one call to supersede_lease() which expected
the old behavior.

Added a check to supersede_lease() to return an error if the pimmediate
flag is given, and commit is not.  (You should never be sending information
on an uncommitted lease to a peer.)

Separated the failover queue update (the propogate flag) test from
the commit test in supersede_lease(), so that you can now enqueue an
update on an uncommitted lease.
2001-02-15 21:34:08 +00:00
Damien Neil
f7dca4c7b3 Remove the logic to rewrite the lease file every 1000 leases. This
causes excessive slowness on systems with very large numbers of
leases.
2001-02-15 21:28:25 +00:00
Damien Neil
d0042425f2 Fixed a number of format bugs: %d -> %ld, plus (long int) cast. 2001-02-15 20:58:31 +00:00
Damien Neil
743f0d251c Change the index element of omapi_listener_object_t from an int32_t
to an int, to avoid problems when passing it to omapi_array_extend()
elsewhere.
2001-02-15 20:47:10 +00:00
Damien Neil
5f23e89579 Fixes for several log_*() format bugs: %d -> %ld, plus a cast to (long int). 2001-02-15 20:35:40 +00:00
Damien Neil
2844788f4e Fixed a typecast bug: the third argument of omapi_connection_array_extend()
is an (int *), not a (u_int32_t *).
2001-02-15 20:31:36 +00:00
Damien Neil
b209f985c4 Fixed a log format bug: %d -> %ld, plus a (long int) cast. 2001-02-15 20:28:33 +00:00
Ted Lemon
84ac948785 Initialize minires tracing. 2001-02-15 14:12:54 +00:00
Ted Lemon
ac679e8f57 Add trace_snoop_time. 2001-02-15 14:12:36 +00:00
Ted Lemon
c86c45644c Extend copyright year. 2001-02-15 14:12:12 +00:00
Ted Lemon
f1347d047f Add minires trace support. 2001-02-15 14:11:46 +00:00
Ted Lemon
ca3cfc4809 Minires trace support. 2001-02-15 14:11:29 +00:00
Ted Lemon
4f00c281b6 Add #defines to map public I/O routines. 2001-02-15 14:11:11 +00:00
Ted Lemon
1bc3ffd5ad Add prototype for minires tracing. 2001-02-15 14:09:50 +00:00
Ted Lemon
bc43c8131c Call trace setup hooks for connection.c and buffer.c. 2001-02-15 05:40:00 +00:00
Ted Lemon
1a3bb68cca Add tracing support for OMAPI accepts and for listener object instantiation. 2001-02-15 05:39:17 +00:00
Ted Lemon
ef5cc1830b Add tracing support for OMAPI connects and disconnects. 2001-02-15 05:38:52 +00:00
Ted Lemon
c1a3453e6b Add tracing support for OMAPI connection streams. 2001-02-15 05:37:17 +00:00
Ted Lemon
a5c3f23f81 Add some more trace hooks. 2001-02-15 05:36:40 +00:00
Ted Lemon
0c256f064c Clarify documentation of exit hooks. 2001-02-15 05:36:07 +00:00
Ted Lemon
82b2e77075 Enable tracing by default. 2001-02-13 17:48:51 +00:00
Ted Lemon
662df45ac0 Fix some trace-related ifdefs. 2001-02-12 21:59:31 +00:00
Ted Lemon
d8a44b0761 Definitions for common DHCP trace functions. 2001-02-12 21:21:56 +00:00
Ted Lemon
e42c382659 Get rid of lease -> hostname, which isn't used. 2001-02-12 21:10:10 +00:00
Ted Lemon
25f11933ac - Get rid of lease -> hostname, which doesn't do anything.
- Fix a bug in uid handling that could cause core dumps with long uids.
2001-02-12 21:09:21 +00:00
Ted Lemon
a920d3daf8 - Cut some things out into subroutines to support tracing.
- Do all the relevant tracing setup.
- Clarify ddns-update-style startup error message.
- Print version information and exit if --version is given.
2001-02-12 21:04:06 +00:00
Ted Lemon
0e74ff1fe8 Fix DDNS-related documentation. Mention logrotate as well as newsyslog. 2001-02-12 21:01:36 +00:00
Ted Lemon
27e90ede57 - Add tracing hooks.
- Fix a bug in handling of DHCPNAK that would make the server act like
  it wasn't authoritative.
2001-02-12 21:00:02 +00:00
Ted Lemon
d8765900f4 Add support for tracing. 2001-02-12 20:53:56 +00:00
Ted Lemon
e15d235de5 Add support for tracing. Fix a bug in lease uid parsing. 2001-02-12 20:53:04 +00:00