]>
git.ipfire.org Git - thirdparty/dhcp.git/log
Ted Lemon [Fri, 6 Nov 1998 03:25:45 +0000 (03:25 +0000)]
Fix up matching code and add debugging for it.
Ted Lemon [Fri, 6 Nov 1998 03:25:17 +0000 (03:25 +0000)]
Fix evaluate_boolean_expression_result to actually evaluate a *boolean* expression.
Ted Lemon [Fri, 6 Nov 1998 02:59:11 +0000 (02:59 +0000)]
Classify all incoming dhcp packets. Process class scopes.
Ted Lemon [Fri, 6 Nov 1998 02:58:17 +0000 (02:58 +0000)]
Add new classes to database after parsing them. Fix some miscellaneous bugs.
Ted Lemon [Fri, 6 Nov 1998 02:43:10 +0000 (02:43 +0000)]
Put check_collection() outside of DEBUG_EXPRESSIONS conditional.
Ted Lemon [Fri, 6 Nov 1998 02:42:48 +0000 (02:42 +0000)]
Fix pathological parsing loop in add statement. Set expression opcode after parse_cshl.
Ted Lemon [Fri, 6 Nov 1998 02:40:40 +0000 (02:40 +0000)]
Evaluate option cache associated with client identifier option, not just the expression.
Ted Lemon [Fri, 6 Nov 1998 02:40:04 +0000 (02:40 +0000)]
Add hostname type to dns_host_entry_allocate
Ted Lemon [Fri, 6 Nov 1998 01:08:09 +0000 (01:08 +0000)]
Update prototype for dns_host_entry_allocate().
Ted Lemon [Fri, 6 Nov 1998 01:06:44 +0000 (01:06 +0000)]
Save space for hostname and save hostname itself in dns_host_entry allocator.
Ted Lemon [Fri, 6 Nov 1998 01:06:16 +0000 (01:06 +0000)]
Pass hostname to dns_host_entry_allocate.
Ted Lemon [Fri, 6 Nov 1998 01:04:32 +0000 (01:04 +0000)]
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.
Ted Lemon [Fri, 6 Nov 1998 00:31:08 +0000 (00:31 +0000)]
When making list of IP addresses or hostnames, account for the first expression on the list.
Ted Lemon [Fri, 6 Nov 1998 00:30:19 +0000 (00:30 +0000)]
Initialize automatic expression variable.
Ted Lemon [Fri, 6 Nov 1998 00:19:56 +0000 (00:19 +0000)]
Interface discovery code.
Ted Lemon [Fri, 6 Nov 1998 00:17:12 +0000 (00:17 +0000)]
Add agent option support.
Ted Lemon [Fri, 6 Nov 1998 00:16:52 +0000 (00:16 +0000)]
Move to reference-based expression allocation.
Ted Lemon [Fri, 6 Nov 1998 00:16:22 +0000 (00:16 +0000)]
Do data expression evaluation.
Ted Lemon [Fri, 6 Nov 1998 00:15:51 +0000 (00:15 +0000)]
Add relay agent information option arg to cons_options call.
Ted Lemon [Fri, 6 Nov 1998 00:15:17 +0000 (00:15 +0000)]
Add Relay Agent Information Option support.
Ted Lemon [Fri, 6 Nov 1998 00:14:47 +0000 (00:14 +0000)]
Add more expression evaluation goo.
Ted Lemon [Fri, 6 Nov 1998 00:14:09 +0000 (00:14 +0000)]
Add relay agent support for Relay Agent Information Option
Ted Lemon [Fri, 6 Nov 1998 00:13:36 +0000 (00:13 +0000)]
Clear the right data buffer. Add missing braces.
Ted Lemon [Fri, 6 Nov 1998 00:13:03 +0000 (00:13 +0000)]
Fix parse_if_statement
Ted Lemon [Fri, 6 Nov 1998 00:12:40 +0000 (00:12 +0000)]
Add agent_options argument to cons_options
Ted Lemon [Fri, 6 Nov 1998 00:11:53 +0000 (00:11 +0000)]
Update error message.
Ted Lemon [Fri, 6 Nov 1998 00:11:24 +0000 (00:11 +0000)]
Fix some lingering bugs from the expression evaluation changes.
Ted Lemon [Fri, 6 Nov 1998 00:10:58 +0000 (00:10 +0000)]
Clean up some statement parsing bugs.
Ted Lemon [Thu, 5 Nov 1998 18:57:46 +0000 (18:57 +0000)]
Minor documentation clarification on maximum lease time handling.
Ted Lemon [Thu, 5 Nov 1998 18:56:38 +0000 (18:56 +0000)]
Add command-line argument to set pid file name.
Ted Lemon [Thu, 5 Nov 1998 18:56:15 +0000 (18:56 +0000)]
Oops, fix a conflict that was committed in previous revision.
Ted Lemon [Thu, 5 Nov 1998 18:54:55 +0000 (18:54 +0000)]
Use evaluation-based option handling
Ted Lemon [Thu, 5 Nov 1998 18:51:16 +0000 (18:51 +0000)]
Add some code to prevent linking in stuff we don't need (yuck).
Ted Lemon [Thu, 5 Nov 1998 18:50:04 +0000 (18:50 +0000)]
Lose extraneous tab.
Ted Lemon [Thu, 5 Nov 1998 18:49:36 +0000 (18:49 +0000)]
Add endian.h defines - not present in hpux headers.
Ted Lemon [Thu, 5 Nov 1998 18:49:12 +0000 (18:49 +0000)]
INADDR_LOOPBACK now defined in some FreeBSD versions - don't redefine it.
Ted Lemon [Thu, 5 Nov 1998 18:48:37 +0000 (18:48 +0000)]
Add send option statement.
Ted Lemon [Thu, 5 Nov 1998 18:48:24 +0000 (18:48 +0000)]
Add some new debugging types
Ted Lemon [Thu, 5 Nov 1998 18:47:09 +0000 (18:47 +0000)]
Make dhcp token type an enum for easier debugging.
Ted Lemon [Thu, 5 Nov 1998 18:46:42 +0000 (18:46 +0000)]
New prototypes. Many data structure updates.
Ted Lemon [Thu, 5 Nov 1998 18:45:23 +0000 (18:45 +0000)]
Implement reference-based option cache and expressions.
Ted Lemon [Thu, 5 Nov 1998 18:44:41 +0000 (18:44 +0000)]
Get rid of ad-hoc option priority list.
Ted Lemon [Thu, 5 Nov 1998 18:44:11 +0000 (18:44 +0000)]
Add new printers for prettier printing of 'x' format. Add expression printer.
Ted Lemon [Thu, 5 Nov 1998 18:43:23 +0000 (18:43 +0000)]
Fix up all the option handling code to use evaluation instead of fixed data.
Ted Lemon [Thu, 5 Nov 1998 18:42:47 +0000 (18:42 +0000)]
Add new option cache handling code.
Ted Lemon [Thu, 5 Nov 1998 18:42:18 +0000 (18:42 +0000)]
Fix up all the option handling code to use evaluation instead of fixed data. User-specified option statements are not stored in a linked list of executable statements, rather than as data trees.
Ted Lemon [Thu, 5 Nov 1998 18:40:40 +0000 (18:40 +0000)]
Add expression debugging printfs. Supply input and output options to execute_statements.
Ted Lemon [Thu, 5 Nov 1998 18:39:54 +0000 (18:39 +0000)]
Add new reference-based allocators and some new new/free allocators for data types that were previously being allocated with malloc().
Ted Lemon [Thu, 5 Nov 1998 18:36:34 +0000 (18:36 +0000)]
Add some code to prevent pulling in libraries we don't need. (yuck)
Ted Lemon [Thu, 22 Oct 1998 04:52:23 +0000 (04:52 +0000)]
Intermediary changes
Ted Lemon [Thu, 22 Oct 1998 04:50:29 +0000 (04:50 +0000)]
Add depend target
Ted Lemon [Sat, 17 Oct 1998 13:35:24 +0000 (13:35 +0000)]
Move discover_interfaces and relate goop to discover.c
Ted Lemon [Sat, 17 Oct 1998 13:34:31 +0000 (13:34 +0000)]
Add EXISTS token.
Ted Lemon [Sat, 17 Oct 1998 13:33:40 +0000 (13:33 +0000)]
Add discover.c. Remove spurious tab.
Ted Lemon [Sat, 17 Oct 1998 13:32:20 +0000 (13:32 +0000)]
Add bsd/os script. Use -Wno-switch (sigh).
Ted Lemon [Wed, 5 Aug 1998 19:32:20 +0000 (19:32 +0000)]
Don't write leases that contain non-printable or whitespace characters.
Ted Lemon [Sat, 18 Jul 1998 06:08:29 +0000 (06:08 +0000)]
Make the documentation a little clearer for those who don't know their way around shells and compilers.
Ted Lemon [Fri, 10 Jul 1998 04:52:25 +0000 (04:52 +0000)]
If there's another server running, refuse to run.
Ted Lemon [Wed, 8 Jul 1998 23:37:44 +0000 (23:37 +0000)]
Tell people they have to type make install to install the software.
Ted Lemon [Wed, 8 Jul 1998 23:25:34 +0000 (23:25 +0000)]
Fix up PID file definitions
Ted Lemon [Fri, 26 Jun 1998 21:05:58 +0000 (21:05 +0000)]
Update server-identifier documentaiton.
Ted Lemon [Fri, 26 Jun 1998 18:19:17 +0000 (18:19 +0000)]
-Wstrict-prototypes is not safe on Solaris unless you've installed ISC BIND, so don't use it.
Ted Lemon [Fri, 26 Jun 1998 17:42:23 +0000 (17:42 +0000)]
char-subscripts, not char-subscript.
Ted Lemon [Thu, 25 Jun 1998 22:56:38 +0000 (22:56 +0000)]
Document events that cause leases to be written.
Document lease time zones.
Further document abandoned leases.
Ted Lemon [Thu, 25 Jun 1998 22:54:13 +0000 (22:54 +0000)]
Update binary copyright.
Ted Lemon [Thu, 25 Jun 1998 21:24:23 +0000 (21:24 +0000)]
If a client REQUESTs an abandoned lease, reclaim it.
Ted Lemon [Thu, 25 Jun 1998 18:37:45 +0000 (18:37 +0000)]
Rhapsody support
Ted Lemon [Thu, 25 Jun 1998 03:58:24 +0000 (03:58 +0000)]
Declarations for executable statements.
Ted Lemon [Thu, 25 Jun 1998 03:57:00 +0000 (03:57 +0000)]
Execute statements.
Ted Lemon [Thu, 25 Jun 1998 03:56:24 +0000 (03:56 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 03:51:59 +0000 (03:51 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 03:42:18 +0000 (03:42 +0000)]
match_expr -> expression. Move expression evaluator into tree.c. Add find_class function.
Ted Lemon [Thu, 25 Jun 1998 03:41:03 +0000 (03:41 +0000)]
Convert to using executable statements instead of old-style options.
Ted Lemon [Thu, 25 Jun 1998 03:39:04 +0000 (03:39 +0000)]
Take dhcp packet as an argument instead of converting. Limit length of hardware address.
Ted Lemon [Thu, 25 Jun 1998 03:35:31 +0000 (03:35 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 03:32:58 +0000 (03:32 +0000)]
Add ADD, BREAK, ELSE, ELSIF, IF, MATCH, SUBCLASS, SPAWN and WITH tokens
Ted Lemon [Thu, 25 Jun 1998 03:25:02 +0000 (03:25 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 03:10:32 +0000 (03:10 +0000)]
Update all the names to reflect the unification of expression evaluation and dns lookup evaluation. Add expression evaluator.
Ted Lemon [Thu, 25 Jun 1998 03:09:09 +0000 (03:09 +0000)]
Add server option universe. Install dhcp option universe set function.
Ted Lemon [Thu, 25 Jun 1998 03:07:51 +0000 (03:07 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 03:02:50 +0000 (03:02 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 02:59:15 +0000 (02:59 +0000)]
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.
Ted Lemon [Thu, 25 Jun 1998 02:55:56 +0000 (02:55 +0000)]
Clear out unused portion of icmp packet.
Ted Lemon [Thu, 25 Jun 1998 02:55:16 +0000 (02:55 +0000)]
Read DHCP packet into aligned buffer and pass it as a struct pointer instead of a character buffer.
Ted Lemon [Thu, 25 Jun 1998 02:54:29 +0000 (02:54 +0000)]
Add ADD, BREAK, ELSE, ELSIF, IF, MATCH, SUBCLASS and WITH tokens
Ted Lemon [Thu, 25 Jun 1998 02:53:00 +0000 (02:53 +0000)]
tree -> expression. tree_cache -> option_cache. New destructors for dhcp_packet and packet structures.
Ted Lemon [Thu, 25 Jun 1998 02:51:49 +0000 (02:51 +0000)]
Add statement executor module
Ted Lemon [Thu, 25 Jun 1998 02:51:14 +0000 (02:51 +0000)]
Add -Wno-char-subscript for Solaris. Update copyright.
Ted Lemon [Mon, 20 Apr 1998 18:05:44 +0000 (18:05 +0000)]
Move option name parsing to its own function.
Ted Lemon [Mon, 20 Apr 1998 18:05:19 +0000 (18:05 +0000)]
Move option name parsing into its own function. Use parse_cshl to parse colon-seperated hexadecimal lists. Add match expression parsing.
Ted Lemon [Mon, 20 Apr 1998 18:03:33 +0000 (18:03 +0000)]
Carry some data structure changes across from parser. Nuke named hash stuff.
Ted Lemon [Mon, 20 Apr 1998 18:02:40 +0000 (18:02 +0000)]
Add new tokens for match expressions.
Ted Lemon [Mon, 20 Apr 1998 18:02:29 +0000 (18:02 +0000)]
Move parse.c declarations under their own filename. Add function declarations for expression parsing.
Ted Lemon [Mon, 20 Apr 1998 18:01:32 +0000 (18:01 +0000)]
Add parse_option_name and parse_cshl functions.
Ted Lemon [Sun, 19 Apr 1998 23:35:26 +0000 (23:35 +0000)]
Initialize client classification system in main().
Ted Lemon [Sun, 19 Apr 1998 23:34:43 +0000 (23:34 +0000)]
Do client classification. If user supplies a dhcp-lease-time or related option, print a warning when issuing a lease.
Ted Lemon [Sun, 19 Apr 1998 23:24:48 +0000 (23:24 +0000)]
Support for classifying clients.
Ted Lemon [Sun, 19 Apr 1998 23:24:28 +0000 (23:24 +0000)]
Add class.c
Ted Lemon [Sun, 19 Apr 1998 23:23:34 +0000 (23:23 +0000)]
Add a lookup function to the option universe structure.
Ted Lemon [Sun, 19 Apr 1998 23:22:20 +0000 (23:22 +0000)]
Add the concept of named hashes.