2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

2540 Commits

Author SHA1 Message Date
Ted Lemon
b276ad7569 Revamp lease file documentation for 3.0. 2001-02-22 22:50:32 +00:00
Ted Lemon
95848a1fe0 Add references to the dhcp-eval and dhcp-options man pages. 2001-02-22 22:41:43 +00:00
Ted Lemon
51fe0cce6a Document -tf and -play. 2001-02-22 07:52:54 +00:00
Ted Lemon
37ee426a25 Get md5.h from dst/ instead of minires/ 2001-02-22 07:37:15 +00:00
Ted Lemon
8550e74ac0 Last dregs of dst split. 2001-02-22 07:31:21 +00:00
Ted Lemon
12fd607507 Fix up function declaration formatting. 2001-02-22 07:30:21 +00:00
Ted Lemon
6b85636e11 Fix time snooper. 2001-02-22 07:29:36 +00:00
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