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

1648 Commits

Author SHA1 Message Date
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
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