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

881 Commits

Author SHA1 Message Date
Ted Lemon
26e02cc513 Use -pipe on NetBSD 1997-03-29 01:20:40 +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
b968c68a5b Add a couple more fussy defines to work around Linux weirdnesses 1997-03-29 00:08:40 +00:00
Ted Lemon
daffaf5e68 Allow users to specify vendor-encapsulated-options as a string of hex digits 1997-03-29 00:06:50 +00:00
Ted Lemon
5145810cfd Ignore EHOSTUNREACH and ECONNREFUSED errors on Linux (for now). 1997-03-29 00:06:07 +00:00
Ted Lemon
9652af24d0 Skip dummy interfaces on Linux; lose vestigial and erroneous USE_FALLBACK code; timeout -> what, not timeout -> interface 1997-03-29 00:02:45 +00:00
Ted Lemon
a6bdf642ed Fix stupid, stupid, stupid allocation size underrun 1997-03-29 00:01:18 +00:00
Ted Lemon
73694cd227 Don't have ARP code look up names; net_netmask_arg, not new_subnet_arg 1997-03-28 23:59:56 +00:00
Ted Lemon
34fdad6c77 Move top_level_config to clparse.c; use more defaults from client config structure; be less noisy about broadcasts that aren't for us; fix up exponential backoff code; time out in REQUESTING state if server doesn't ACK; record how long we've been trying to boot in the DHCP packet. 1997-03-28 23:57:47 +00:00
Ted Lemon
8262070795 Set up enough defaults that we can actually boot without a configuration file. 1997-03-28 23:50:15 +00:00
Ted Lemon
9db96ad494 Clean up subdir targets 1997-03-28 23:48:43 +00:00
Ted Lemon
14d3aba8e4 IANA ARP code types and hardware types 1997-03-28 22:27:50 +00:00
Ted Lemon
4a4d10a5ba DNS Support code 1997-03-08 02:24:16 +00:00
Ted Lemon
e452b9fdc8 Use MAX_TIME for abandoned leases rather than an explicit constant (which was wrong). 1997-03-08 00:22:47 +00:00
Ted Lemon
6a1d7b36e0 raw reads include IP header before icmp header, so we have to skip over it. 1997-03-08 00:22:01 +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
7a08716481 If a lease is abandoned, write it out even though it doesn't appear to be assigned. When abandoning a lease, set hardware type to zero, not -1 1997-03-06 22:20:17 +00:00
Ted Lemon
14b5afc442 Put parentheses around & operations 1997-03-06 20:23:27 +00:00
Ted Lemon
a8b5839494 If a lease is abandoned, it's okay to supersede even if things don't quite match up. 1997-03-06 20:21:32 +00:00
Ted Lemon
ca25f4ab5e Send client identifier when declining. 1997-03-06 20:13:42 +00:00
Ted Lemon
779b840c00 When we toss all our leases, just go back to init state - don't try to get fancy 1997-03-06 20:00:51 +00:00
Ted Lemon
804872dc5c ABANDONED_LEASE is persistent, so set it in the lease structure, not in the supersede structure. 1997-03-06 19:45:20 +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
a803bcdc5b Add ABANDONED token 1997-03-06 19:28:49 +00:00
Ted Lemon
14b45fb684 Add ABANDONED_LEASE flag 1997-03-06 19:28:35 +00:00
Ted Lemon
b0f9708dd0 Set ABANDONED_LEASE flag when abandoning a lease. 1997-03-06 19:28:18 +00:00
Ted Lemon
f4fb257d70 Add abandoned keyword 1997-03-06 19:27:57 +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
e5078937c9 Adjust and add prototypes 1997-03-06 18:38:59 +00:00
Ted Lemon
fa805637f0 Export checksum and wrapsum 1997-03-06 18:27:55 +00:00
Ted Lemon
7bbdb1df7d Add informational message to abandon_lease. 1997-03-06 18:27:20 +00:00
Ted Lemon
5047d8b5d7 Don't use n_* types 1997-03-06 07:29:36 +00:00
Ted Lemon
fa25cc03b5 Fix prototype for icmp_startup 1997-03-06 07:28:54 +00:00
Ted Lemon
2f8e6010d7 Remove declaration for relay() - no longer needed 1997-03-06 07:27:56 +00:00
Ted Lemon
e6c9e9b83a Oops - didn't compile 1997-03-06 07:27:32 +00:00
Ted Lemon
ddbe6706ac ICMP structure definitions 1997-03-06 07:09:59 +00:00
Ted Lemon
4a3fd492b9 Support for ICMP Echo protocol 1997-03-06 07:08:00 +00:00
Ted Lemon
c800b2aa41 Traversal of interface list to weed out bad interfaces was broken when I added the dummy interface list - fix is to save the next pointer before weeding out interfaces. 1997-03-06 07:06:08 +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
84228fed1f Declare relay() same as do_packet(). Set bootp_handler to relay(). Change dispatch() calling conventions. 1997-03-06 06:58:37 +00:00
Ted Lemon
6e5ed8bfa8 Adjust prototypes; prototype new functions. Add protocol structure; add move some lease fields into lease state structure. 1997-03-06 06:57:19 +00:00
Ted Lemon
c01f128585 Adjust declaration of fallback_discard so that it can be a protocol handler 1997-03-06 06:55:53 +00:00
Ted Lemon
17f4dab73c Options whose format is X now print as colon-seperated hex, so that pretty_print output can be parsed. do_packet() moved here from dispatch.c 1997-03-06 06:55:06 +00:00
Ted Lemon
9d33ed7272 Check address ranges to see if they're on the right net (previously we just silently made them be on the right net, with interesting results). In supersede_leases, don't copy offered_expiry anymore since it's now in the state structure 1997-03-06 06:53:49 +00:00
Ted Lemon
e4749e754c Make dispatch() run through a list of protocol structures to select against, rather than running through the interface list and then special casing other stuff. This simplifies things substantially. add_protocol() function allows new protocols to be selected against. Timeouts now pass a void * instead of a struct interface_info *. Move do_packet into options.c so that options.c isn't pulled into dhcrelay. 1997-03-06 06:52:30 +00:00
Ted Lemon
dd5804ad62 add allocator for lease state structure and protocol structure 1997-03-06 06:49:29 +00:00