2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 21:38:10 +00:00

1224 Commits

Author SHA1 Message Date
Ted Lemon
7d77172d26 Move discover_interfaces and relate goop to discover.c 1998-10-17 13:35:24 +00:00
Ted Lemon
0c6a64b23a Add EXISTS token. 1998-10-17 13:34:31 +00:00
Ted Lemon
1bc9d4926b Add discover.c. Remove spurious tab. 1998-10-17 13:33:40 +00:00
Ted Lemon
1938efb00d Add bsd/os script. Use -Wno-switch (sigh). 1998-10-17 13:32:20 +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
1409f29058 Make the documentation a little clearer for those who don't know their way around shells and compilers. 1998-07-18 06:08:29 +00:00
Ted Lemon
02361a184b If there's another server running, refuse to run. 1998-07-10 04:52:25 +00:00
Ted Lemon
68c039d334 Tell people they have to type make install to install the software. 1998-07-08 23:37:44 +00:00
Ted Lemon
2c51668a22 Fix up PID file definitions 1998-07-08 23:25:34 +00:00
Ted Lemon
b13b05da07 Update server-identifier documentaiton. 1998-06-26 21:05:58 +00:00
Ted Lemon
e5172d3d08 -Wstrict-prototypes is not safe on Solaris unless you've installed ISC BIND, so don't use it. 1998-06-26 18:19:17 +00:00
Ted Lemon
0d22cad91a char-subscripts, not char-subscript. 1998-06-26 17:42:23 +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
3e18a8b4fb Update binary copyright. 1998-06-25 22:54:13 +00:00
Ted Lemon
c54885bd2d If a client REQUESTs an abandoned lease, reclaim it. 1998-06-25 21:24:23 +00:00
Ted Lemon
aaf053e333 Rhapsody support 1998-06-25 18:37:45 +00:00
Ted Lemon
ae0b5b7d54 Declarations for executable statements. 1998-06-25 03:58:24 +00:00
Ted Lemon
055fa312bd Execute statements. 1998-06-25 03:57:00 +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
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