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

229 Commits

Author SHA1 Message Date
Ted Lemon
32f1dd7a8b Adjust call to find_lease 1997-06-08 04:10:54 +00:00
Ted Lemon
be6b4b2a2b Only store through ours if it's nonzero 1997-06-08 04:10:41 +00:00
Ted Lemon
732a90b290 Make it a warning rather than an error if resolv.conf is missing. 1997-06-08 04:05:21 +00:00
Ted Lemon
2b260752e0 Fix variable declaration omission 1997-06-08 03:58:47 +00:00
Ted Lemon
fa97acc108 If the lease we want to give the client is different than the one it's asking for, and we recognize the one it's asking for as ours, NAK it. 1997-06-08 03:55:58 +00:00
Ted Lemon
17832ade8e Always write out two digits for single-byte quantities in arrays 1997-06-08 03:08:29 +00:00
Ted Lemon
4e19a6dfc2 Add a note about why the server doesn't restart with SIGTERM 1997-06-06 01:56:32 +00:00
Ted Lemon
1ac5bc1aa0 cftest wasn't being initialized 1997-06-03 01:41:31 +00:00
Ted Lemon
05a8d03c0b Use a different bit for hostname than for client-hostname 1997-06-03 01:06:10 +00:00
Ted Lemon
ee31d9923a Make name-servers option ien116-name-servers 1997-06-02 23:27:22 +00:00
Ted Lemon
40f63fcd4f Add cftest flag which just tests config file but doesn't actually run. 1997-06-02 23:26:29 +00:00
Ted Lemon
1e39d10198 Cygwin32 compatibility. Initialize DNS 1997-05-09 08:27:56 +00:00
Ted Lemon
44b2e3adb2 Fix bug introduced into dhcprequest processing. Fix core dump differently. Store client-supplied hostname. Fix ciaddr copy. 1997-05-09 08:27:14 +00:00
Ted Lemon
00d6d87c9e Write out client_hostname and hostname values when writing out a lease 1997-05-09 08:22:00 +00:00
Ted Lemon
ccf5778aac Move parse_host_name to parse.c. Add support for recording client-supplied and locally-derived hostname in lease file 1997-05-09 08:21:25 +00:00
Ted Lemon
c0257f226c Check for BOOTREQUEST moved here 1997-05-09 08:20:12 +00:00
Ted Lemon
eb58f47fc7 foo 1997-03-29 04:07:32 +00:00
Ted Lemon
ba7ed239ed Fix up a few typos and pastos 1997-03-29 00:10:22 +00:00
Ted Lemon
e8df53ce15 Fix install dependencies 1997-03-29 00:09:51 +00:00
Ted Lemon
b16b7f330e Record the time of the db_startup rewrite of the lease file so that we don't rewrite the file again the next time we offer a lease. 1997-03-06 23:41:27 +00:00
Ted Lemon
14b5afc442 Put parentheses around & operations 1997-03-06 20:23:27 +00:00
Ted Lemon
74c13ab5db If a lease has been abandoned, don't find it. 1997-03-06 19:30:52 +00:00
Ted Lemon
4006d804a4 Support abandoned keyword in leases 1997-03-06 19:29:39 +00:00
Ted Lemon
9acb0bab3c Start up icmp protocol; handle ICMP EchoReplies and also handle non-replies. 1997-03-06 18:41:36 +00:00
Ted Lemon
4b7df7078c Add a message to abandon_lease; ping before sending DHCPREQUEST. 1997-03-06 18:40:22 +00:00
Ted Lemon
2f8e6010d7 Remove declaration for relay() - no longer needed 1997-03-06 07:27:56 +00:00
Ted Lemon
ee1cd2caa9 Change calling conventions to dispatch(). Set bootp_packet_handler to do_packet(). 1997-03-06 07:02:54 +00:00
Ted Lemon
9cc3ad7f14 Move a ton of bits from the lease structure into the lease_state structure. The lease structure is permanent, whereas the state structure is ephemeral, which means that leases now consume less memory (memory consumption is now about the same as in Beta 5 Patchlevel 14). Allocate and free the lease_state structure. If ack_lease is called on a lease that already has a state structure, we're already acking something, so we don't try to ack it again. 1997-03-06 07:02:00 +00:00
Ted Lemon
11b37280ba Move some state into the lease structure so that we can test a lease before acking it, and so that we can do DNS lookups asynchronously 1997-03-05 06:37:05 +00:00
Ted Lemon
a62eea55ac Don't check the lease we have for the client until we've verified that the client thinks it's on the right network 1997-03-05 06:18:55 +00:00
Ted Lemon
b4c0cd4579 Add DHCPLIB to depends 1997-03-05 06:17:33 +00:00
Ted Lemon
de60690e73 Move some more parameters around 1997-02-22 14:44:56 +00:00
Ted Lemon
5f5d1ea2cf Distributed Makefile 1997-02-22 14:12:34 +00:00
Ted Lemon
e6e5d8749e Don't NAK leases from competing servers 1997-02-22 12:25:11 +00:00
Ted Lemon
d00ecc3cef Clean up some bugs in the DHCPREQUEST lease code 1997-02-22 10:22:05 +00:00
Ted Lemon
66b01364eb Update documentation 1997-02-22 10:20:28 +00:00
Ted Lemon
31755be8f7 Change daemonification code to prolong logging to stderr until dhcpd.conf has been parsed.; dispatch takes an argument. 1997-02-22 08:49:44 +00:00
Ted Lemon
801ecd88d7 Use interface address instead of common server identifier; allow specific clients to be excluded from booting; don't release a lease based on a DHCPREQUEST to a different server - this isn't allowed by the protocol 1997-02-22 08:48:15 +00:00
Ted Lemon
99fd97cc55 Add allow and deny keywords; allow or deny bootp service, booting (for known hosts that shouldn't be booted), dynamic_bootp and unknown clients 1997-02-22 08:41:01 +00:00
Ted Lemon
e07ac89ae9 Add some knobs to control booting; get server identifier from interface; add dummy relay function 1997-02-22 08:36:36 +00:00
Ted Lemon
bfa885c999 Use local_port and remote_port instead of server_port 1997-02-19 10:50:40 +00:00
Ted Lemon
a60076f94d Use local_port and remote_port instead of server_port and server_port + 1 1997-02-18 14:32:51 +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
6311543119 Move common parsing functions into a seperate file, so the DHCP client and server don't have to share *all* their parsing code 1997-02-18 14:27:33 +00:00
Ted Lemon
d557e6d40b Fix broadcast bug 1997-01-03 11:39:27 +00:00
Ted Lemon
b289b0107c Fix bug in classing code 1996-12-31 02:02:54 +00:00
Ted Lemon
f4d0f440ce Initialize declaration variable 1996-12-31 02:01:28 +00:00
Ted Lemon
352bc292ab Fix case where dynamic BOOTP for a known client with no applicable fixed address was failing 1996-12-31 02:00:33 +00:00
Ted Lemon
0b5d360d4b replace ARPHRD with HTYPE 1996-11-08 20:09:41 +00:00
Ted Lemon
84c390c102 Return after rejecting unknown BOOTP client 1996-11-08 20:08:34 +00:00