2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 22:05:23 +00:00
Commit Graph

112 Commits

Author SHA1 Message Date
Damien Neil
f7dca4c7b3 Remove the logic to rewrite the lease file every 1000 leases. This
causes excessive slowness on systems with very large numbers of
leases.
2001-02-15 21:28:25 +00:00
Ted Lemon
d8765900f4 Add support for tracing. 2001-02-12 20:53:56 +00:00
Ted Lemon
5e0b4c6248 Fix handling of agent options. 2001-01-25 08:28:51 +00:00
Ted Lemon
9e3831637a Pass client state to eval functions. Lots of other stuff. 2000-11-28 23:27:24 +00:00
Ted Lemon
c8d29f1b33 Never record a state of 'startup.' 2000-09-04 22:28:38 +00:00
Ted Lemon
fcbeefb3ba Move state information common to both peers into a common structure. 2000-08-31 04:40:05 +00:00
Damien Neil
5893fbc907 Added some typecasts in printf() statements to make -Werror happy. 2000-08-11 01:26:08 +00:00
Damien Neil
8a0dac0b46 Changed printf "%*s" format to "%.*s". 2000-08-08 18:11:22 +00:00
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
4346ff54e2 Add prototypical support for writing persistent billing classes. 2000-07-05 07:33:25 +00:00
Ted Lemon
122528527c Fix printf arg causing code to assume uid is NUL-terminated. 2000-06-06 23:51:16 +00:00
Ted Lemon
007e3ee4df Rework DHCP lease state handling to be compatible with failover protocol. 2000-06-02 21:27:21 +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
8c8e27c53e Implement pool request and response so that secondary can operate. 2000-05-04 18:58:16 +00:00
Ted Lemon
26b44cabef Add write_failover_state. 2000-05-03 06:23:05 +00:00
Ted Lemon
c66a31b260 Log an error and quit if we can't append to the DHCP lease database. 2000-04-13 21:41:34 +00:00
Ted Lemon
f69d859939 Disallow some special printable characters in db_printable. 2000-04-04 06:28:52 +00:00
Ted Lemon
49733f31d3 Go back to the BSD license. 2000-03-17 04:00:32 +00:00
Ted Lemon
11cd757b7d Handle typed variables. 2000-02-05 17:39:24 +00:00
Ted Lemon
cfdfb9f126 AIX and Digital Unix compatibility fixes. 2000-02-01 03:19:56 +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
d00855e05c Indent only two spaces. Support event ganging. 2000-01-25 01:39:57 +00:00
Ted Lemon
ea4eec7e1b - Make writing of failover timestamps conditional.
- Support new on event paradigm.
- Save per-lease variables.
2000-01-08 01:46:54 +00:00
Ted Lemon
f36d5b137b Save failover-specific info even if FAILOVER_PROTOCOL isn't defined. 2000-01-05 18:43:33 +00:00
Ted Lemon
fa674bafa5 Print failover data if present. Support new struct hardware. 2000-01-05 18:15:28 +00:00
Ted Lemon
96359f83fd - Open the database file for appending before expiring pools, in case leases
need to be rewritten during the expirating process.
1999-11-07 20:28:23 +00:00
Ted Lemon
b5fa877f8f Write 'never;' instead of 'infinite' for unlimited leases. 1999-10-28 13:02:24 +00:00
Ted Lemon
05743349e6 Expire all outstanding unexpired leases after loading lease file on startup. 1999-10-08 22:29:52 +00:00
Ted Lemon
b1b7b521fe Get a clean compile with all known gcc warnings. 1999-10-07 06:36:35 +00:00
Ted Lemon
77a5f87162 Fix up char * -> unsigned char * mismatches. 1999-10-07 02:14:10 +00:00
Ted Lemon
dff4af5c08 Don't write out contents of root group when writing a host declaration. 1999-10-05 02:44:37 +00:00
Ted Lemon
d70e89d47b Clear up an omission in the host group writing code. 1999-10-04 23:19:36 +00:00
Ted Lemon
3b7c3de9e8 - Flesh out write_group.
- Allow db_startup to just do a syntax check on the lease file rather
  than actually rewriting it, for the -T flag.
1999-10-01 03:24:59 +00:00
Ted Lemon
daaeeac125 - Add named group support for host declarations.
- Add stub for saving named groups.
- Add a db_printable_len function for seeing if non-NUL-terminated
  strings are plain ASCII, and use it in writing out UIDs for leases
  and hosts.
1999-09-28 23:57:47 +00:00
Ted Lemon
fa098be8f9 Implement printing out of expressions so that they can be output to the lease database file and later read back in. 1999-09-22 01:45:57 +00:00
Ted Lemon
fafd89d21d Support host declarations that delete previous host declarations. 1999-09-09 23:33:18 +00:00
Ted Lemon
612fded735 Support dynamically-created host entries. 1999-09-08 01:49:56 +00:00
Ted Lemon
0ebffe9c74 - Record ddns information.
- Test names for printability using db_printable instead of doing it inline.
1999-07-01 19:55:12 +00:00
Ted Lemon
468746feee Adjust the message printed at the top of the lease database. 1999-05-06 20:28:29 +00:00
Ted Lemon
8f65e88db9 Print note at top of lease file so people won't ask about times being offset. 1999-04-23 22:30:56 +00:00
Ted Lemon
f39b6e0089 Update license. 1999-03-16 05:50:46 +00:00
Ted Lemon
8ae2d59584 Change names of error functions to be more consistent. 1999-02-24 17:56:53 +00:00
Ted Lemon
e2bfe7b3bf Write out name of class to which a lease is billed, if any. 1998-11-11 08:00:11 +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
3f165a4027 Add a comment to document the non-presence of a Y2K bug, since people are getting paranoid about that. 1998-03-15 20:46:22 +00:00
Ted Lemon
3085653819 Create database with mode 0664 & ~umask, not 0666 & ~umask. 1997-12-02 07:44:56 +00:00
Ted Lemon
f79741e803 Always print two digits for day and month in leases. 1997-11-29 07:53:53 +00:00
Ted Lemon
36b65b9cc7 Fix up handling of hostname 1997-10-27 20:16:26 +00:00
Ted Lemon
355f034ada Put hostname in quotes 1997-10-07 19:59:31 +00:00
Ted Lemon
200d216c29 Don't trust client to provide a valid hostname. Be lenient in parsing client hostnames from lease file 1997-06-10 05:49:15 +00:00