Ted Lemon
20916cae75
- Fix all the OMAPI objects in the DHCP server and client that weren't
...
being correctly reference-counted.
- Make and use object-specific allocators.
- Add reference/dereference support to hash functions and to timeout
functions.
2000-05-16 23:03:49 +00:00
Ted Lemon
49733f31d3
Go back to the BSD license.
2000-03-17 04:00:32 +00:00
Ted Lemon
bdcaf7b95d
Incorporate Brian Murrell's new OMAPI DHCP client changes.
2000-02-15 20:40:36 +00:00
Ted Lemon
4bd8800e89
Fix compilation errors introduced in the last set of checkins.
2000-01-26 14:56:18 +00:00
Ted Lemon
eac1e66f4b
Fix a typo.
1999-10-04 23:46:30 +00:00
Ted Lemon
00763cc18e
Log a message if omapi_one_dispatch fails.
1999-10-04 23:14:00 +00:00
Ted Lemon
ce26120d2c
Move locate_network out of common code, since it's server-specific.
1999-09-28 22:50:02 +00:00
Ted Lemon
16be393750
Use OMAPI dispatcher
1999-09-08 01:44:21 +00:00
Ted Lemon
f39b6e0089
Update license.
1999-03-16 05:50:46 +00:00
Ted Lemon
8ae2d59584
Change names of error functions to be more consistent.
1999-02-24 17:56:53 +00:00
Ted Lemon
b25cbbad95
Update some comments.
1999-02-14 18:46:20 +00:00
Ted Lemon
7d77172d26
Move discover_interfaces and relate goop to discover.c
1998-10-17 13:35:24 +00:00
Ted Lemon
ca0e3669b8
Read DHCP packet into aligned buffer and pass it as a struct pointer instead of a character buffer.
1998-06-25 02:55:16 +00:00
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