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

200 Commits

Author SHA1 Message Date
Ted Lemon
be6b4b2a2b Only store through ours if it's nonzero 1997-06-08 04:10:41 +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
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
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
4b7df7078c Add a message to abandon_lease; ping before sending DHCPREQUEST. 1997-03-06 18:40:22 +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
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
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
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
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
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
4ecd2958d5 mockup_lease() now supplies uid info if present; supply subnet mask from subnet decl if not defined as an option; fix lease time blooper; provide T1 and T2 lease times 1996-09-05 23:52:10 +00:00
Ted Lemon
ef6f87b4d6 Fix signed/unsigned char type mismatch 1996-08-29 20:12:37 +00:00
Ted Lemon
d58a12592d Add special support for hostname option 1996-08-28 01:29:25 +00:00
Ted Lemon
4fbcd99136 Don't try to respond to packets if we can't figure where they came from; add support for next_server (siaddr) field; adjust for new group structure; don't use siaddr as source address; check hw_lease, not lease; allow leases to be kept on more than one network; allow user-specified dynamic bootp lease lengths; add support for ignoring unknown clients 1996-08-27 09:37:50 +00:00
Ted Lemon
f8cd781ecc Find_lease should not reallocate leases to clients if the UID differs 1996-06-27 19:04:29 +00:00
Ted Lemon
8ec97099c1 Ensure that dhcp packets are at least BOOTP_MIN_LEN bytes long when sending through gateways 1996-06-24 20:32:12 +00:00
Ted Lemon
e2cb6d536a Use standard IP stack to send responses to clients with known IP addresses 1996-06-12 23:49:58 +00:00
Ted Lemon
1a4b272feb Don't unicast to client if broadcast is requested 1996-06-12 04:01:16 +00:00
Ted Lemon
eebea44806 Delete unused automatic variables 1996-06-04 19:04:16 +00:00
Ted Lemon
a69f4fd396 Make packet messages say where the packet came from and where it's going. 1996-06-01 00:18:15 +00:00
Ted Lemon
d01578b720 Handle DHCPREQUEST properly when no SERVER_IDENTIFIER has been supplied; put hardware address in mocked-up lease 1996-05-28 18:16:04 +00:00
Ted Lemon
45023390b4 Fix an uninitialized pointer bug 1996-05-25 18:37:34 +00:00
Ted Lemon
faf4a8deba a shared network might have no dynamically allocatable leases, so check for null pointer 1996-05-24 18:49:34 +00:00
Ted Lemon
b6b1cadf14 Make sure uid_lease is initialized somewhere; use ciaddr to find lease if Requested Address option not present 1996-05-23 22:22:35 +00:00
Ted Lemon
15c00bbad9 Don't assume routed packets are local; fix up dhcp_nak generation 1996-05-23 01:59:38 +00:00
Ted Lemon
e29c53f6f0 Initialize free host pointer 1996-05-22 10:14:42 +00:00
Ted Lemon
acf6cfe389 Make sure there's a host hanging off the lease before dereferencing it 1996-05-22 09:51:26 +00:00
Ted Lemon
3a5811084f Move packet location code out of dispatch 1996-05-22 09:29:56 +00:00
Ted Lemon
7a049f2ccd shared net support; static dhcp address assignment; dynamic bootp support 1996-05-22 07:21:50 +00:00
Ted Lemon
20581a0b07 Fix copyright; SA_LEN instead of SIN_LEN; formatting consistency 1996-05-20 00:04:24 +00:00
Ted Lemon
f9a32ee9b4 Dump DHCP request type at LOG_INFO level instead of LOG_DEBUG 1996-05-16 07:52:49 +00:00
Ted Lemon
d3e5a8928c fix up char declarations; don't dump packets unless DEBUG_PACKET defined 1996-05-16 07:15:28 +00:00
Ted Lemon
fde927d2f5 Add support for hardware unicast; use send_packet instead of sendto; get interface address from packet rather than searching the list. 1996-05-12 23:55:27 +00:00
Ted Lemon
a8b53b4220 Various user-provided patches 1996-03-16 17:50:30 +00:00
Ted Lemon
be1b6e8227 Add HAVE_SIN_LEN; encase debugging statements in ifdef DEBUG; fix destination port botch 1996-03-06 10:40:08 +00:00
Ted Lemon
1358b87447 Keep a persistent database of leases 1996-03-02 05:13:36 +00:00
Ted Lemon
b88e8e1527 Rearrange debugging dumps; disable them; add support for dhcp message; DHCPDECLINE now abandons the address that was declined, rather than releasing it for future use; DHCPINFORM function added but not implemented; NAK lease renewals on wrong network even if server id isn't ours; use DHCPACK, not DHCPOFFER, when acking a least; zap ciaddr on NAK; copy chaddr on NAK; make relay agent broadcast NAK; send relay response to server port; vendor class support 1996-02-29 18:16:31 +00:00
Ted Lemon
8703d839b8 Always initialize offered_expiry; return after NAKing 1996-02-26 09:29:28 +00:00
Ted Lemon
ed8bcd8f1b Full protocol 1996-02-26 01:56:15 +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
Ted Lemon
d7837182d3 DHCP Server Daemon 1995-11-29 07:40:04 +00:00