Ted Lemon
5b558f0df6
Move agent information option parsing out of common code.
1999-11-14 00:22:29 +00:00
Ted Lemon
c358155dc7
- Move parse_allow_deny out of common code and split option space
...
initialization.
1999-11-14 00:17:47 +00:00
Ted Lemon
83cc804d4e
Build stables.c
1999-11-14 00:08:31 +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
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
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
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
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
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
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
86bbcc1c28
Try to use client-supplied hostname as identifier in DHCPACK messages.
1999-10-21 14:56:05 +00:00
Ted Lemon
63f8b32340
Support ignore in boolean expression evaluations.
1999-10-21 03:09:13 +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
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
fe849040b5
Handle 'allow bootp' and 'allow booting' correctly. Unicast if possible.
1999-10-20 16:47:04 +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
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
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
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
6a4c4be871
Seperate public and private object declarations.
1999-10-08 03:43:15 +00:00
Ted Lemon
a3621e23eb
Fix up one mistake from last night's fixes.
1999-10-07 17:00:53 +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
77a5f87162
Fix up char * -> unsigned char * mismatches.
1999-10-07 02:14:10 +00:00
Ted Lemon
b74d3c6e68
Simplify the conditionals in the previous code.
1999-10-06 19:17:44 +00:00
Ted Lemon
67c5277066
Fix a glitch in the code to stuff statements into a host's group.
1999-10-06 19:07:58 +00:00
Ted Lemon
41a7cabfb7
Check for non-null group-name-hash before traversing it.
1999-10-05 18:44:27 +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