2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 21:38:10 +00:00

129 Commits

Author SHA1 Message Date
Shawn Routhier
35de6c8c24 Fix some issues in the code for parsing and printing options.
[ISC-Bugs #22625] - properly print options that have several fields
followed by an array of something for example "fIa"
[ISC-Bugs #27289] - properly parse options in declarations that have
several fields followed by an array of something for example "fIa"
[ISC-Bugs #27296] - properly determine if we parsed a 16 or 32 bit
value in evaluate_numeric_expression (extract-int).
[ISC-Bugs #27314] - properly parse a zero length option from
a lease file.  Thanks to Marius Tomaschewski from SUSE for the report
and prototype patch for this ticket as well as ticket 27289.
2012-06-06 22:50:31 +00:00
Shawn Routhier
c535de4411 Update 26704 to include a null check on the right hand side as well. 2011-11-28 18:01:25 +00:00
Shawn Routhier
b95f1ee070 Add a check for a null pointer before calling the regexec function.
Without out this check we could, under some circumstances, pass
a null pointer to the regexec function causing it to segfault.
[ISC-Bugs #26704].
2011-11-22 23:56:50 +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
Tomek Mrugalski
023fbaa03e - Parameters configured to evaluate from user defined function calls can
now be correctly written to dhcpd.leases
- If a 'next-server' parameter is configured in a dynamic host record via
  OMAPI as a domain name, the syntax written to disk is now correctly parsed
  upon restart.  [ISC-Bugs #22266]
2011-04-21 17:53:48 +00:00
Shawn Routhier
a47d63362f Update copyright years 2009-11-24 02:06:57 +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
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
David Hankins
33ea4622a8 - Added a configuration function, 'gethostname()', which calls the system
function of the same name and presents the results as a data expression.
  This function can be used to incorporate the system level hostname of
  the system the DHCP software is operating on in responses or queries (such
  as including a failover partner's hostname in a dhcp message or binding
  scope, or having a DHCP client send any system hostname in the host-name or
  FQDN options by default).  [ISC-Bugs #17351]
2009-07-06 23:29: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
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
0cfff8d8b3 Missed a file from RT ticket #16988. 2007-07-13 06:51:08 +00:00
David Hankins
26be82affa - Fixed a bug with the 'ddns-updates' boolean server configuration
parameter, which caused the server to fail. [ISC-Bugs #17002]
2007-07-10 21:42:05 +00:00
David Hankins
dd3282251e - Two new operators, ~= and ~~, have been integrated to implement
boolean matches by regular expression (such as may be used in
  class matching statements).  Thanks to a patch by Alexandr S.
  Agranovsky, which underwent slight modification.  [ISC-Bugs #8155]
2007-06-07 15:52:30 +00:00
David Hankins
706792c9d3 Copyright++ 2007-05-19 19:16:28 +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
98bd7ca099 DHCPv6 branch merged to HEAD. 2007-05-08 23:05:22 +00:00
Shane Kerr
c57db45ce9 Spelling fixes. See RT ticket 16513 for details. 2007-01-29 10:25:55 +00:00
Evan Hunt
253c8b6ad1 Change "execute" from numeric expression to executable statement, so
it will not be necessary to use eval(execute(...)) [rt16620]
2007-01-28 23:00:19 +00:00
Shane Kerr
fd79268595 Minor fix, calling wrong free function.
See rt16446 for information.
2006-11-06 18:13:31 +00:00
David Hankins
66c8f7347a - An option definition referencing leak was fixed, which resulted in early
termination of dhclient upon the renewal event. [ISC-Bugs #16423]
2006-10-17 20:45:59 +00:00
David Hankins
b543fea9d4 - A new common configuration executable statement, execute(), has been
added.  This permits dhcpd or dhclient to execute a named external
  program with command line arguments specified from other configuration
  language.  Thanks to a patch written by Mattias Ronnblom, gotten to us
  via Robin Breathe. [ISC-Bugs #13728]
2006-07-31 22:19:51 +00:00
David Hankins
2bddf829f4 - The log message emitted when the 'leased-address' value was not available
in dhcpd.conf "executable statements" has been updated to be more helpful.
  Manpage information for this value has also been updated. [ISC-Bugs #16136]
2006-07-17 15:33:34 +00:00
David Hankins
f7fdb21693 - Varying option space code and length bit widths (8/16/32) are now
supported.  This is a milestone in acheiving RFC 3925 "VIVSO" and
  DHCPv6 support. [ISC-Bugs #15979]
2006-06-01 20:23:18 +00:00
David Hankins
2727c1cf8f - lcase() and ucase() configuration expressions have been added which adjust
their arguments from upper to lower and lower to upper cases respectively.
  [ISC-Bugs #1597]
2006-05-11 16:31:29 +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
Ted Lemon
d758ad8cac Merge changes between 3.0rc7 and 3.0rc8pl2. 2001-06-27 00:31:20 +00:00
Ted Lemon
36ed3a00a5 Fix a small bug in binary-to-ascii. 2001-04-18 18:54:47 +00:00
Ted Lemon
4b63da96d1 Get rid of a ??? that confuses the Sun compiler. 2001-03-22 07:00:15 +00:00
Ted Lemon
c466184540 Fix up NetBSD/alpha build. 2001-02-26 22:21:15 +00:00
Ted Lemon
76a8f1634c Fix a small cosmetic error. 2001-01-25 08:24:33 +00:00
Ted Lemon
6cff8371b5 Fix some compile problems. 2001-01-17 16:56:48 +00:00
Ted Lemon
2c46528f22 Fix equal to compare arbitary types, rather than just data. 2001-01-16 23:15:38 +00:00
Ted Lemon
79c36eb70f - Move string set/reference/unset from ddns.c to here.
- Constify updrec -> r_name.
2001-01-11 02:14:23 +00:00
Ted Lemon
7167c65402 Globalize resolver state. 2001-01-03 23:43:24 +00:00
Ted Lemon
aab30e3b02 Fix debug message for 'static' operator. 2000-12-28 23:20:28 +00:00
Ted Lemon
16121af516 - Add client-state expression.
- Fix debugging printf formats.
- Pass client state to eval functions.
2000-11-28 23:23:13 +00:00
Ted Lemon
97a4f219a3 Fix a mistaken reference in reverse(). 2000-11-24 04:08:31 +00:00
Ted Lemon
975bd4642d - Add some code for testing more potential configuration file errors at
parse time, but don't enable it yet.
- Use option_get and option_put rather than universe-specific get_func
  and put_func calls.
2000-10-10 22:51:58 +00:00
Ted Lemon
a5fc6758ef Use suffix.len, not substring.len, when evaluating suffix operator. 2000-09-27 19:19:32 +00:00
Damien Neil
3c98e80b46 Added binary operators: & | ^. 2000-08-28 21:22:41 +00:00
Damien Neil
1b234d446f Finished up function call support. 2000-08-28 19:36:39 +00:00
Damien Neil
2541d05703 Fixes bug #246.
(null or true) is now true, rather than null.
2000-08-22 21:21:54 +00:00
Ted Lemon
6ceb9118e9 Reference count binding scopes. Align IP headers on output. 2000-07-27 09:03:08 +00:00
Ted Lemon
0e97ecc852 - Make and and or evaluate only the lhs if the lhs will determine the
outcome of the evaluation.
- Fix debugging code.
2000-07-06 10:00:53 +00:00
Ted Lemon
55321a210e Clean up a possible memory smash in the binding code. 2000-06-12 22:22:09 +00:00
Ted Lemon
165bce70b2 Fix up various platform-specific errors. 2000-05-17 16:04:26 +00:00
Ted Lemon
0bcad76189 Add the numeric operators to is_numeric_expression. 2000-03-18 03:32:53 +00:00
Ted Lemon
7d9784f6fc Patch in TSIG, just to see how to get it to work. 2000-03-18 02:15:52 +00:00