2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-24 10:58:13 +00:00

49 Commits

Author SHA1 Message Date
Ted Lemon
fb1989a8aa Check HAVE_SIN_LEN in sockaddr_dl code. Kludge hardware address length for now if HAVE_SIN_LEN isn't set. Return pointer to struct proto from add_protocol. 1998-04-09 04:30:00 +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
161d49ebc8 Handle token ring... 1997-12-06 04:03:37 +00:00
Ted Lemon
93ad415e65 Use ifp -> ifr_name, not ifr.ifr_name, which isn't yet initialized. errno, not ERRNO. 1997-11-29 07:51:09 +00:00
Ted Lemon
6ba81331d1 Fix typo in comment. 1997-11-22 07:51:38 +00:00
Ted Lemon
73d0a743c4 Define quiet_interface_discovery. Don't consider EAGAIN or EINTR to be fatal in poll(). 1997-10-20 21:47:54 +00:00
Ted Lemon
78b8c3061c If sa_len is zero, skip interface. Add remove_protocol. Fix automatic/manual interface selection. 1997-09-16 18:12:32 +00:00
Ted Lemon
b52a650cbc Don't select for exceptions, since we don't know how to handle them. 1997-06-02 22:31:30 +00:00
Ted Lemon
a198e2673e Fix stupid allocation bug. Handle IFF_POINTTOPOINT only if defined 1997-05-09 08:00:50 +00:00
Ted Lemon
94b63c6467 Wrap prototype with PROTO for SunOS 1997-03-29 10:36:56 +00:00
Ted Lemon
b607837f9a Don't use ARHPRD_METRICOM or ARPHRD_LOOPBACK if they aren't defined 1997-03-29 01:39:38 +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
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
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
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
fb4693d230 Only supply prototypes where appropriate 1997-02-26 18:25:07 +00:00
Ted Lemon
11777d4819 Add DISCOVER_RELAY state 1997-02-22 12:26:41 +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
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
469cf3a4b5 Initial merge of Poger dhclient and linux hacks 1997-01-02 12:00:19 +00:00
Ted Lemon
0b5d360d4b replace ARPHRD with HTYPE 1996-11-08 20:09:41 +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
3be0647e2c buf doesn't need to be static 1996-09-11 05:53:32 +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
edba1c3639 Don't attach to unconfigured interfaces 1996-09-02 21:15:17 +00:00
Ted Lemon
4b9a05d414 Remove dead local vars 1996-08-30 23:41:07 +00:00
Ted Lemon
4593073fc8 Add code to check interface type and skip point-to-point and loopback interfaces; copy ifreq structure out of ifconf structure so as to avoid unaligned pointer dereferences 1996-08-28 01:37:06 +00:00
Ted Lemon
0c413cce74 Add support for weird linux interface alias renaming convention; fix poll interface so it doesn't spin; don't respond to BOOTREPLY packets; locate_network returns status 1996-08-27 09:48:40 +00:00
Ted Lemon
b304ef6ad9 Don't flame about missing interfaces if none were requested 1996-07-07 15:53:07 +00:00
Ted Lemon
d3f6c8b073 Weed out unrequested interfaces if some interfaces were specifically requested; crash and burn if an interface specified on the command line is now found. 1996-06-27 19:07:45 +00:00
Ted Lemon
e9c99838ed Set read bit, not write bit, on fallback interface 1996-06-24 20:35:40 +00:00
Ted Lemon
c5568eb50a Add code to read and discard incoming packets on fallback socket 1996-06-12 23:52:38 +00:00
Ted Lemon
0fe8b9ccd3 Delete unused automatic variables 1996-06-04 19:12:36 +00:00
Ted Lemon
7459d08685 Remember address of last interface so that we can delete the next one if necessary; don't drop packets from unknown networks 1996-05-23 02:32:02 +00:00
Ted Lemon
b09c7d6311 Fix type of poll timeout 1996-05-22 11:30:39 +00:00
Ted Lemon
accc789408 move do_packet to dispatch; move network locator into seperate function 1996-05-22 09:31:24 +00:00
Ted Lemon
da4b9831e8 Don't search the attached network if there isn't one. 1996-05-22 08:15:18 +00:00
Ted Lemon
f66058f1cd rewrite discover_interfaces to work with multiple addresses per interface and to support a fallback interface 1996-05-22 07:25:47 +00:00
Ted Lemon
0d88a8be37 SA_LEN instead of SIN_LEN 1996-05-20 00:10:34 +00:00
Ted Lemon
fcc09faa7c Add an else clause to avoid redundant test 1996-05-16 23:07:36 +00:00
Ted Lemon
64ed2d7cf9 Don't log the fact that a packet has arrived 1996-05-16 07:53:29 +00:00
Ted Lemon
cafcf586c8 Kludge hardware interface type 1996-05-16 07:37:18 +00:00
Ted Lemon
fd1dff9463 Don't need to include if_dl anymore 1996-05-16 07:34:24 +00:00
Ted Lemon
9c5225a562 Add support for SysV poll syscall; traditionalize ANSI-only construct 1996-05-16 07:20:15 +00:00
Ted Lemon
c27fba8ccc rearrange things to support new network abstraction, e.g. passing around hardware addresses and interface_info structs; if possible, discover hardware addresses of interfaces 1996-05-13 00:02:03 +00:00
Ted Lemon
decf33c222 Initial interface discovery and input dispatch routines 1996-04-11 06:44:12 +00:00