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
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
Ted Lemon
93016999f9
Add hook for tracing.
2001-02-12 20:51:26 +00:00
Ted Lemon
297c659c95
Document stash-agent-options.
2001-01-26 05:57:56 +00:00
Ted Lemon
de528760a8
Fix a memory leak. Only return agent options that were sent.
2001-01-26 05:57:35 +00:00
Ted Lemon
5b77c9109e
Update some obsolete declarations.
2001-01-25 21:55:54 +00:00
Ted Lemon
0feab0743f
Add log-facility.
2001-01-25 08:37:03 +00:00
Ted Lemon
6fb139d337
- Fix a core dump pointed out by Albert Herranz.
...
- Fix handling of agent options.
2001-01-25 08:36:36 +00:00
Ted Lemon
5f236d89ed
Don't use snprintf on platforms that don't have it.
2001-01-25 08:35:24 +00:00
Ted Lemon
43d5ca997f
Clean up some problems.
2001-01-25 08:34:57 +00:00
Ted Lemon
d83e416e5c
- Document log-facility parameter.
...
- Fix some typos pointed out on dhcp-server mailing list.
2001-01-25 08:34:13 +00:00
Ted Lemon
e1206f8ec6
Modernize dhcpd.conf example
2001-01-25 08:33:11 +00:00
Ted Lemon
ee5a7404e7
Add log_facility config parameter.
2001-01-25 08:32:57 +00:00