2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-30 13:57:50 +00:00

1342 Commits

Author SHA1 Message Date
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
Ted Lemon
688a235b8e dmalloc already zeros allocated memory 1996-09-11 06:35:16 +00:00
Ted Lemon
a410588238 Add unknown options to end of option priority list 1996-09-11 06:34:25 +00:00
Ted Lemon
3be0647e2c buf doesn't need to be static 1996-09-11 05:53:32 +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
4c4c7907c7 Fix stupid oversight in hash_delete - thanks to Jon Grubbs for finding this 1996-09-09 07:04:45 +00:00
Ted Lemon
c256bae9ba Add use-host-decl-names keyword 1996-09-09 07:04:29 +00:00
Ted Lemon
67bb0d2402 Fix printf warnings 1996-09-05 23:57:33 +00:00
Ted Lemon
272581da6f Fix up a couple of places where ic_timeout wasn't initialized in strioctl structs 1996-09-05 23:56:52 +00:00
Ted Lemon
48d507a956 Fix opening comment; require a subnet decl for every interface; remove warning about missing aliases on shared networks 1996-09-05 23:55:39 +00:00
Ted Lemon
968d1ceb52 All unnamed options now take the X format, which means either an ASCII string or a series of hexadecimal octets seperated by colons. 1996-09-04 07:07:52 +00:00
Ted Lemon
23f8f16adf Put uio.h include within ifdef 1996-09-04 07:06:39 +00:00