Shawn Routhier
c850c0eec5
Restore common/discover.c, common/options.c and server/dhcp.c
...
as I mistakenly committed them to head instead of the ticket
branch.
2011-07-02 00:05:35 +00:00
Shawn Routhier
640101e3d3
Correct an unsigned math operation when calculating the options
...
buffer space for bootp and use a better constant - DHCP packet
size instead of DHCP packet size + udp and iP headers.
Check that we have a packet->options structure before using it.
Only process packets that are longer than a bootp fixed packet
including server and file names. Previously we allowed for
shorter packets but that wasn't working and nobody noticed.
2011-07-01 23:11:53 +00:00
Shawn Routhier
7cfeb9160d
In Solaris 11 switch to using sockets instead of DLPI, thanks
...
to a patch form Oracle. [ISC-Bugs #24634 ].
2011-06-27 16:00:32 +00:00
Tomek Mrugalski
a34feb7d81
- Code cleanup: remove obsolete PROTO, KandR, INLINE and ANSI_DECL macros
...
[ISC-Bugs #13151 ]
2011-05-11 14:01:25 +00:00
Shawn Routhier
98bf16077d
Support for asynchronous ddns per ticket 19216 - convert to using isclib and
...
dnslib.
2009-10-28 04:12:30 +00:00
Shawn Routhier
875e99dc30
Fix the check in the signal handler code to check if there is an inner
...
signal handler before calling it. Previously we check if there was a
get_value function.
2009-09-09 19:05:17 +00:00
Shawn Routhier
2c85ac9b24
Switch isc urls from http to https and correct sw to services or software
...
for new web site as appropirate.
2009-07-23 18:52:21 +00:00
Paul Selkirk
32fd12cc74
update copyright
2009-07-16 22:01:26 +00:00
Paul Selkirk
3e29af1e72
Don't look for IPv6 interfaces on Linux when running in DHCPv4 mode. [RT#18721,19367,19511]
2009-07-16 21:44:55 +00:00
David Hankins
a57df74a1a
- Compilation on Solaris with USE_SOCKETS defined in includes/site.h has
...
been repaired. Other USE_ overrides should work better. [ISC-Bugs #19434 ]
- A check for the local flavor of IFNAMSIZ had a broken 'else' condition,
that probably still resulted in the correct behaviour (but wouldn't use
a larger defined value provided by the host OS). [ISC-Bugs #19434 ]
2009-04-30 18:42:52 +00:00
David Hankins
ecddae64a2
- The v6 BSD socket method was updated to use a single UDP BSD socket
...
no matter how many interfaces are involved, differentiating the
interfaces the packets were received on by the interface index supplied
by the OS.
- The relay agent no longer listens to the All DHCP Servers Multicast
address.
- A bug was fixed in data_string_sprintfa() where va_start was only called
once for two invocations of vsprintf() variants.
[ISC-Bugs #17610b]
2008-08-29 17:48:57 +00:00
David Hankins
0524508a91
Backing out [ISC-Bugs #17610 ]
2008-08-08 22:37:46 +00:00
David Hankins
08c4e7ce2b
- The BSD socket code will now permit multiple DHCPv6 server instances to
...
operate on different interfaces. [ISC-Bugs #17610 ]
2008-08-08 20:26:57 +00:00
Evan Hunt
7de20a9518
- Merge dhcrelay6 into dhcrelay
...
- Prep for 4.1.0a2 release
2008-06-13 00:55:53 +00:00
Mark Andrews
00a002fc76
- Fix startup error messages to report a missing "subnet6 declaration", rather
...
than a missing "subnet declaration", when running as a DHCPv6 server.
2008-02-13 06:41:05 +00:00
Evan Hunt
dccb6edf66
Updated copyright strings for 4.1.0a1 release
2008-01-24 02:43:06 +00:00
Mark Andrews
b8c0eda0e5
DHCP now builds under AIX
2008-01-23 22:49:54 +00:00
David Hankins
7285af3087
- DDNS updates state information are now stored in 'binding scopes' that
...
follow the leases through their lifecycles. This enables DDNS teardowns
on leases that are assigned and expired inbetween a server restart (the
state is recovered from dhcpd.leases). Arbitrary user-specified binding
scopes ('set var = "value";') are not yet supported.
2007-10-05 22:29:51 +00:00
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