2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-28 12:57:42 +00:00

1205 Commits

Author SHA1 Message Date
Shawn Routhier
8cd88e202b -n [master]
[rt26311]
    Fix the issue with DDNS by checking to see if we have added a pointer
    to the ddns_cb and skipping the cache threshold check if we did.  Also
    expand and correct the cache threshold check into the delayed ack code.
2013-08-27 11:09:12 -07:00
Shawn Routhier
08b2d34783 [master]
Modify the class and subclass code to allow for dynamic addition and
removal of subclasses.  See 27452 for details.
2013-06-05 18:15:49 -07:00
Mark Andrews
9626483bbb - Address static analysis warnings.
[ISC-Bugs #33510] [ISC-Bugs #33511]
2013-05-23 14:21:20 +10:00
Mark Andrews
dc9d7b08aa - Silence benign static analysis warnings.
[ISC-Bugs #33428]
2013-05-15 10:49:54 +10:00
Mark Andrews
a24b9f23d0 - Use newer auto* tool packages and turn on RFC_3542 support on Mac OS.
[ISC-Bugs #26303]
2013-03-28 17:11:06 +11:00
Jeremy C. Reed
8e112e2bc6 Various minor documentation improvements:
remove repeated words

fix: it's to its

some minor formatting added
	(this needs to be improved still, there is a mix
	of \fB Bold and \fI underline for same things)

spelling fixes

minor punctuation fixes (remove ...)

uppercase an acronym that is not a config item

(I didn't get this reviewed, these all are very minor or obvious.)
2013-01-28 18:01:41 -06:00
Shawn Routhier
b89b8e1628 -n [master]
Clean up ATF issues:
describe patch to ATF code for solaris 11
remove unneeded options for use on solaris 11
comment out unused hash test
[rt32089]
2012-12-13 11:29:35 -08:00
Shawn Routhier
9ff4e0a221 [master]
Move the dhclient.conf and dhcpd.conf files to *.example
to avoid overwriting them during installation.
2012-11-19 11:42:38 -08:00
Shawn Routhier
0d93c339de [master]
Tidy up some compiler issues in the debug code
[ISC-Bugs #26460]
2012-11-16 17:02:03 -08:00
Shawn Routhier
f8380d3ff2 [master]
+- Add support for a simple check that the server id in a request message
+  to a failover peer matches the server id of the server.  This support
+  is enabled by editing the file includes/site.h and uncommenting the
+  definition for SERVER_ID_CHECK.  The option has several restrictions
+  and issues - please read the comment in the site.h file before
+  enabling it.
+  [ISC-Bugs #31463]
2012-11-16 15:02:13 -08:00
Shawn Routhier
d56788df77 [master]
Modify the nak_lease function to make some attempts to find a
server-identifier option to use for the NAK.
2012-11-02 16:37:03 -07:00
Shawn Routhier
0f750c4fb1 [master]
[rt23833]
Clean up a number of items identified by the Coverity
static analysis tool.  Runs courtesy of Red Hat.
2012-10-16 15:05:24 -07:00
Shawn Routhier
881442e20f [rt26108]
Update auto generated files for rt26108
2012-10-11 21:53:13 +00:00
Shawn Routhier
dbd6551769 [master]
[ISC-Bugs #26108]
Add a compile time option, enable-secs-byteorder, to deal with
clients that do the byte ordering on the secs field incorrectly.
This field should be in network byte order but some clients
get it wrong.  When this option is enabled the server will examine
the secs field and if it looks wrong (high byte non zero and low
byte zero) swap the bytes.  The default is disabled.  This option
is only useful when doing load balancing within failover.
2012-10-11 14:30:24 -07:00
Shawn Routhier
30e4232753 [master]
[rt30320]
When processing a failover request with an unexpected name
create an option block the relationship_name instead of using
the one from the incoming message.  This avoids problems when
the option is freed.

Also add code to free the relationship_name from the incoming
mesasage when we free the message.
2012-10-09 14:08:26 -07:00
Shawn Routhier
67b2cb451b [master]
Update the memory leakage debug code to work with v6.
2012-09-19 14:27:44 -07:00
Shawn Routhier
529be52a84 Add common/tests/Atffile and server/tests/Atffile to the distribution
and rebuild the auto generated files
2012-08-23 18:14:17 +00:00
Shawn Routhier
0b2ec8c99c [rt30281]
Modify the renew_lease6() code to properly handle a lease time
that is reduced rather than extended.
Fix the ATF tests for mdb6 and add a new test to check the
above condition.
2012-08-17 12:05:49 -07:00
Tomek Mrugalski
85c8df6dd0 [master] Merge branch 'rt25901_atf'
Conflicts:
	configure
2012-08-14 15:20:46 +02:00
Tomasz Mrugalski
0b483f01af [rt25901_atf] autoreconf --install 2012-08-14 13:00:01 +00:00
Tomek Mrugalski
2611324386 [rt25901_atf] Added comments to {server,common}/Makefile.am,
version reverted from 4.2.0-git to 4.2.0
2012-08-14 14:58:12 +02:00
Shawn Routhier
a0497ac5ac [rt29771]
[rt29770]
[rt29846]
Tidy up man pages, mostly convert a period followed by 1
or 3 spaces to a period followed by 2 spaces.  This also
covers tickets 29770 and 29846

Squashed commit of the following:

commit d40674fdfc8a81a44f8033bf048587a3eab0471f
Author: Shawn Routhier <sar@isc.org>
Date:   Fri Aug 3 17:55:05 2012 -0700
2012-08-13 16:22:32 -07:00
Tomasz Mrugalski
e3bbdbfd47 [rt25901_atf] autoreconf 2012-08-10 09:33:05 +00:00
Tomek Mrugalski
22a37d9f15 [rt25901_atf] tests subdirs are now unconditionally listed in SUBDIRS 2012-08-10 11:30:48 +02:00
Tomek Mrugalski
f9effb95d4 [rt25901_atf] Atffile/compilation cleanup, ATF description updated 2012-08-08 00:23:01 +02:00
Shawn Routhier
355db4b687 [rt30024]
Move the line that zeros the packet_oro variable to
be earlier so it is properly cleared if we exit early.
2012-07-12 22:55:19 -07:00
Shawn Routhier
3bedb11744 [rt30024] This is a commit message
Fix a pair of memory leaks.
2012-07-11 14:50:35 -07:00
Tomasz Mrugalski
b81b413d21 [rt25901_atf] Missing server/tests/Makefile.in added. 2012-07-05 15:00:07 +00:00
Stephen Morris
904a771add [rt25901_atf] Minor corrections to some files
Minor corrections to some of the atf.dox documentation.  Also modified
hash_unitest.c to avoid problems in "printf" (the format string %lu was wrong
for a size_t on my machine, so an explicit cast was made to the correct type).
2012-07-04 17:06:32 +01:00
Tomek Mrugalski
deb1693da2 [rt25901_atf] Indentation cleanup of mdb6_unittest.c 2012-07-02 19:05:05 +02:00
Tomek Mrugalski
3afbcb6cf9 [rt25901_atf] Intentation clean-up. 2012-07-02 18:58:30 +02:00
Tomek Mrugalski
97ddf9d161 [rt25901_atf] Test for 29851 simiplified 2012-07-02 18:45:07 +02:00
Tomek Mrugalski
54d3aff8f3 [rt25901_atf] Timeout set for rt29851 test 2012-07-02 18:36:28 +02:00
Tomek Mrugalski
3b02a77aec [rt25901_atf] Added test that reproduces 29851 issue. 2012-07-02 18:28:32 +02:00
Tomek Mrugalski
f94d5a1411 [rt25901_atf] Tests for 3 hosts implemented. 2012-07-02 15:06:00 +02:00
Tomek Mrugalski
bbcea18c3c [rt25901_atf] uid_hash test parametrized, added 2 exta tests. 2012-07-02 14:47:15 +02:00
Tomek Mrugalski
5f10a36cf6 [atf25901_atf] #if 0 converted to comment. 2012-07-02 13:54:06 +02:00
Tomek Mrugalski
ab61011260 [rt25901_atf]: First uid_hash test ready (with 36 checks) 2012-07-02 13:41:35 +02:00
Tomek Mrugalski
5fe45d0791 [rt25901_atf] autotool files regenerated 2012-07-02 10:59:47 +02:00
Tomek Mrugalski
9f89d01ec1 [25901_atf] First test for client-id hash table implemented.
It still lacks many checks and clean-ups, but the core code is there.
2012-06-29 19:56:27 +02:00
Tomek Mrugalski
db81cc0ca0 [25901_atf] Existing alloc tests in common converted to ATF 2012-06-29 16:59:17 +02:00
Shawn Routhier
e563ec2e58 When attempting to convert a DUID from a client id option
into a hardware address handle unexpected client ids properly.
Thanks to Markus Hietava of Codenomicon CROSS project for the
finding this issue and CERT-FI for vulnerability coordination.
[ISC-Bugs #29852]
CVE: CVE-2012-3570
2012-06-27 21:33:25 +00:00
Shawn Routhier
32e651c418 A problem with missing get_hw_addr function when --enable-use-sockets
was used is now solved on GNU/Linux, BSD and GNU/Hurd systems. Note
that use-sockets feature was not tested on those systems. Client and
server code no longer use MAX_PATH constant that is not defined on
GNU/Hurd systems. [ISC-Bugs 25979]
2012-06-08 23:28:11 +00:00
Shawn Routhier
6980ae03c3 The 'no available billing' log line now also logs the name of the last
matching billing class tried before failing to provide a billing.
ISC-Bugs #21759]
2012-06-06 23:55:01 +00:00
Shawn Routhier
cbbd2714d6 - Rotate the lease file when running in v6 mode.
[ISC-Bugs #24887]
2012-05-15 21:07:17 +00:00
Shawn Routhier
bb9189c30a Fix up some issues found by static analysis
A potential memory leak and NULL dereference in omapi.
The use of a boolean test instead of a bitwise test in dst.
[ISC-Bugs #28941]
2012-04-11 15:43:34 +00:00
Shawn Routhier
d19fa5a1b5 Fix the NA and PD allocation code to handle the case where a client
provides a preference and the server doesn't have any addresses or
prefixes available.  Previoulsy the server ignored the request with
this patch it replies with a NoAddrsAvail or NoPrefixAvai respone.
By default the code performs according to the errata of August 2010
for RFC 3315 section 17.2.2, to enable the previous style see the
seciton on RFC3315_PRE_ERRATA_2010_08 in includes/site.h.  This option
may be removed in the future.
Thanks to Jiri Popelka at Red Hat for the patch.
[ISC-Bugs #22676]
2012-04-10 22:13:46 +00:00
Shawn Routhier
d289ee683e Remove unnecessary checks in the lease query code and clean up
several compiler issues (some dereferences of NULL and treating
an int as a boolean).
[ISC-Bugs #26203]
2012-04-10 21:26:44 +00:00
Shawn Routhier
bc7f8b8e39 Multiple items to clean up IPv6 address processing.
When processing an IA that we've seen check to see if the
addresses are usable (not in use by somebody else) before
handing it out.
When reading in leases from the file discard expired addresses.
When picking an address for a client include the IA ID in
addition to the client ID to generally pick different addresses
for different IAs.
[ISC-Bugs #23138] [ISC-Bugs #27945] [ISC-Bugs #25586]
[ISC-Bugs #27684]
2012-04-10 00:54:35 +00:00
Shawn Routhier
6f1a6f94fc update copyright 2012-04-02 22:47:35 +00:00