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
5deaeee113 Conditionalize bit types definition. 1999-11-14 00:07:28 +00:00
Ted Lemon
516cf43a98 Prototype the great agent options move. 1999-11-14 00:06:22 +00:00
Ted Lemon
0b7eed7a60 Move server-specific tables to stables.c 1999-11-14 00:04:27 +00:00
Ted Lemon
ed0a7998ad Add printer for not_equal expression. 1999-11-14 00:01:08 +00:00
Ted Lemon
7cb0f9f3b0 Move parse_allow_deny out of common code. 1999-11-13 23:53:57 +00:00
Ted Lemon
d9c0544ca9 - Move agent information option handling out of common code, since it's
server-specific.
1999-11-13 23:51:50 +00:00
Ted Lemon
6767b59234 - Add dummies for agent information option handling.
- Don't spin if /tmp missing or some other unexpected error happens when
  invoking client script.
1999-11-13 23:49:41 +00:00
Ted Lemon
e63601e7cd Make dummy parse_allow_deny. Allow empty request lists. 1999-11-13 23:46:46 +00:00
Ted Lemon
ccbdce1467 - Delete on_expiry events when lease is released, regardless of whether
there's a release event.
- If the lease being superseded is the next in a pool to expire, clean that
  up before superseding.
- Also, if the next lease to expire in a pool expires at the same time as
  the current lease, make sure that both expire, not just one.
1999-11-12 17:21:28 +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
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