2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00
Commit Graph

1717 Commits

Author SHA1 Message Date
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
98c83345a1 Fix a struct size problem on Linux/ARM32. 1999-11-11 16:10:59 +00:00
Ted Lemon
3107c7f9bb Zero out on_* statements before superseding lease with copied template. 1999-11-07 20:38:01 +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
96359f83fd - Open the database file for appending before expiring pools, in case leases
need to be rewritten during the expirating process.
1999-11-07 20:28:23 +00:00
Ted Lemon
166e63ebd7 Fix a couple of mistakes in handling parse errors. 1999-11-07 20:27:04 +00:00
Ted Lemon
2b965a4475 Add != operator. 1999-11-03 16:10:46 +00:00
Ted Lemon
78a33b8260 Don't log to stderr if -q is set. 1999-10-30 14:07:29 +00:00
Ted Lemon
a816cb178e Clean up a loophole in the code that sets up the pool expiry timer. 1999-10-28 15:53:05 +00:00
Ted Lemon
c4f749466f Don't log to stderr if -q flag is given. 1999-10-28 13:09:35 +00:00
Ted Lemon
f0b8a59f37 write() returns a signed integer... 1999-10-28 13:09:06 +00:00
Ted Lemon
494bf48827 Oops, fix typo. 1999-10-28 13:07:06 +00:00
Ted Lemon
b5fa877f8f Write 'never;' instead of 'infinite' for unlimited leases. 1999-10-28 13:02:24 +00:00
Ted Lemon
2616896572 Use the right expiry event. Count leases, hosts and groups written and log each. 1999-10-27 23:05:17 +00:00
Ted Lemon
6630cc801e Zero the correct buffer... 1999-10-26 16:56:34 +00:00
Ted Lemon
ea72047ec0 Add POINTER_DEBUG define. 1999-10-25 15:48:45 +00:00
Ted Lemon
c69dd0b5aa Include res_update.h for BIND 8.2.2 and later. 1999-10-25 15:15:35 +00:00
Ted Lemon
ade8a79a8e Fix a couple of const problems in a bogus way. 1999-10-25 15:14:52 +00:00
Ted Lemon
63c8c1dcf9 Allow for deleted host declarations in host hash. 1999-10-25 01:56:38 +00:00
Ted Lemon
394d5a3dc1 Clean up deleted vs. undeleted leases. 1999-10-25 01:55:40 +00:00
Ted Lemon
b86799bfcb - Set DYNAMIC flag in host decl if dynamic keyword is given, otherwise
set STATIC.
1999-10-25 01:52:52 +00:00
Ted Lemon
e96b71e15c Get rid of dynamic_hosts kludge - do host deletion like group deletion. 1999-10-24 23:27:52 +00:00
Ted Lemon
5d4afdbcd2 Fix Linux compiles. 1999-10-24 23:25:33 +00:00
Ted Lemon
a1b705e544 Fix Linux compile. 1999-10-24 23:23:41 +00:00
Ted Lemon
11373fb651 - Allow the user to specify giaddr on the command line, for testing.
- If giaddr is specified, and it's not INADDR_LOOPBACK, use port 67 as
  the source port and also listen on port 67, since we're pretending to
  be a relay agent, and not a client.
- Stagger the first renew by +/- 1/4 of a lease interval, to mitigate 9am
  syndrome.
- Stagger startup time by up to five seconds, to even out the startup load.
1999-10-24 19:44:15 +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
ad5ba2696f Use LFLAGS when linking test program. 1999-10-24 19:36:08 +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
3815154804 Add new_shared_network_interface function. 1999-10-24 17:19:46 +00:00
Ted Lemon
79931db300 Add support for interface keyword to subnet and shared-network decls. 1999-10-24 17:19:14 +00:00
Ted Lemon
086fce2188 Get rid of some returns that aren't reachable. 1999-10-24 17:18:43 +00:00
Ted Lemon
70984280a9 Prototype new_shared_network_interface. 1999-10-24 17:18:17 +00:00
Ted Lemon
deeef5295a Cast unsigned to signed for Solaris. 1999-10-24 17:17:51 +00:00
Ted Lemon
6255153ecb Bomb out when an interface matches two shared networks. 1999-10-24 17:17:22 +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
3330609cbb Define SHUT_RD if it's not already defined. 1999-10-21 12:32:45 +00:00
Ted Lemon
3e4618c479 Check result of open() for <0, not NULL. 1999-10-21 12:32:16 +00:00
Ted Lemon
c4906ac043 Fix some minor warnings. 1999-10-21 12:31:53 +00:00
Ted Lemon
63f8b32340 Support ignore in boolean expression evaluations. 1999-10-21 03:09:13 +00:00
Ted Lemon
2db25842e8 Fix a couple of silly mistakes. 1999-10-21 03:08:38 +00:00
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