2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 05:47:45 +00:00

904 Commits

Author SHA1 Message Date
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
60dab80975 Take dhcp packet as an argument instead of converting. Limit length of hardware address. 1998-06-25 03:39:04 +00:00
Ted Lemon
50d92f585a Merge tree struct into expression struct. tree_cache -> option_cache. Move data_string and expression structs from dhcpd.h. Fix up dns_host_entry struct. Add a per-universe set function. 1998-06-25 03:35:31 +00:00
Ted Lemon
f442d71842 Add ADD, BREAK, ELSE, ELSIF, IF, MATCH, SUBCLASS, SPAWN and WITH tokens 1998-06-25 03:32:58 +00:00
Ted Lemon
2b9b6ff729 Add statement.h include file. Move data_string to tree.h. Add option_state structure, unifying values from all option universes into one structure. Lease_state structure now has option_state instead of options and agent_options. Group structure now has executable statements i. Configuration state not appropriate for DHCP option universe now in server option universe rather than explicitly declared and specially ahndled. Define names of server state options. Define a default default lease time, default min lease time and default max lease time. Put client identifier in host_decl structure. Move expression struct to tree.h. match_expr -> expression. Fix/update prototypes. 1998-06-25 03:25:02 +00:00
Ted Lemon
33e712eab3 Update all the names to reflect the unification of expression evaluation and dns lookup evaluation. Add expression evaluator. 1998-06-25 03:10:32 +00:00
Ted Lemon
383a87e2e3 Add server option universe. Install dhcp option universe set function. 1998-06-25 03:09:09 +00:00
Ted Lemon
be6be08d66 Nive parse-ip-addr-or-hostbname into common parser. Add executable statement parser. Add xpression parser. Unify the option statement parsers. Make the option token parser its own function. 1998-06-25 03:07:51 +00:00
Ted Lemon
b480793829 cons_options now takes option_state struct instead of options and agent_options args. Fix bufgfer overflow attack in parameter request list. Change over to expression evaluation code instead of ds tree evaluation code. do_packet now takes a pointer to a dhcp packet instead of a pointer to a character buffer. This fixess another possible overflow. Add per-option-universe lookup and set functions. 1998-06-25 03:02:50 +00:00
Ted Lemon
6aba7542e3 Lose special case code for vendor and user classes. Get client identifier in host declaration off of per-host executable statement list rather than now-nonexistent option list. Fixed address is now an expression, not a tree. Take out host reverse lookup code - it doesn't belong here. Fix botch in dangling lease code. 1998-06-25 02:59:15 +00:00
Ted Lemon
34436cc3b0 Clear out unused portion of icmp packet. 1998-06-25 02:55:56 +00:00
Ted Lemon
ca0e3669b8 Read DHCP packet into aligned buffer and pass it as a struct pointer instead of a character buffer. 1998-06-25 02:55:16 +00:00
Ted Lemon
52cdb300e7 Add ADD, BREAK, ELSE, ELSIF, IF, MATCH, SUBCLASS and WITH tokens 1998-06-25 02:54:29 +00:00
Ted Lemon
4b1abd502c tree -> expression. tree_cache -> option_cache. New destructors for dhcp_packet and packet structures. 1998-06-25 02:53:00 +00:00
Ted Lemon
74c54b65db Add statement executor module 1998-06-25 02:51:49 +00:00
Ted Lemon
eb77797973 Add -Wno-char-subscript for Solaris. Update copyright. 1998-06-25 02:51:14 +00:00
Ted Lemon
cff4cc0a70 Move option name parsing to its own function. 1998-04-20 18:05:44 +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
80fcef916b Add new tokens for match expressions. 1998-04-20 18:02:40 +00:00
Ted Lemon
8bdd4d0289 Move parse.c declarations under their own filename. Add function declarations for expression parsing. 1998-04-20 18:02:29 +00:00
Ted Lemon
4761e04be5 Add parse_option_name and parse_cshl functions. 1998-04-20 18:01:32 +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
8b204155c6 Add a lookup function to the option universe structure. 1998-04-19 23:23:34 +00:00
Ted Lemon
ff40445531 Add the concept of named hashes. 1998-04-19 23:22:20 +00:00
Ted Lemon
102ee7e9d4 Add prototypes and structure declarations for client classification 1998-04-19 23:21:54 +00:00
Ted Lemon
e9a37ce5d0 Add agent option universe. 1998-04-19 23:20:06 +00:00
Ted Lemon
f4c340534d Add dhcp_option_lookup and agent_option_lookup functions. 1998-04-19 23:19:14 +00:00
Ted Lemon
814bd3509f Interactive client for DHCP servers. 1998-04-09 05:20:14 +00:00
Ted Lemon
b41e78641f Interactive client data structures for DHCP server. 1998-04-09 05:19:26 +00:00
Ted Lemon
2367591ef2 Interactive client for browsing internal database. 1998-04-09 05:18:56 +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
d46749b15d Check to see if INADDR_LOOPBACK is defined. 1998-04-09 04:36:45 +00:00
Ted Lemon
58dfdef0ea Fix copyright 1998-04-09 04:36:25 +00:00
Ted Lemon
2126779147 Add min-lease-time, min-secs and use-lease-addr-for-default-route 1998-04-09 04:36:07 +00:00
Ted Lemon
29f5e9ce3c New prototypes and types for interactive client 1998-04-09 04:35:50 +00:00
Ted Lemon
6f76b6ac67 Allow for null trees. 1998-04-09 04:31:59 +00:00
Ted Lemon
05c680bf8f No message for dissociate_lease(). 1998-04-09 04:30:41 +00:00
Ted Lemon
fb1989a8aa Check HAVE_SIN_LEN in sockaddr_dl code. Kludge hardware address length for now if HAVE_SIN_LEN isn't set. Return pointer to struct proto from add_protocol. 1998-04-09 04:30:00 +00:00
Ted Lemon
8028ab1d09 Add min-lease-time, min-secs and use-lease-addr-for-default-route 1998-04-09 04:28:20 +00:00
Ted Lemon
3b08cf9aea Add interact.c 1998-04-09 04:27:38 +00:00
Ted Lemon
ae6ea8072b Fix backup_cutoff handling. 1998-04-09 04:26:24 +00:00