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

153 Commits

Author SHA1 Message Date
Ted Lemon
2545e6e7e0 Dump log of new outstanding allocations _after_ freeing the packet. 2000-01-26 17:22:26 +00:00
Ted Lemon
4bd8800e89 Fix compilation errors introduced in the last set of checkins. 2000-01-26 14:56:18 +00:00
Ted Lemon
dbf6124ad2 Support variable scoping, malloc debug. 2000-01-25 01:09:06 +00:00
Ted Lemon
6dd369e003 Add support for NetWare/IP encapsulated option. 2000-01-08 01:35:06 +00:00
Ted Lemon
d9c0544ca9 - Move agent information option handling out of common code, since it's
server-specific.
1999-11-13 23:51:50 +00:00
Ted Lemon
bb404b74d1 - Don't try to process the option buffer if there isn't one, and don't
try to process packets that don't at least have the basic BOOTP guts
  in them.
1999-10-08 17:08: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
4038ec529e - Regularize expression evaluation calls so that they are all passed a pointer
to the incoming packet, if any, the current lease, if any, the parsed
  incoming options, and the in-scope configuration file options.
- Incoming packets are now reference counted, so that the callee can save
  them for later expression evaluation (e.g., in dhcp_reply).
1999-07-31 18:03:55 +00:00
Ted Lemon
c6e7518cc1 - Pull a change from the 2.0 branch to make 'X' options print as strings
if possible.
1999-07-06 16:53:30 +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
8e0a40b8d9 Enclose abort() calls in POINTER_DEBUG ifdefs and just return otherwise. 1999-05-07 17:36:36 +00:00
Ted Lemon
33c8563849 - Support a site-local option space, so that different site-local
options can be defined in different scopes.
1999-04-23 22:10:52 +00:00
Ted Lemon
2c9c029193 - Cast return values from getShort and getUShort for egcs.
- Fix option lookup function usage.
1999-04-08 19:17:48 +00:00
Ted Lemon
c980aa65ed Pass down the option state in store_options. 1999-04-05 19:03:59 +00:00
Ted Lemon
c9605ddb0b Make option state support more general. 1999-04-05 15:40:59 +00:00
Ted Lemon
f39b6e0089 Update license. 1999-03-16 05:50:46 +00:00
Ted Lemon
ce0ec46d27 Pass parameter request list to cons_options. 1999-03-10 20:39:22 +00:00
Ted Lemon
8ae2d59584 Change names of error functions to be more consistent. 1999-02-24 17:56:53 +00:00
Ted Lemon
ca44c64d39 Add agent_options argument to cons_options 1998-11-06 00:12:40 +00:00
Ted Lemon
a370b55d06 Add new option cache handling code. 1998-11-05 18:42:47 +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
f4c340534d Add dhcp_option_lookup and agent_option_lookup functions. 1998-04-19 23:19:14 +00:00
Ted Lemon
6f76b6ac67 Allow for null trees. 1998-04-09 04:31:59 +00:00
Ted Lemon
0a98d49899 If client sends a packet with a larger option buffer than allowed in the standard, use the same size option buffer. 1998-03-17 06:12:17 +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
81477e9101 Parse agent options specially. Pack agent options into outgoing messages if supplied. Allow caller to pass dhcp_max_message_size into cons_options if the original packet is no longer available. 1998-02-06 01:18:33 +00:00
Ted Lemon
eb0a9b2a16 Only use 64-byte option buffer for BOOTP packets 1997-09-16 18:15:25 +00:00
Ted Lemon
a9a9b7f151 Add emit_quotes qualifier to pretty_print_option, so that we don't get extra quotes when emitting strings into configuration scripts 1997-06-02 22:32:05 +00:00
Ted Lemon
00294c5604 Let bootp() check for correct type of packet 1997-05-09 08:07:09 +00:00
Ted Lemon
17f4dab73c Options whose format is X now print as colon-seperated hex, so that pretty_print output can be parsed. do_packet() moved here from dispatch.c 1997-03-06 06:55:06 +00:00
Ted Lemon
171c47a6cc pretty_print_options now optionally seperates array elements with comma, and now encloses text strings in quotes 1997-02-22 08:32:05 +00:00
Ted Lemon
29539f1aa4 Seperate array elements with commas when pretty-printing 1997-02-19 10:52:14 +00:00
Ted Lemon
a4cb16cab9 Change calling conventions for cons_options so that DHCP client doesn't have to dummy up a packet 1997-02-18 14:28:54 +00:00
Ted Lemon
c34fcd388b Notice if client is NUL-terminating strings, and if it is, NUL-terminate them back. 1996-09-11 05:52:18 +00:00
Ted Lemon
67bb0d2402 Fix printf warnings 1996-09-05 23:57:33 +00:00
Ted Lemon
898bc0487d Fix printf prototypes (again) 1996-08-27 09:52:46 +00:00
Ted Lemon
db910847a2 Fix printf formats 1996-06-24 20:36:10 +00:00
Ted Lemon
97accb10bd Option buffer length miscalculated 1996-06-12 23:50:44 +00:00
Ted Lemon
bd38ac0631 Fix off-by-one error on option expansion allocation 1996-06-12 04:08:11 +00:00
Ted Lemon
0fe8b9ccd3 Delete unused automatic variables 1996-06-04 19:12:36 +00:00
Ted Lemon
a8b53b4220 Various user-provided patches 1996-03-16 17:50:30 +00:00
Ted Lemon
1358b87447 Keep a persistent database of leases 1996-03-02 05:13:36 +00:00
Ted Lemon
1a74d33bdc replace cons_option implementation with something simpler. 1996-03-01 00:44:38 +00:00
Ted Lemon
a3e52198fc Fix buffer length calculations; always put mandatory options at the beginning of the priority list; use stored_length to figure out whether an option has been stored; calculate buffer length in a more reasonable place; partially complete rewrite of cons_options 1996-02-29 18:32:06 +00:00
Ted Lemon
445b21f78c Change test for whether an option has been stored; always terminate the buffer with END and then PAD. 1996-02-26 09:32:08 +00:00
Ted Lemon
98dd66895c Zap debugging statements 1996-02-26 01:57:51 +00:00
Ted Lemon
685963dcf4 Incremental changes to support DHCP protocol 1996-02-21 15:16:18 +00:00
Ted Lemon
97ca16995f Intermediate changes to support actual DHCP protocol engine 1996-02-21 12:11:09 +00:00
Ted Lemon
6c6d59281e *** empty log message *** 1996-02-11 00:01:46 +00:00