2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

1205 Commits

Author SHA1 Message Date
Ted Lemon
64e1dc1d5f Fix up class matching code. 1998-11-09 02:46:19 +00:00
Ted Lemon
74a2049e09 Fix up matching code and add debugging for it. 1998-11-06 03:25:45 +00:00
Ted Lemon
b3f15965cc Classify all incoming dhcp packets. Process class scopes. 1998-11-06 02:59:11 +00:00
Ted Lemon
de94ca7269 Add new classes to database after parsing them. Fix some miscellaneous bugs. 1998-11-06 02:58:17 +00:00
Ted Lemon
1ffcdd2a19 Don't test for abandoned lease if we didn't find a lease. Don't try to evaluate an option cache if we didn't find it. 1998-11-06 01:04:32 +00:00
Ted Lemon
028a8588da When making list of IP addresses or hostnames, account for the first expression on the list. 1998-11-06 00:31:08 +00:00
Ted Lemon
8d44908072 Add agent option support. 1998-11-06 00:17:12 +00:00
Ted Lemon
6f8fb41f3b Move to reference-based expression allocation. 1998-11-06 00:16:52 +00:00
Ted Lemon
4af075a237 Do data expression evaluation. 1998-11-06 00:16:22 +00:00
Ted Lemon
6baee43250 Add relay agent information option arg to cons_options call. 1998-11-06 00:15:51 +00:00
Ted Lemon
71498466f8 Minor documentation clarification on maximum lease time handling. 1998-11-05 18:57:46 +00:00
Ted Lemon
23b217251f Add command-line argument to set pid file name. 1998-11-05 18:56:38 +00:00
Ted Lemon
6603eed953 Oops, fix a conflict that was committed in previous revision. 1998-11-05 18:56:15 +00:00
Ted Lemon
5d25508cf5 Use evaluation-based option handling 1998-11-05 18:54:55 +00:00
Ted Lemon
94ab0b3be1 Add depend target 1998-10-22 04:50:29 +00:00
Ted Lemon
6fdff3b8eb Don't write leases that contain non-printable or whitespace characters. 1998-08-05 19:32:20 +00:00
Ted Lemon
02361a184b If there's another server running, refuse to run. 1998-07-10 04:52:25 +00:00
Ted Lemon
b13b05da07 Update server-identifier documentaiton. 1998-06-26 21:05:58 +00:00
Ted Lemon
45d5370c5c Document events that cause leases to be written.
Document lease time zones.
Further document abandoned leases.
1998-06-25 22:56:38 +00:00
Ted Lemon
c54885bd2d If a client REQUESTs an abandoned lease, reclaim it. 1998-06-25 21:24:23 +00:00
Ted Lemon
b1dd98c948 Move a lot of packet discard code into ack_lease(), after we've evaluated the statements associated with a packet. Use new-style option processing. No more explicit user/vendor class support. Revamp lease time processing. Get client identifier directly from host declaration. 1998-06-25 03:56:24 +00:00
Ted Lemon
ece6ea338c Get rid of root group defaults. Merge trees into expressions. Allow host statements in class declarations (explicitly declaring a host to be in a specific class). Server universe declarations handled as statements. parse_allow_deny now creates statements. Grandfather old-style user and vendor class declarations. Add support for spawning classes. Can't flag dynamic bootp anymore. Move parse_ip_addr_or_hostname into common code. tree_cache -> option_cache. Move option parameter parsing into common parser. Put expression parser in common code. 1998-06-25 03:51:59 +00:00
Ted Lemon
adb7ed1a7e match_expr -> expression. Move expression evaluator into tree.c. Add find_class function. 1998-06-25 03:42:18 +00:00
Ted Lemon
ef0afca963 Convert to using executable statements instead of old-style options. 1998-06-25 03:41:03 +00:00
Ted Lemon
86941a09d3 Move option name parsing into its own function. Use parse_cshl to parse colon-seperated hexadecimal lists. Add match expression parsing. 1998-04-20 18:05:19 +00:00
Ted Lemon
0512966142 Carry some data structure changes across from parser. Nuke named hash stuff. 1998-04-20 18:03:33 +00:00
Ted Lemon
402e5f87d2 Initialize client classification system in main(). 1998-04-19 23:35:26 +00:00
Ted Lemon
5941275aac Do client classification. If user supplies a dhcp-lease-time or related option, print a warning when issuing a lease. 1998-04-19 23:34:43 +00:00
Ted Lemon
07378a2a62 Support for classifying clients. 1998-04-19 23:24:48 +00:00
Ted Lemon
38b1978d0e Add class.c 1998-04-19 23:24:28 +00:00
Ted Lemon
b41e78641f Interactive client data structures for DHCP server. 1998-04-09 05:19:26 +00:00
Ted Lemon
cdd70b8712 Add min-lease-time, min-secs and use-lease-addr-for-default-route. Allow empty option declarations. 1998-04-09 04:57:46 +00:00
Ted Lemon
2342aee908 Start interactive client 1998-04-09 04:47:46 +00:00
Ted Lemon
421563ea10 Don't respond to requests that are newer than a configured number of seconds. Enforce a minimum lease time, if specified. If a dhcp-server-identifier option has been specified, use that instead of coming up with one from the shared_network structure. Allow the routers option to be set to the client's address. Be more clever about dealing with duplicate leases. 1998-04-09 04:41:52 +00:00
Ted Lemon
59b85ebd15 Add min-lease-time, min-secs and use-lease-addr-for-default-route. Allow empty option declarations. 1998-04-09 04:38:24 +00:00
Ted Lemon
fc1ac264da Add dhcpdi.c 1998-04-09 04:37:15 +00:00
Ted Lemon
48984237a1 If we happen across an abandoned lease when trying to find a lease to allocate, try using the abandoned lease. If the client asks for a lease on one address, but we find another lease that's also assigned to it, make every effort to free the duplicate lease, since a client can't have two leases on the same network at the same time. 1998-03-17 18:14:51 +00:00
Ted Lemon
00e9db0efc Take out shared-network statement to avoid confusion. 1998-03-17 17:35:55 +00:00
Ted Lemon
f3c3d67454 Allow unnamed host declarations. 1998-03-17 06:20:51 +00:00
Ted Lemon
e044f73fef Don't start dns for now. 1998-03-17 06:20:11 +00:00
Ted Lemon
086032ce8d Make install directories from top down. 1998-03-17 06:13:36 +00:00
Ted Lemon
a7822eac77 Declare arguments that can be promoted so that the compiler's behaviour doesn't change depending on whether or not it follows ANSI. Fix signed vs. unsigned char discrepencies. 1998-03-16 06:19:46 +00:00
Ted Lemon
c7609f47b8 Update copyright 1998-03-16 06:18:16 +00:00
Ted Lemon
69858972fd Clean up unsigned char vs. signed char discrepencies. 1998-03-16 06:17:37 +00:00
Ted Lemon
338303a442 Prevent some type incompatibility warnings. 1998-03-15 21:16:39 +00:00
Ted Lemon
c0a8b01162 Don't invalidate a lease if we receive an ICMP echo reply for it when it has a valid lease. This can happen if some other user on the host pings the client after we've assigned it an address. 1998-03-15 20:47:27 +00:00
Ted Lemon
3f165a4027 Add a comment to document the non-presence of a Y2K bug, since people are getting paranoid about that. 1998-03-15 20:46:22 +00:00
Ted Lemon
0a3476077b Add dhcp_max_agent_option_packet_length. 1998-02-06 01:10:28 +00:00
Ted Lemon
3c893bb6ce Adjust cons_options calls. Copy the entire chaddr field even if hlen indicates it's shorter. Keep track of Relay Agent Information options. 1998-02-06 01:08:38 +00:00
Ted Lemon
d8ae14c614 Copy the entire chaddr field, even if the length is shorter than the total. This works around a bug in certain Microsoft clients. If the options aren't valid, just copy the option buffer from the incoming packet into the outgoing packet. This lets NeXT boxes boot. Adjust calling conventions for cons_options. 1998-02-06 01:05:39 +00:00