Ted Lemon
bfe2d221d7
- Fix some pedantic allocation problems.
...
- Fix handling of agent options.
- Fix handling of giaddr debugging features.
2001-01-25 08:32:26 +00:00
Ted Lemon
f8f3494034
- Don't respond to DHCPDISCOVERS when we're not responding.
...
- Don't load balance RENEWING and REBINDING clients.
2001-01-19 11:03:56 +00:00
Ted Lemon
174f5ef554
Add a ping-check parameter. Pass old lease to ddns_updates.
2001-01-16 23:57:23 +00:00
Ted Lemon
797d58b313
Don't say (not authoritative) when we are.
2001-01-08 08:23:21 +00:00
Ted Lemon
bf9d9d2720
If ddns-updates is not set, default to enabled.
2001-01-04 00:15:50 +00:00
Ted Lemon
4f76762762
- If we receive a dhcp-server-identifier option in a DHCPREQUEST, print it
...
in the log.
- Fix abandoned lease reclamation.
- Do correct reference counting when doing one-lease-per-client.
2000-12-28 23:28:17 +00:00
Damien Neil
b992d7e23d
DDNS implementation rewrite. DDNS should now operate according to
...
<draft-ietf-dhc-dhcp-dns-12.txt>.
common/options.c, common/tables.c, includes/dhcp.h:
Split the fqdn.name option into fqdn.hostname and fqdn.domainname.
includes/dhcpd.h, server/Makefile.dist, server/ddns.c, server/dhcp.c,
server/mdb.c, server/stables.c:
Added a new file (server/ddns.c) containing the DDNS updates code.
This file exports two functions: ddns_updates() and ddns_removals().
ddns_updates() is called when a lease is granted, and ddns_removals()
is called when the lease expires or is released.
server/dhcpd.c:
Remove the previous DDNS update code, and add default code for the
ddns-hostname, ddns-domainname, ddns-ttl, and ddns-rev-domainname
server options.
2000-12-11 18:56:45 +00:00
Ted Lemon
c6708cba5c
Remember lease flags when doing the commit routine.
2000-12-05 07:21:31 +00:00
Ted Lemon
1d8b8d992a
Restore code that was removed for debugging and accidentally committed.
2000-11-30 14:04:06 +00:00
Ted Lemon
9e3831637a
Pass client state to eval functions. Lots of other stuff.
2000-11-28 23:27:24 +00:00
Ted Lemon
bca944231b
Disable unicast broadcast hack, but leave a place for it to be configured.
2000-10-13 18:58:12 +00:00
Ted Lemon
9030b3137f
Get rid of all the special-case encapsulations.
2000-10-10 23:07:24 +00:00
Ted Lemon
86ec3f8cd4
Use lt -> scope, not lease -> scope, which is probably empty.
2000-09-14 12:15:33 +00:00
Ted Lemon
c76aff911e
- Put back the code that checks the server configuration for the
...
dhcp-max-message-size option, which was apparently lost in the
transition from 2.0 to 3.0.
2000-09-12 20:09:14 +00:00
Ted Lemon
3d789c2314
- Remove a bogus enhancement to lease NAK code.
...
- Always exit dhcprequest() through out: label.
2000-09-08 01:23:43 +00:00
Ted Lemon
3acf1dca2e
Don't even try to do billing on static leases.
2000-09-01 18:30:36 +00:00
Ted Lemon
d642c2a6ac
Get rid of an unnecessary test.
2000-09-01 16:57:44 +00:00
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