2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-25 11:27:31 +00:00

279 Commits

Author SHA1 Message Date
Ted Lemon
d9eefc5dec Mass commit for Brian Murrell. 1999-11-20 18:36:32 +00:00
Ted Lemon
5b558f0df6 Move agent information option parsing out of common code. 1999-11-14 00:22:29 +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
a1e9fabd8e Make sure we are responding to a DHCPREQUEST before dissoociating a lease. 1999-11-07 20:32:03 +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
86bbcc1c28 Try to use client-supplied hostname as identifier in DHCPACK messages. 1999-10-21 14:56:05 +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
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
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
ab58ff49e0 Fix up args to printf-like functions (thanks to Pedro Ribiero). 1999-10-12 16:00:34 +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
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
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
Ted Lemon
43f23dcc93 - Pass packet to release_lease (Brian Murrell).
- Don't release leases in one-lease-per-client code if they've already
  expired (Shaun Clowes).
1999-10-05 02:46:17 +00:00
Ted Lemon
a05b1425f6 - Move handling of on_release hooks and nsupdate to release_lease().
- If one-lease-per-client is true, release the other lease even if it
  hasn't yet expired.
1999-10-05 00:04:43 +00:00
Ted Lemon
3db5bf9c4f Fix one-lease-per-client. 1999-10-04 23:51:45 +00:00
Ted Lemon
4164f19682 Fix spelling error. 1999-10-01 03:25:24 +00:00
Ted Lemon
e2c5cba215 Move locate_network here, since it's server-specific. 1999-09-28 23:58:17 +00:00
Ted Lemon
ed2529e5bf Get rid of any 'on' statements on a lease before running the in-scope statements. 1999-09-22 17:30:33 +00:00
Ted Lemon
0085542655 Fix some lease time problems. Fix subclass permit problem. 1999-08-19 18:59:13 +00:00
Ted Lemon
ca1c700e43 - Rototill expression evaluation function prototypes.
- Hang onto the incoming packet so that it can be used in dhcp_reply when
  cons_options is called.
1999-07-31 18:08:28 +00:00
Ted Lemon
9e0e9ed858 - Remove NUL from end of host-name option after checking it, so that
host-name can reliably be used in concat expressions.

  (From Brian Murrell)
1999-07-21 14:30:28 +00:00
Ted Lemon
069e9f4c15 Brian Murrel's latest dns update implementation - more programmability. 1999-07-19 01:15:22 +00:00
Ted Lemon
6c8a5472ca Add support for 'on commit' and (partially) 'on release'. 1999-07-18 19:39:14 +00:00
Ted Lemon
3175ee907c Changes to make builds work on HP-UX with ANSI compiler. 1999-07-13 18:00:22 +00:00
Ted Lemon
daa1b24f96 - Compute max-lease-time outside of conditional so that we always have
a value for it.
1999-07-06 20:35:54 +00:00
Ted Lemon
71df44f55a Use limited_broadcast global instead of INADDR_BROADCAST. 1999-07-06 17:09:03 +00:00
Ted Lemon
da38df1433 Pervasive changes to support leased_address, reverse and binary_to_ascii. 1999-07-02 20:58:48 +00:00
Ted Lemon
15eda24826 In one-lease-per-client, don't re-release expired leases. 1999-07-02 17:47:42 +00:00
Ted Lemon
e8e6a30f53 Support one-lease-per-client. 1999-07-02 17:10:51 +00:00
Ted Lemon
e3b5f7f8a0 Fix a parenthetification error. 1999-07-01 20:02:58 +00:00
Ted Lemon
45378e45e1 Name server update hooks. 1999-07-01 19:58:12 +00:00
Ted Lemon
6dadd61044 Support always-broadcast flag. 1999-06-22 13:28:12 +00:00
Ted Lemon
fa661adb98 Do classing for BOOTP clients as well as DHCP clients. 1999-06-10 00:36:27 +00:00
Ted Lemon
0af446bc5f - Fix up cases where server option lookups were being done in the DHCP option
space.
- Correct handling of abandoned leases.
1999-05-27 14:56:51 +00:00
Ted Lemon
431693d164 Prioritize user-declared parameter request list _above_ client-supplied list. 1999-05-07 17:40:26 +00:00
Ted Lemon
cdc336ab50 - In DHCPINFORM, allow for buggy clients that do not set ciaddr by
using the IP source address from the IP header if ciaddr is zero.
- Fix some memory allocation botches.
- Use parameter request list option from scope if it is present and
  client didn't send one.
- Copy ciaddr from incoming packet to outgoing packet.
- Remember that we got the requested-address and server-identifier
  options in option state.
- Allow for RFC1541 clients that set ciaddr when REQUESTING by
  checking server-identifier option as well as ciaddr before
  unicasting.
1999-05-06 20:35:48 +00:00
Ted Lemon
46904800ec - Reference siaddr from state structure in ack_lease, since raw packet
hasn't been instantiated yet.
1999-04-23 23:47:51 +00:00
Ted Lemon
10553ccb84 - Do not respond with NAK if ciaddr is set and imputed network doesn't
match, since ciaddr means client is unicasting using IP routing.
- Support DHCPINFORM even on unknown networks.
- Fix up some invocations of evaluate_option_cache that used
  post-scope-execution option state rather than packet option state as
  input for evaluations of options from post-scope-execution option
  state.
- Add support for site-defined option spaces.
- Compute boot file server prior to freeing options used in computing
  it.   May fix a core dump that has been reported but that I haven't
  seen.
- Make pool scope less specific than class scope.
- Fix some invocations of execute_statements_in_scope that were
  incorrectly passing output options where they should have passed
  input options.
- Enforce maximum lease length after applying default lease time.
- Compute value of bootfile server IP address in ack_lease instead of
  dhcp_reply, so that expressions using contents of packet can work.
1999-04-23 23:17:52 +00:00
Ted Lemon
e77892f581 Support DHCPINFORM. 1999-04-12 22:18:58 +00:00
Ted Lemon
951323fef5 - Support new generalized option_state usage.
- Do vendor encapsulation if configured.
1999-04-05 16:46:13 +00:00
Ted Lemon
2540af046c Don't log winning DHCPREQUESTs twice.
Only pay attention to min_secs when sending DHCPOFFER.
1999-03-25 22:07:54 +00:00
Ted Lemon
c5b0f52958 Sanitize Solaris build. 1999-03-16 06:37:55 +00:00
Ted Lemon
f39b6e0089 Update license. 1999-03-16 05:50:46 +00:00
Ted Lemon
531fa185b4 Fix up references to ciaddr and yiaddr. 1999-03-13 18:58:00 +00:00
Ted Lemon
566ecd40a6 Fix up unicast response code. 1999-03-13 18:26:05 +00:00