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

1205 Commits

Author SHA1 Message Date
Ted Lemon
6f8a0361b4 - Default tstp if none is specified.
- Default initial state to recover instead of potential_conflict.
- Allow star-time-of-state to be left unspecified.
2001-04-16 22:25:04 +00:00
Ted Lemon
46a65180fc Fix the contributions message for dhcpd. 2001-04-09 18:08:57 +00:00
Ted Lemon
ff591474e0 Make compiles work without NSUPDATE. 2001-04-09 01:18:15 +00:00
Ted Lemon
aaafa64a66 Release old billing class when parsing new billing class. 2001-04-06 05:52:19 +00:00
Ted Lemon
fea20b0912 Add a TODO note about spawning subclasses. 2001-04-06 05:45:45 +00:00
Ted Lemon
77f5b2d92e Process the state transition if we're doing a deferred update. 2001-04-06 01:03:39 +00:00
Ted Lemon
5aa40fc5a0 Add hooks for subclasses. 2001-04-05 22:54:57 +00:00
Ted Lemon
fb5f879356 Make sure we have a stdin, stdout and stderr. 2001-04-05 22:52:48 +00:00
Ben Cottrell
fa0b47093f Fix RT #1100. This was due to incorrect refcounting of failover messages
in two places, and also the fact that failover_message_dereference() was
not zeroing out the pointer.
2001-03-28 23:07:10 +00:00
Ted Lemon
b7d4762721 Fix a core dump in dhcprelease. 2001-03-22 21:36:49 +00:00
Ted Lemon
08a51b9840 Update documentation of client identifier representation. 2001-03-22 07:01:45 +00:00
Ted Lemon
59bdb6a11a This time for sure! (fix for spinning). 2001-03-20 22:25:30 +00:00
Ted Lemon
894820f2dd Actually fix the spin that I thought I'd fixed previously. 2001-03-20 07:29:35 +00:00
Ted Lemon
a3cd7f284e Set lease -> uid_max. 2001-03-17 02:02:20 +00:00
Ted Lemon
7ebf32da1b Don't stash uid_len until we know we have a uid. 2001-03-17 01:24:59 +00:00
Ted Lemon
b1820749bd - Fix a bug that would cause the server to spin looking for leases to free.
- Fix a non-null pointer store.
2001-03-17 00:48:34 +00:00
Ted Lemon
b3519f23f1 Support NUL characters in STRING tokens. 2001-03-17 00:47:39 +00:00
Ted Lemon
940e5b93bd Initialize a couple of pointers. 2001-03-16 01:57:00 +00:00
Ted Lemon
d588b01f6e - Return a correct status in lease_ours_to_reallocate even if the lease isn't
in a failover pool.
2001-03-16 01:56:32 +00:00
Ted Lemon
7f65aa81c2 - Check client identifier on hw_lease before giving it to the client.
- Don't try to reference host to lease if there's no host.
2001-03-16 01:55:38 +00:00
Ted Lemon
c2318c2074 ns_rcode -> isc_result_t 2001-03-16 00:23:59 +00:00
Ted Lemon
cb8176c4ae Always reference count leases. 2001-03-15 23:22:33 +00:00
Ted Lemon
c0b7fffacd - Write things that could contain non-printable values as quotable strings
with non-printable values stored as \\ooo.
2001-03-15 23:21:25 +00:00
Ted Lemon
d2ff2ec298 Don't reference/dereference failover_listeners if it's null. 2001-03-14 17:40:59 +00:00
Ted Lemon
0240e57c46 Check comp->uid instead of lease->uid when entering a lease's ID info. 2001-03-14 15:45:41 +00:00
Ted Lemon
6c6084374e - Fix DHCPINFORM non-return bug.
- Log released leases always.
- Byte swap secs on log message.
- Fix a possible null pointer dereference that could happen in certain
  obscure cases.
2001-03-14 15:44:39 +00:00
Ted Lemon
ae598b4274 Get rid of local debug flag. 2001-03-14 15:36:57 +00:00
Ted Lemon
30a122eebc Don't start ICMP if we're just testing a lease file. 2001-03-01 22:11:50 +00:00
Ted Lemon
0b69dcc870 Change EOF to END_OF_FILE in tokenizer for enum compatibility. 2001-03-01 18:17:09 +00:00
Ted Lemon
9f8b2a7f67 - Apply huge numbers of editorial corrections, thanks to Mark Sanders
of Inktomi.
2001-03-01 17:10:38 +00:00
Ted Lemon
7c6a9da029 Fix up a couple of type errors 2001-03-01 07:25:47 +00:00
Damien Neil
311dbab63d Allow failover_state objects to have their local-state field to be changed
via OMAPI.  In addition, attempts to set other fields in a state object
will return success without modifying the object; this is very ugly, but
required to allow an open -> modify -> update sequence of OMAPI operations
to work properly.
2001-02-27 01:17:34 +00:00
Ted Lemon
c466184540 Fix up NetBSD/alpha build. 2001-02-26 22:21:15 +00:00
Ted Lemon
69c620f2eb Update copyright statements. 2001-02-22 22:54:26 +00:00
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
12fd607507 Fix up function declaration formatting. 2001-02-22 07:30:21 +00:00
Ted Lemon
793b7b9f4b Move dst functionality into seperate library 2001-02-22 07:27:14 +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
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
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
Ted Lemon
662df45ac0 Fix some trace-related ifdefs. 2001-02-12 21:59:31 +00:00
Ted Lemon
e42c382659 Get rid of lease -> hostname, which isn't used. 2001-02-12 21:10:10 +00:00