2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00
Commit Graph

1876 Commits

Author SHA1 Message Date
Ted Lemon
bd8734b59e Add IGNORE. 1999-10-21 03:08:00 +00:00
Ted Lemon
605a8b6d5c Document duplicates, declines and ignores. 1999-10-21 02:56:20 +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
e13ff8b271 Add (and use) ignore option to boolean evals. 1999-10-21 02:38:06 +00:00
Ted Lemon
3d20133836 Add DECLINES 1999-10-21 02:36:14 +00:00
Ted Lemon
4c02675101 Add SV_DUPLICATES and SV_DECLINES 1999-10-21 02:36:04 +00:00
Ted Lemon
cc5bd211bf Add support for an ignore return value to boolean option evaluators. 1999-10-21 02:35:40 +00:00
Ted Lemon
2e82278cd3 Add 'declines' server option. 1999-10-21 02:35:06 +00:00
Ted Lemon
0776fd12c1 Parse DECLINES. Add a third boolean option: ignore 1999-10-21 02:34:32 +00:00
Ted Lemon
1038f739ac Add DECLINES. 1999-10-21 02:33:40 +00:00
Ted Lemon
337b3e5296 Support allow/deny duplicates. 1999-10-20 20:55:48 +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
d82813f833 - Fix a stupid bug in the generic code that would cause values to be
stored off the end of the value array, resulting in an invalid
  argument return.
1999-10-20 20:09:17 +00:00
Ted Lemon
01e20b9e11 Fix still more paste-o's. 1999-10-20 19:12:32 +00:00
Ted Lemon
ddb4c2ace3 Clean up some of the boolean config option support. 1999-10-20 16:52:25 +00:00
Ted Lemon
fe849040b5 Handle 'allow bootp' and 'allow booting' correctly. Unicast if possible. 1999-10-20 16:47:04 +00:00
Ted Lemon
8cc4d85739 Dereference unused expression structs when parse fails. 1999-10-20 16:43:35 +00:00
Ted Lemon
0a1c1f11df Document lease-file-name and pid-file-name config parameters. 1999-10-19 15:40:07 +00:00
Ted Lemon
b62e441811 Support pid-file-name and lease-file-name config file parameters. 1999-10-19 15:39:23 +00:00
Ted Lemon
e857fa8cee - Set O_NONBLOCK on incoming connections (we were already doing this
for outgoing connections).
1999-10-19 15:37:08 +00:00
Ted Lemon
c936e8c172 - Fix buffer head/tail code.
- Correctly handle no more data and remote disconnect.
1999-10-19 15:36:16 +00:00
Ted Lemon
abf550084b Initialize head of buffers in allocator, just to be sure. 1999-10-19 15:35:16 +00:00
Ted Lemon
88be0390f1 Get rid of broken BUFFER_BYTES_AVAIL macro, replace it with new macros. 1999-10-19 15:33:17 +00:00
Ted Lemon
94bf482e80 Add defines for SV_LEASE_FILE_NAME and SV_PID_FILE_NAME. 1999-10-19 15:32:32 +00:00
Ted Lemon
7b4f1c069a Compute arguments to packet operator correctly. 1999-10-19 15:31:40 +00:00
Ted Lemon
1a014e0b2d Add support for lease-file-name and pid-file-name config parameters. 1999-10-19 15:27:27 +00:00
Ted Lemon
b3d594dd31 Fix some more printf arguments. 1999-10-19 15:26:50 +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
0d124b6664 Send lease start and end time (Brian Murrell). 1999-10-15 12:34:18 +00:00
Ted Lemon
c7775a73f6 - Don't try to return values that aren't present (and thus dump core).
- Fix ordering of a series of conditionals involved in looking up
  hosts (Brian Murrell).
- Add debugging messages when adding and removing hosts (Brian Murrell).
1999-10-14 18:30:52 +00:00
Ted Lemon
309267f056 Set the type of each lease as it is allocated. 1999-10-14 18:27:38 +00:00
Ted Lemon
06feb756af - Don't try to look up an object if we didn't get a description with which
to do the lookup (since this would cause a core dump!).
1999-10-14 18:15:56 +00:00
Ted Lemon
0e603324d7 Take appropriate action when directed to send null data. 1999-10-14 18:09:48 +00:00
Ted Lemon
444dcb2b79 Automatically include result.h 1999-10-14 18:08:06 +00:00
Ted Lemon
e6e9b9e855 Test accessing of leases. 1999-10-14 18:06:56 +00:00
Ted Lemon
29dd6d5741 Add data_string_dereference function. 1999-10-14 18:03:16 +00:00
Ted Lemon
043eb4eaaf Declaration for data_string_dereference. 1999-10-14 18:03:01 +00:00
Ted Lemon
348beea1c5 Fix some line wrap errors and take out some debugging exits (Brian Murrell) 1999-10-14 18:01:27 +00:00
Ted Lemon
06afba54ec Correct printf argument type (Brian Murrell) 1999-10-14 18:00:46 +00:00
Ted Lemon
cbc6bf4b97 Correct printf argument type (Brian Murrell) 1999-10-14 17:47:54 +00:00
Ted Lemon
1b541aba32 - Undo an erroneous change that would have caused core dumps in case of
programming errors instead of allowing memory leaks.
1999-10-14 17:43:02 +00:00
Ted Lemon
1c0166794d Correct ordering of log arguments. 1999-10-14 17:40:05 +00:00
Ted Lemon
6f2e946022 Fix a core dump involving incorrect use of evaluate_data_expression. 1999-10-13 16:28:00 +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
a414e627d8 Add next_expiry pointer to pool structure. 1999-10-09 04:49:41 +00:00
Ted Lemon
05743349e6 Expire all outstanding unexpired leases after loading lease file on startup. 1999-10-08 22:29:52 +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
4bbb2b493b Implement lease expiry events. 1999-10-08 22:17:41 +00:00
Ted Lemon
013be24d6e Pass pointer to unsigned long, for portability to 64-bit architectures. 1999-10-08 17:28:09 +00:00
Ted Lemon
a804d24e26 Get rid of u_* declarations for portability. 1999-10-08 17:19:41 +00:00