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

229 Commits

Author SHA1 Message Date
Ted Lemon
402e5f87d2 Initialize client classification system in main(). 1998-04-19 23:35:26 +00:00
Ted Lemon
5941275aac Do client classification. If user supplies a dhcp-lease-time or related option, print a warning when issuing a lease. 1998-04-19 23:34:43 +00:00
Ted Lemon
07378a2a62 Support for classifying clients. 1998-04-19 23:24:48 +00:00
Ted Lemon
38b1978d0e Add class.c 1998-04-19 23:24:28 +00:00
Ted Lemon
b41e78641f Interactive client data structures for DHCP server. 1998-04-09 05:19:26 +00:00
Ted Lemon
cdd70b8712 Add min-lease-time, min-secs and use-lease-addr-for-default-route. Allow empty option declarations. 1998-04-09 04:57:46 +00:00
Ted Lemon
2342aee908 Start interactive client 1998-04-09 04:47:46 +00:00
Ted Lemon
421563ea10 Don't respond to requests that are newer than a configured number of seconds. Enforce a minimum lease time, if specified. If a dhcp-server-identifier option has been specified, use that instead of coming up with one from the shared_network structure. Allow the routers option to be set to the client's address. Be more clever about dealing with duplicate leases. 1998-04-09 04:41:52 +00:00
Ted Lemon
59b85ebd15 Add min-lease-time, min-secs and use-lease-addr-for-default-route. Allow empty option declarations. 1998-04-09 04:38:24 +00:00
Ted Lemon
fc1ac264da Add dhcpdi.c 1998-04-09 04:37:15 +00:00
Ted Lemon
48984237a1 If we happen across an abandoned lease when trying to find a lease to allocate, try using the abandoned lease. If the client asks for a lease on one address, but we find another lease that's also assigned to it, make every effort to free the duplicate lease, since a client can't have two leases on the same network at the same time. 1998-03-17 18:14:51 +00:00
Ted Lemon
00e9db0efc Take out shared-network statement to avoid confusion. 1998-03-17 17:35:55 +00:00
Ted Lemon
f3c3d67454 Allow unnamed host declarations. 1998-03-17 06:20:51 +00:00
Ted Lemon
e044f73fef Don't start dns for now. 1998-03-17 06:20:11 +00:00
Ted Lemon
086032ce8d Make install directories from top down. 1998-03-17 06:13:36 +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
c7609f47b8 Update copyright 1998-03-16 06:18:16 +00:00
Ted Lemon
69858972fd Clean up unsigned char vs. signed char discrepencies. 1998-03-16 06:17:37 +00:00
Ted Lemon
338303a442 Prevent some type incompatibility warnings. 1998-03-15 21:16:39 +00:00
Ted Lemon
c0a8b01162 Don't invalidate a lease if we receive an ICMP echo reply for it when it has a valid lease. This can happen if some other user on the host pings the client after we've assigned it an address. 1998-03-15 20:47:27 +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
0a3476077b Add dhcp_max_agent_option_packet_length. 1998-02-06 01:10:28 +00:00
Ted Lemon
3c893bb6ce Adjust cons_options calls. Copy the entire chaddr field even if hlen indicates it's shorter. Keep track of Relay Agent Information options. 1998-02-06 01:08:38 +00:00
Ted Lemon
d8ae14c614 Copy the entire chaddr field, even if the length is shorter than the total. This works around a bug in certain Microsoft clients. If the options aren't valid, just copy the option buffer from the incoming packet into the outgoing packet. This lets NeXT boxes boot. Adjust calling conventions for cons_options. 1998-02-06 01:05:39 +00:00
Ted Lemon
eb4b6456c8 Finish documenting dhcpd.leases format. 1998-01-12 01:28:42 +00:00
Ted Lemon
2b1986edad Document token ring hardware type. 1998-01-12 01:09:00 +00:00
Ted Lemon
0c11afbceb NAK if a client requests an address that we own but can't give to it. 1997-12-06 04:04:50 +00:00
Ted Lemon
355bf452dc If we're responding to a BOOTP request, hunt for a lease that's applicable - there might be more than one lease matching the network and the hardware address. 1997-12-02 09:28:08 +00:00
Ted Lemon
ec8d21a783 Copy the hardware address into the static lease structure so that it can be used later. 1997-12-02 09:07:03 +00:00
Ted Lemon
3085653819 Create database with mode 0664 & ~umask, not 0666 & ~umask. 1997-12-02 07:44:56 +00:00
Ted Lemon
599c23c128 If we find more than one lease for the same client on the same network, give it the one it asked for. 1997-12-02 07:43:56 +00:00
Ted Lemon
2ba8b7cdaf Fix DHCPRELEASE handling to conform to spec 1997-11-29 07:57:02 +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
34034a683d new catted man pages 1997-11-22 07:15:53 +00:00
Ted Lemon
0f829600e8 Add dhcpd.leases man page. Globalize sed scripts on man pages. 1997-11-22 07:14:58 +00:00
Ted Lemon
3b1f38df93 catted man page for nroff-less systems 1997-11-22 07:06:23 +00:00
Ted Lemon
9f3d938ccd DHCP lease database description 1997-11-22 06:43:37 +00:00
Ted Lemon
612bc350de Move dhcp option documentation to dhcp-options(5) 1997-11-22 00:31:56 +00:00
Ted Lemon
65e15addac Fix up references 1997-10-29 18:37:02 +00:00
Ted Lemon
56a899315a Fix up handling of hostname 1997-10-27 20:22:40 +00:00
Ted Lemon
36b65b9cc7 Fix up handling of hostname 1997-10-27 20:16:26 +00:00
Ted Lemon
f48132f7f8 Don't ping static leases - there's no persistent structure for them! 1997-10-20 22:28:18 +00:00
Ted Lemon
632d8396e3 Use local quiet flag and also set global quiet_interface_discovery flag with -q option 1997-10-20 21:52:36 +00:00
Ted Lemon
6edb572b2e Document -q flag 1997-10-20 21:38:13 +00:00
Ted Lemon
deb0cb72ec Rearrange startup code so as to print everything before daemonizing; Don't spew copyright message if quiet is set. 1997-10-20 21:38:03 +00:00
Ted Lemon
355f034ada Put hostname in quotes 1997-10-07 19:59:31 +00:00
Ted Lemon
a52d8045b3 Pass flag to cons_options indicating whether this is BOOTP or DHCP. Change handling of dynamic BOOTP packets. Allow or deny booting based on vendor class if enabled. 1997-09-16 18:20:30 +00:00
Ted Lemon
94da6d3226 Pass flag to cons_options indicating that this is a BOOTP packet 1997-09-16 18:17:55 +00:00
Ted Lemon
ffba70525e parse_string eats the semicolon 1997-06-10 06:00:23 +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