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

63 Commits

Author SHA1 Message Date
Shane Kerr
06eb8bab55 Fix a number of warnings (and a few real bugs) found by enabling
gcc warnings.

See RT ticket #17013 for more.
2007-08-22 13:41:37 +00:00
Shane Kerr
9705034994 Fix for interface detection when no IPv4 addresses available.
See RT ticket #17086 for more.
2007-08-14 14:08:16 +00:00
Shane Kerr
28868515f6 Code cleanup to remove warnings from "gcc -Wall".
See RT ticket #16988 for more.
2007-07-13 06:43:43 +00:00
David Hankins
8da06bb1f5 - Compilation on HP/UX has been repaired. The changes should generally
apply to any architecture that supplies SIOCGLIFCONF but does not
  use 'struct lifconf' structures to pass values. [ISC-Bugs #16928]
2007-06-08 14:58:20 +00:00
David Hankins
f796f70a27 - A bug was fixed in interface discovery wherein an error identifying
a server-configured interface with no IPv4 addresses would SEGV.
  [ISC-Bugs #16896]
2007-06-01 22:11:49 +00:00
David Hankins
203ec8e289 - Parse AF_LINK contents properly - sa->sdl_type is the hardware type,
not if_addr->sa_family ("AF_LINK" != "ARPHRD_ETHER").  [ISC-Bugs #16890]
2007-05-19 23:28:38 +00:00
David Hankins
6dd7efa210 Load net/if_dl.h if it exists (FreeBSD compile fix). 2007-05-19 21:35:21 +00:00
David Hankins
fe5b0fdd70 - Replaced ./configure shellscripting with GNU Autoconf. [ISC-Bugs #16405b]
- RELNOTES/README++
- s/wether/whether/ in dhcp-options.5 manpage edits.
2007-05-19 18:47:15 +00:00
David Hankins
4ba5891941 - DHCPv4 I/O methods that failed to sense hardware address were corrected.
[ISC-Bugs #16881]

- DHCPv4 is now the default (as documented) rather than DHCPv6.  The default
  was set to DHCPv6 to facilitate ease early development, and forgotten.
  [ISC-Bugs #16881]

- Corrected a segmentation violation in DHCPv4 socket processing.
  [ISC-Bugs #16881]
2007-05-18 17:21:46 +00:00
Shane Kerr
99fe695e1c FreeBSD, NetBSD, OpenBSD support added in (again).
See RT ticket #16865 for more (still expect some warnings).
2007-05-16 22:27:35 +00:00
David Hankins
98bd7ca099 DHCPv6 branch merged to HEAD. 2007-05-08 23:05:22 +00:00
David Hankins
c1e6c8329f - A logic error in omapi interface code was repaired that might result in
incorrectly indicating 'up' state when any flags were set, rather than
  specifically the INTERFACE_REQUESTED flag. [ISC-Bugs #16431]
2006-11-07 23:40:14 +00:00
David Hankins
78c553c4a0 Removing the new I/O changes from HEAD. [ISC-Bugs #16328] 2006-08-09 14:57:48 +00:00
David Hankins
25b988c68f - The IO system now tracks all local IP addresses, so that the DHCP
applications (particularly the dhcrelay) can discern between what frames
  were tranmsitted to it, and what frames are being carried through it which
  it should not intercept. [ISC-Bugs #15573]
2006-02-27 23:56:13 +00:00
David Hankins
88cd8aca9e - Merge changes between 3.0.3RC1 and 3.0.4-BETA-3 into HEAD (silence
robie).
2006-02-24 23:16:32 +00:00
David Hankins
98311e4ba9 MASSIVE merge from V3-RELEASE-BRANCH into HEAD. HEAD and V3-RELEASE are
now synced as of tag V3-0-3-BETA-1.
2005-03-17 20:15:29 +00:00
Murray
d01a85ad31 Back out last change. The bug is in FreeBSD, not in this file.
Requested by:	mellon
2002-06-10 00:12:34 +00:00
Murray
e1f77b3154 Increase size of buffer to support more interfaces.
Submitted by:	NAKAMURA Motonori <motonori@media.kyoto-u.ac.jp>
RT #:		2974
2002-06-09 22:52:39 +00:00
Murray
066bd4d547 Merge from branch - possibly avoid null-pointer dereference. 2002-06-09 22:49:51 +00:00
Ted Lemon
d758ad8cac Merge changes between 3.0rc7 and 3.0rc8pl2. 2001-06-27 00:31:20 +00:00
Ted Lemon
31bbee784c Sync with 3.0rc7 2001-05-17 19:04:09 +00:00
Ted Lemon
615a574a25 Tweak the SIOCGIFCONF code once again. 2001-05-02 06:36:54 +00:00
Ted Lemon
c267626033 Work around Linux 2.4 Token Ring problem. 2001-04-09 01:03:14 +00:00
Ted Lemon
cf75fef2a8 Tweak the omapi interface hooks. 2001-04-05 20:50:19 +00:00
Ben Cottrell
c73ced691d Fixed RT 938 having to do with SIOCGIFCONF on Linux. We now do a first
pass in which we pass a null pointer for the buffer, and we will get
back the length of the buffer we should allocate. This is because
if you pass in a buffer that is too small, Linux (unlike other OSes)
will not tell you that it is too small by returning a length greater
than the length you passed in.
2001-03-17 02:11:29 +00:00
Ted Lemon
fbd9c67bed - Set the fallback interface index to -1 to indicate that it doesn't have
one prior to calling interface_stash.
2001-02-17 21:16:44 +00:00
Ted Lemon
fc33f8c58e Subroutinize some functionality and add in tracing hooks. 2001-02-12 19:40:05 +00:00
Ted Lemon
21fd88eaec - Register the interface_initialize function (fixes a problem with
uninitialized interfaces being registered anyway and causing the
  server to exit).
2001-01-03 23:13:46 +00:00
Ted Lemon
a034015fac Move interface code so that it doesn't pollute the relay agent. 2000-12-28 23:14:46 +00:00
Ted Lemon
08921fe06c - Add initializer for interfaces.
- Don't register for I/O on interfaces on which we are not listening.
2000-10-10 22:31:41 +00:00
Ted Lemon
c573b39cfe Fix some bugs in the code to get arbitrarily long interface lists. 2000-09-29 18:12:16 +00:00
Ted Lemon
d902d52ec5 Add support for large SIOCGIFCONF returns (Greg Fausak). 2000-09-04 22:27:41 +00:00
Ted Lemon
5cefe5e556 - Do what people expect when they don't declare the subnet to which an
interface is attached.
2000-09-01 23:03:39 +00:00
Ted Lemon
0b1e395f13 Adjust arguments to omapi_object_type_register 2000-07-06 22:37:53 +00:00
Ted Lemon
68e1f67a18 - Fix a mistake that was causing the fallback interface not to be used (thanks
to Christof Chen for catching this!)
2000-06-08 21:14:16 +00:00
Ted Lemon
165bce70b2 Fix up various platform-specific errors. 2000-05-17 16:04:26 +00:00
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
38287932f1 Move binding address values into discover.c 2000-05-01 17:31:19 +00:00
Ted Lemon
49733f31d3 Go back to the BSD license. 2000-03-17 04:00:32 +00:00
Ted Lemon
0a7593816b Return -1 when read_socket method is called on non-interface object. 2000-03-06 22:52:16 +00:00
Ted Lemon
bdcaf7b95d Incorporate Brian Murrell's new OMAPI DHCP client changes. 2000-02-15 20:40:36 +00:00
Ted Lemon
41b62b6604 Fix a call to dmalloc. 2000-01-29 16:15:52 +00:00
Ted Lemon
347de8bdb6 Brian Murrell's changes to allow the client to be directed using OMAPI. 2000-01-28 20:30:37 +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
ec73b5458c Linux fixups for haddr/htype->hbuf 2000-01-25 01:04:21 +00:00
Ted Lemon
d4417aa1fb struct hardware conversion. Set close-on-exec if possible. 2000-01-05 18:00:34 +00:00
Ted Lemon
6255153ecb Bomb out when an interface matches two shared networks. 1999-10-24 17:17:22 +00:00
Ted Lemon
bb404b74d1 - Don't try to process the option buffer if there isn't one, and don't
try to process packets that don't at least have the basic BOOTP guts
  in them.
1999-10-08 17:08:34 +00:00
Ted Lemon
b1b7b521fe Get a clean compile with all known gcc warnings. 1999-10-07 06:36:35 +00:00
Ted Lemon
2d92095d6e Fix some uninitialized objects. 1999-09-15 19:47:38 +00:00