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

146 Commits

Author SHA1 Message Date
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
Ted Lemon
43f23dcc93 - Pass packet to release_lease (Brian Murrell).
- Don't release leases in one-lease-per-client code if they've already
  expired (Shaun Clowes).
1999-10-05 02:46:17 +00:00
Ted Lemon
a05b1425f6 - Move handling of on_release hooks and nsupdate to release_lease().
- If one-lease-per-client is true, release the other lease even if it
  hasn't yet expired.
1999-10-05 00:04:43 +00:00
Ted Lemon
3db5bf9c4f Fix one-lease-per-client. 1999-10-04 23:51:45 +00:00
Ted Lemon
4164f19682 Fix spelling error. 1999-10-01 03:25:24 +00:00
Ted Lemon
e2c5cba215 Move locate_network here, since it's server-specific. 1999-09-28 23:58:17 +00:00
Ted Lemon
ed2529e5bf Get rid of any 'on' statements on a lease before running the in-scope statements. 1999-09-22 17:30:33 +00:00
Ted Lemon
0085542655 Fix some lease time problems. Fix subclass permit problem. 1999-08-19 18:59:13 +00:00
Ted Lemon
ca1c700e43 - Rototill expression evaluation function prototypes.
- Hang onto the incoming packet so that it can be used in dhcp_reply when
  cons_options is called.
1999-07-31 18:08:28 +00:00
Ted Lemon
9e0e9ed858 - Remove NUL from end of host-name option after checking it, so that
host-name can reliably be used in concat expressions.

  (From Brian Murrell)
1999-07-21 14:30:28 +00:00
Ted Lemon
069e9f4c15 Brian Murrel's latest dns update implementation - more programmability. 1999-07-19 01:15:22 +00:00
Ted Lemon
6c8a5472ca Add support for 'on commit' and (partially) 'on release'. 1999-07-18 19:39:14 +00:00
Ted Lemon
3175ee907c Changes to make builds work on HP-UX with ANSI compiler. 1999-07-13 18:00:22 +00:00
Ted Lemon
daa1b24f96 - Compute max-lease-time outside of conditional so that we always have
a value for it.
1999-07-06 20:35:54 +00:00
Ted Lemon
71df44f55a Use limited_broadcast global instead of INADDR_BROADCAST. 1999-07-06 17:09:03 +00:00
Ted Lemon
da38df1433 Pervasive changes to support leased_address, reverse and binary_to_ascii. 1999-07-02 20:58:48 +00:00
Ted Lemon
15eda24826 In one-lease-per-client, don't re-release expired leases. 1999-07-02 17:47:42 +00:00