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

303 Commits

Author SHA1 Message Date
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
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
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
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
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
e6c9e9b83a Oops - didn't compile 1997-03-06 07:27:32 +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
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
Ted Lemon
4db0d31282 Add icmp.c 1997-03-06 06:48:49 +00:00
Ted Lemon
35a50d44e9 Back out back checksum changes 1997-03-05 20:06:03 +00:00
Ted Lemon
e7b9429fea Oops - we're supposed to zero interfaces_invalidated at the end of the loop, not set it - this was causing the dispatcher to spin 1997-03-05 08:39:38 +00:00
Ted Lemon
5eead2781b lose lease -> state; add lease -> uid_buf to eliminate mallocs when assigning uids to leases except with really big uids 1997-03-05 06:34:36 +00:00
Ted Lemon
6e9a647e94 Maintain a free list for tree_cache structs 1997-03-05 06:34:27 +00:00
Ted Lemon
296af24c10 Add REBOOT token 1997-03-05 06:33:36 +00:00
Ted Lemon
f73aedfc4e remove lease -> state 1997-03-05 06:33:06 +00:00
Ted Lemon
f09bfe772e New IP header checksum code supplied by Anatoli Logvinski 1997-03-05 06:15:00 +00:00
Ted Lemon
d5e5a87a48 Add upf.c 1997-03-05 06:13:07 +00:00
Ted Lemon
179f54abbc Ultrix Packetfilter support 1997-03-05 06:09:04 +00:00
Ted Lemon
fb4693d230 Only supply prototypes where appropriate 1997-02-26 18:25:07 +00:00
Ted Lemon
8d929f2fa2 Remove if_enable() 1997-02-26 05:20:53 +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
11777d4819 Add DISCOVER_RELAY state 1997-02-22 12:26:41 +00:00
Ted Lemon
006c74dade Don't name dhcpd - this is used by dhclient and dhcrelay as well 1997-02-22 12:26:12 +00:00
Ted Lemon
f79e49f3ee Add support for alias declaration 1997-02-22 12:25:32 +00:00
Ted Lemon
1f2d04e414 Fix up select version of dispatch to take parse argument 1997-02-22 10:55:40 +00:00
Ted Lemon
eb8c87b634 dispatch() now takes an argument indicating whether to decode the packet or just call relay(); save the first ip address we encounter for each interface as the primary address. 1997-02-22 08:34:16 +00:00
Ted Lemon
171c47a6cc pretty_print_options now optionally seperates array elements with comma, and now encloses text strings in quotes 1997-02-22 08:32:05 +00:00
Ted Lemon
0c56f332ea error() now logs a message simply indicating that it is exiting. 1997-02-22 08:30:13 +00:00
Ted Lemon
4660b5193b Add some new tokens 1997-02-22 08:29:24 +00:00
Ted Lemon
29539f1aa4 Seperate array elements with commas when pretty-printing 1997-02-19 10:52:14 +00:00
Ted Lemon
c358521715 Restructure to allow interface reinitialization 1997-02-19 10:51:44 +00:00
Ted Lemon
6806c5ae3f Add support for timeouts; add support for scanning interfaces before they have addresses assigned. 1997-02-18 14:33:43 +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
f71f026a5b Add DHCP client tokens 1997-02-18 14:32:30 +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
469cf3a4b5 Initial merge of Poger dhclient and linux hacks 1997-01-02 12:00:19 +00:00
Ted Lemon
b289b0107c Fix bug in classing code 1996-12-31 02:02:54 +00:00
Ted Lemon
0b5d360d4b replace ARPHRD with HTYPE 1996-11-08 20:09:41 +00:00
Ted Lemon
2a5cb261ed Don't try to supersede static leases 1996-11-08 20:09:10 +00:00
Ted Lemon
a6cbc1e491 Log messages to stderr, not stdout. 1996-11-08 20:07:31 +00:00
Ted Lemon
3a2087ec92 discover_interfaces() needs to behave differently for client and server 1996-09-11 18:53:33 +00:00