Ted Lemon
0142936f90
Tweak load balance handling.
2000-08-31 04:40:55 +00:00
Damien Neil
1b234d446f
Finished up function call support.
2000-08-28 19:36:39 +00:00
Ted Lemon
bb0b00a5e8
Lots of changes to clean up handling of various failover states.
2000-08-24 18:49:34 +00:00
Ted Lemon
39ae502747
- Do the commit using the newly-computed lease parameters, not the old
...
parameters.
2000-08-15 23:43:02 +00:00
Damien Neil
471f5c39d7
Removed a spurious & which was causing attempts to dereference a 0 pointer.
2000-08-12 00:45:40 +00:00
Ted Lemon
6ceb9118e9
Reference count binding scopes. Align IP headers on output.
2000-07-27 09:03:08 +00:00
Ted Lemon
d73e855da2
Fix handling of client-hostname.
2000-07-06 10:16:54 +00:00
Ted Lemon
8023ece86a
For non-failover pools, always allocate off the free lease list.
2000-06-30 00:48:55 +00:00
Ted Lemon
5b01171a9d
- Clean up some edge cases when a lease is requested that's shorter than
...
mclt or tsfp.
2000-06-12 22:20:43 +00:00
Ted Lemon
9efd3acc65
- Don't force the lease to be default-lease-time seconds long if
...
the client requested a lease shorter than MCLT of a failover peer.
2000-06-08 21:22:48 +00:00
Ted Lemon
dbc855c920
Fix a couple of core dumps. Don't DHCPNAK when peer haslease.
2000-06-06 23:59:18 +00:00
Ted Lemon
007e3ee4df
Rework DHCP lease state handling to be compatible with failover protocol.
2000-06-02 21:27:21 +00:00
Ted Lemon
165bce70b2
Fix up various platform-specific errors.
2000-05-17 16:04:26 +00:00
Ted Lemon
20916cae75
- Fix all the OMAPI objects in the DHCP server and client that weren't
...
being correctly reference-counted.
- Make and use object-specific allocators.
- Add reference/dereference support to hash functions and to timeout
functions.
2000-05-16 23:03:49 +00:00
Ted Lemon
8c8e27c53e
Implement pool request and response so that secondary can operate.
2000-05-04 18:58:16 +00:00
Ted Lemon
3322568782
- Add argument to allocate_lease to notice if the failover peer has
...
all the leases.
- Improve some error messages.
- Don't respond with leases owned by peer.
2000-05-03 23:03:50 +00:00
Ted Lemon
f39c1b92aa
Don't be so eager to respond to DHCPREQUEST messages with failover.
2000-05-03 06:29:15 +00:00
Ted Lemon
150cedd0a1
Add support for the load balancing portion of the failover protocol.
2000-05-02 00:00:08 +00:00
Ted Lemon
1a634d5638
Define temporary subnet selection option code for testing.
2000-04-08 01:15:50 +00:00
Ted Lemon
68f5590808
Make universe_hash using new_hash.
2000-03-18 03:34:11 +00:00
Ted Lemon
49733f31d3
Go back to the BSD license.
2000-03-17 04:00:32 +00:00
Ted Lemon
164f9c7e2f
Fix corner case where REBIND would be ignored rather than NAKed.
2000-03-07 02:50:45 +00:00
Ted Lemon
4d0aaa1776
- Don't call option_allocate without zeroing pointer.
...
- Fix two chaddr uses that hadn't been made current.
2000-03-06 23:33:52 +00:00
Ted Lemon
c99a6692f2
Define scratch option cache pointer before use.
2000-02-07 18:58:03 +00:00
Ted Lemon
5bc2e1f204
Figure out MS_NULL_TERMINATION _really_ early.
2000-02-07 05:12:20 +00:00
Ted Lemon
adeee5a53d
Make sure the lease pointer gets set to zero.
2000-02-02 20:38:47 +00:00
Ted Lemon
fb6297b12b
- In order to satisfy the HP C compiler, make a (possibly malloc'd) copy
...
of the host UID when mocking up a lease.
2000-01-31 23:43:11 +00:00
Ted Lemon
ba45029492
Fix an erroneous option cache dereference.
2000-01-27 22:21:32 +00:00
Ted Lemon
4bd8800e89
Fix compilation errors introduced in the last set of checkins.
2000-01-26 14:56:18 +00:00
Ted Lemon
12c9957e5d
New malloc debug scheme. Support variable scoping.
2000-01-25 01:36:29 +00:00
Ted Lemon
df598b3e4d
Add support for NetWare/IP encapsulated option.
2000-01-08 01:47:37 +00:00
Ted Lemon
2cbc0e484d
Add more pieces of failover support. Support new struct hardware.
2000-01-05 18:16:36 +00:00
Ted Lemon
fdd46b531b
- Fix up all the log messages that I broke in the previous commit (thanks
...
to Brian Murrell for QCing this code).
1999-11-23 19:08:24 +00:00
Ted Lemon
d9eefc5dec
Mass commit for Brian Murrell.
1999-11-20 18:36:32 +00:00
Ted Lemon
5b558f0df6
Move agent information option parsing out of common code.
1999-11-14 00:22:29 +00:00
Ted Lemon
ffdcd1275a
Don't prematurely expire a lease just because a client starts out in INIT.
1999-11-12 17:17:16 +00:00
Ted Lemon
a1e9fabd8e
Make sure we are responding to a DHCPREQUEST before dissoociating a lease.
1999-11-07 20:32:03 +00:00
Ted Lemon
1b87110042
- Reply to remote_port if giaddr is 127.0.0.1, so that relay debugging can
...
be done using lo0.
1999-10-24 19:38:53 +00:00
Ted Lemon
c398d02cf0
Fix a null pointer dereference.
1999-10-24 18:55:37 +00:00
Ted Lemon
db2ed553d5
Fix an uninitialized pointer dereference.
1999-10-24 18:54:11 +00:00
Ted Lemon
86bbcc1c28
Try to use client-supplied hostname as identifier in DHCPACK messages.
1999-10-21 14:56:05 +00:00
Ted Lemon
1965492298
- Check for SV_DECLINES boolean before accepting a DHCPDECLINE.
...
- Fix some mistakes in completion of evaluate_boolean_option_cache
conversion.
- Support ignorep return value in boolean evaluations.
1999-10-21 02:42:57 +00:00
Ted Lemon
d846dd048d
- Add an 'allow/deny duplicates' statement that, if denied, prevents a
...
client with a host declaration that matches by hardware address only
from getting more than one lease through the use of that host
declaration by releasing any other such leases.
1999-10-20 20:54:42 +00:00
Ted Lemon
ddb4c2ace3
Clean up some of the boolean config option support.
1999-10-20 16:52:25 +00:00
Ted Lemon
73a4b6e51d
- Make DHCPRELEASE release the lease corresponding to the IP address in
...
all cases, and not release anything if the IP address can't be
determined.
1999-10-15 15:14:31 +00:00
Ted Lemon
ab58ff49e0
Fix up args to printf-like functions (thanks to Pedro Ribiero).
1999-10-12 16:00:34 +00:00
Ted Lemon
e89a5afe91
- Make the error messages generated based on authority more authoritative.
...
- Don't respond to DHCPINFORM messages on subnets for which we are not
authoritative.
1999-10-08 22:21:34 +00:00
Ted Lemon
e703795db4
Fix some signed/unsigned pointer incompatibilities for Digital Unix.
1999-10-07 06:42:53 +00:00
Ted Lemon
b1b7b521fe
Get a clean compile with all known gcc warnings.
1999-10-07 06:36:35 +00:00
Ted Lemon
e0bec34702
- Fix think-o in one-lease-per-client code. Special thanks to Shawn
...
Clowes for his persistance in pointing out this error in the face of
my stubborn failure to see what he was talking about!
1999-10-05 03:25:38 +00:00