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

113 Commits

Author SHA1 Message Date
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
4de4bfcd2c Correctly quote shell meta-characters. 2000-06-28 23:35:22 +00:00
Ted Lemon
ac4b9d4b9a Quote shell special characters. 2000-06-24 06:20:38 +00:00
Ted Lemon
165bce70b2 Fix up various platform-specific errors. 2000-05-17 16:04:26 +00:00
Ted Lemon
20916cae75 - Fix all the OMAPI objects in the DHCP server and client that weren't
being correctly reference-counted.
- Make and use object-specific allocators.
- Add reference/dereference support to hash functions and to timeout
  functions.
2000-05-16 23:03:49 +00:00
Ted Lemon
68f5590808 Make universe_hash using new_hash. 2000-03-18 03:34:11 +00:00
Ted Lemon
49733f31d3 Go back to the BSD license. 2000-03-17 04:00:32 +00:00
Ted Lemon
a77040e7c6 Support new DEBUG_RC_HISTORY_EXHAUSTIVELY flag. 2000-01-27 23:19:35 +00:00
Ted Lemon
37e365b490 - In reference count history, remember the address where the reference
is stored as well as the address of the thing referenced.
2000-01-27 22:40:55 +00:00
Ted Lemon
59ab132462 - Move malloc debug information out of option_state_dereferencers.
- Dump reference count history after handling packet if DEBUG_RC_HISTORY is
  defined.
- Use one macro to compute hash indices.
2000-01-27 22:16:08 +00:00
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