2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 13:28:14 +00:00

856 Commits

Author SHA1 Message Date
Ted Lemon
3b08cf9aea Add interact.c 1998-04-09 04:27:38 +00:00
Ted Lemon
ae6ea8072b Fix backup_cutoff handling. 1998-04-09 04:26:24 +00:00
Ted Lemon
d87c528803 Don't die if we can't handle a new client. Don't try to continue if accept fails. 1998-04-09 04:22:30 +00:00
Ted Lemon
9c610c561c Add dhcpctl subdir 1998-04-09 04:21:00 +00:00
Ted Lemon
2ca2eda92d Add dissociate_lease(). Abandon leases but don't _really_ abandon them - sort them back into the list so that they can be reclaimed later. 1998-03-17 18:19:44 +00:00
Ted Lemon
25b4df9e71 prototype dissociate_lease. 1998-03-17 18:17:57 +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
68dda014a0 Allow trailing dot in hostnames. 1998-03-17 06:13:02 +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
f258bd88eb Do memcpy inside of if statement since results are only used there. Add ns_inaddr_lookup (commented out for now). 1998-03-17 06:11:25 +00:00
Ted Lemon
89698b984b Store query in query buffer in query structure, not in the query structure itself. 1998-03-17 06:09:59 +00:00
Ted Lemon
c209242f8a Fix line buffer handling 1998-03-17 06:09:11 +00:00
Ted Lemon
4085b4754f Don't memset allocated memory if we didn't allocate it. 1998-03-17 06:08:49 +00:00
Ted Lemon
62f461bcf9 Make install directories from top down. 1998-03-17 06:08:19 +00:00
Ted Lemon
877481dc0a Make install directories from top down. Quiet client script test. 1998-03-17 06:08:07 +00:00
Ted Lemon
639f79f8cf Site-specific Makefile configuration. 1998-03-17 06:06:49 +00:00
Ted Lemon
d2e7c14983 Include a site.conf file after Makefile.dist. 1998-03-17 06:06:35 +00:00
Ted Lemon
6d9ab9b9e3 Don't *require* a /etc/dhclient.conf file. 1998-03-16 20:00:00 +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
19d6cdc7d2 Declare dhcp_max_agent_option_packet_length as required by library code. Fix bogus malloc error check. 1998-03-16 06:19:16 +00:00
Ted Lemon
a90733dd04 Declare dhcp_max_agent_option_packet_length as required by library code. 1998-03-16 06:18:50 +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
15c1fd2cd8 Declare arguments that can be promoted so that the compiler's behaviour doesn't change depending on whether or not it follows ANSI. 1998-03-16 06:16:54 +00:00
Ted Lemon
af5662874e Only include linux/ files when compiling on Linux 1.x. 1998-03-16 06:16:30 +00:00
Ted Lemon
0daf3ee5fc Clean up bogus Sun CC pointer type mismatches. 1998-03-16 06:14:51 +00:00
Ted Lemon
29d4ebe642 Clean up bogus Sun CC pointer type mismatches. Clean up signed vs. unsigned character pointer mismatches. 1998-03-16 06:13:01 +00:00
Ted Lemon
fb74bda94f Include dhcpd.h only once. Clean up dangling ifdef. Clean up interface discovery messages. 1998-03-16 06:11:03 +00:00
Ted Lemon
fcaec4ef11 Check chaddr as well as xid in all cases. hw_address hangs off of interface, not client data. 1998-03-16 06:08:41 +00:00
Ted Lemon
d213c35d9b Signed vs. unsigned char fixes 1998-03-16 06:02:14 +00:00
Ted Lemon
3b926f9da0 Different config options for Linux 1.x, 2.0 and 2.1. 1998-03-16 06:01:46 +00:00
Ted Lemon
338303a442 Prevent some type incompatibility warnings. 1998-03-15 21:16:39 +00:00
Ted Lemon
76195acb1c Add declaration for agent option global (used by option parser). 1998-03-15 21:07:11 +00:00
Ted Lemon
5c2f78b459 If interfaces are specified, don't configure any that weren't. In INIT-REBOOT state, initialize the xid before calling make_request(). Check chaddr as well as xid to validate return from server. Make write_client_lease rewrite the client lease file after 20 leases have been written. Fix an xid bug in DHCPRELEASE code. Document Y2K non-bug. 1998-03-15 21:04:52 +00:00
Ted Lemon
49e228037f Use DLPI, not sockets. Also, since we're using rand instead of random, use srand instead of srandom. 1998-03-15 21:00:44 +00:00
Ted Lemon
44947018ce More DLPI stuff 1998-03-15 20:59:47 +00:00
Ted Lemon
5142937c7d More prototypes. Agent Option support. 1998-03-15 20:57:28 +00:00
Ted Lemon
126292b4af Add defines for relay agent options. 1998-03-15 20:56:27 +00:00
Ted Lemon
5786c19680 DLPI support, contributed by Eric James Negaard. 1998-03-15 20:55:19 +00:00
Ted Lemon
13ee152c43 Don't mention compiling with BPF if user has multiple interfaces - if it's not happening now, it probably doesn't work. Also, correct = vs == confusion that was causing packets to go out with bogus destination addresses. 1998-03-15 20:54:20 +00:00
Ted Lemon
edca2b1a03 Add a comment to document the non-presence of a Y2K bug, since people are getting paranoid about that. 1998-03-15 20:53:12 +00:00
Ted Lemon
5be6694416 Reword dns query code 1998-03-15 20:50:53 +00:00
Ted Lemon
9de7f52f69 Document that NBNS and WINS are the same thing 1998-03-15 20:50:23 +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
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