2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-29 05:17:57 +00:00

1214 Commits

Author SHA1 Message Date
David Hankins
d1045c25b5 Conditionally include ifaddrs.h if USE_BPF_RECEIVE is defined. 'struct
ifaddr' is only used if this method is being used for receive, and not all
systems have ifaddrs.h.  [ISC Bugs #16865-p1].
2007-05-19 16:14:48 +00:00
David Hankins
8c7c9ace0e s/nameservers/nameserver/ 2007-05-19 16:02:38 +00:00
David Hankins
2cf8d0bddd - Fix documentation of the domain-search atom (quoted, with commas).
- Document DHCPv6 options presently in the default table.
2007-05-18 19:45:08 +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
David Hankins
6705543f81 - Additional warnings and such from robie. [ISC-Bugs #16865d] 2007-05-17 18:27:11 +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
3496f11e70 Update comment per rt16841. 2007-05-16 21:29:57 +00:00
David Hankins
a512d11b6d - Corrected some situations where variables might be used without being
initialized. [ISC-Bugs #16865]

- Silenced several other compiler warnings. [ISC-Bugs #16865]

- Include the more standard sys/uio.h rather than rely upon other header
  files to include it (fixes a BSDI compile failure). [ISC-Bugs #16865]
2007-05-11 15:50:18 +00:00
David Hankins
98bd7ca099 DHCPv6 branch merged to HEAD. 2007-05-08 23:05:22 +00:00
Evan Hunt
83c0372e28 Assorted fixes for broken network devices: IP header length field is now
determined from payload, because some NIC drivers return more data than
they actually recived; IP and UDP packets now stored in aligned data
structures; outgoing packet TTL increased from 16 to 128. [rt15583]
2007-04-27 23:54:06 +00:00
David Hankins
24b364de79 Document link-selection. 2007-04-18 15:53:14 +00:00
David Hankins
67674ffb38 - Timestamp parsing errors that indicated missing "minutes" fields rather
than the actually missing "seconds" fields have been repaired thanks to
  a patch from Kevin Steves. [ISC_Bugs #16505]
2007-04-16 17:32:02 +00:00
David Hankins
06211b4018 - A bug was repaired in subencapsulation support, where spaces separated
by empty spaces would not get included. [ISC-Bugs #16805]
2007-04-12 16:15:31 +00:00
David Hankins
ecde99a330 - A bug was fixed where the nwip virtual option space was referencing
the fqdn option's virtual option space's option cache. [ISC-Bugs #16801]
2007-04-11 02:04:39 +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
David Hankins
85edef5cfe - A bug was fixed in dhclient rendering the textual output form of the
domain-search option syntax. [ISC-Bugs #16586]
2007-01-11 16:31:51 +00:00
David Hankins
a7ee93fe57 - A segfault bug in recursive encapsulation support has been corrected.
[ISC-Bugs #16480]
2006-11-09 22:08:28 +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
Shane Kerr
fd79268595 Minor fix, calling wrong free function.
See rt16446 for information.
2006-11-06 18:13:31 +00:00
David Hankins
6708d944e1 - Some default hash table sizes were tweaked, some upwards, some downwards.
3.1.0a1's tables resulted in a reduction in default server memory use.
  The new selected values provide more of a zero sum (increasing the size
  of tables likely to be populated, decreasing the size of tables unlikely).

- Lease structures appear in three spearate hashes: by IP address, by UID,
  and by hardware address.  One type of table was used for all three, and
  improvements to IP address hashing were applied to all three (so UID and
  hardware addresses were treated like 4-byte integers).  There are now two
  types of tables, and the uid/hw hashes use functions more appropriate
  to their needs.

- The max-lease-misbalance percentage no longer causes scheduled rebalance
  runs to be skipped: it still governs the schedule, but every scheduled
  run will attempt balance.

[ISC-Bugs #16396]
2006-10-27 22:54:13 +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
bdddcb7d96 - A bug in the FQDN universe that added FQDN codes to the NWIP universe's
hash table was repaired. [ISC-Bugs #16395]
2006-09-18 17:35:44 +00:00
David Hankins
f2c69b72a8 - Silence warnings from robie. [ISC-Bugs #16358] 2006-08-24 14:58:55 +00:00
Shane Kerr
96bbe8c538 Merge of rt16329, adds encapsulation within encapsulation. 2006-08-11 09:15:17 +00:00
David Hankins
78c553c4a0 Removing the new I/O changes from HEAD. [ISC-Bugs #16328] 2006-08-09 14:57:48 +00:00
Shane Kerr
4cba29f04f Pulling in rt16318, a set of fixes for 3.1 from Hankins. 2006-08-04 10:59:33 +00:00
David Hankins
5786874726 Several minor bugs never seen in any public release corrected.
[ISC-Bugs #16316]
2006-08-02 22:36:00 +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
Shane Kerr
d5341d9b5f New options added, and some magic code to parse unknown options.
See ticket rt15925.
2006-07-26 15:43:52 +00:00
David Hankins
41e4506776 - DHCPD is now RFC2131 section 4.1 compliant (broadcast to all-ones ip and
ethernet mac address) on the SCO platform specifically without any strange
  ifconfig hacks.  Many thanks go to the Kroger Co. for donating the
  hardware and funding the development. [V3-0-1-KROGER-WORK-BRANCH] - funded
  development.
2006-07-25 17:41:18 +00:00
Shane Kerr
07de837526 Added associated-ip to priority list, for rt16180. 2006-07-25 13:36:58 +00:00
Shane Kerr
6d103865fb Merged rt12324, DHCPLEASEQUERY. 2006-07-25 13:26:00 +00:00
Shane Kerr
272ef1bca0 Hankin's fixes for hash-related core dumps on HEAD. 2006-07-25 09:59:39 +00:00
David Hankins
dba5803b95 - Support for compressed 'domain name list' style DHCP option contents, and
in particular the domain search option (#119) was added. [ISC-Bugs #15934]
2006-07-22 02:24:16 +00:00
David Hankins
567e85616c - In those cases where the DHCP software manufactures an IP header (to
transmit via bpf, lpf, etc), the IP TTL the software selects has been
  increased from 16 to 128.  This is intended to match Microsoft Windows
  DHCP Client behaviour, to increase compatibility. [ISC-Bugs #15583 and
  #3226]
2006-07-19 18:00:36 +00:00
David Hankins
3004bebf47 - A new DDNS related server option, update-conflict-detection, has been
added.  If this option is enabled, dhcpd will perform normal DHCID
  conflict resolution (the default).  If this option is disabled, it will
  instead trust the assigned name implicitly (removing any other bindings
  on that name).  This option has not been made available in dhclient.
  [ISC-Bugs #16165]
2006-07-19 17:14:55 +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
2426234f7c - Failover pairs now implement 'MAC Affinity' on leases moving from the
active to free states.  Leases that belonged to the failover secondary
  are moved to BACKUP state rather than FREE upon exiting EXPIRED state.
  If lease rebalancing must move leases, it tries first to move leases
  that belong to the peer in need.
- The server no longer sends POOLREQ messages unless the pool is severely
  misbalanced in the peer's favor (see 'man dhcpd.conf' for more details).
- Pool rebalance events no longer happen upon successfully allocating a
  lease.  Instead, they happen on a schedule.  See 'man dhcpd.conf' for the
  min-balance and max-balance statements for more information.

  [ISC-Bugs #13308]
2006-06-16 19:26:45 +00:00
David Hankins
5e86441636 - A new common (server or client) option, 'db-time-format local;', has
been added which prints the local time in /var/db/dhcpd.leases rather
  than UTC.  Thanks to a patch from Ken Lalonde. [ISC-Bugs #2678]
2006-06-06 16:35:18 +00:00
David Hankins
d19e2cf7de Compiler warnings (a few were bugfixes internal to HEAD development) silenced.
[ISC-Bugs #16133]
2006-06-05 16:42:59 +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
ee91252816 - The subnet-mask option is now supplied by default, but at lowest
priority.  This helps a small minority of clients that provide parameter
  request lists, but do not list the subnet-mask option because they were
  designed to interoperate with a server that behaves in this manner.
  [ISC-Bugs #1196]
- The FQDN option is similarly supplied even if it does not appear on the
  parameter request list, but not to the exclusion of options that do
  appear at the parameter request list.  Up until now it had ultimate
  priority over the client's parameter request list.  [ISC-Bugs #1196]
2006-05-30 19:58:14 +00:00
David Hankins
febbd40203 - The dhclient 'reject ...;' statement, which rejects leases given by named
server-identifiers, now permits address ranges to be specified in CIDR
  notation. [ISC-Bugs #1435]
2006-05-15 15:07:50 +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
3a16098f0b Pulling work between V3-0-4B3 and present v3-release-branch to HEAD. 2006-05-05 20:32:31 +00:00
David Hankins
91e17fc3aa Manpage patch from user. 2006-04-26 15:13:11 +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
b43c87ad59 - RFC3942 compliance, site-local option spaces start at 224 now, not 128.
[ISC-Bugs #13142]
2005-09-30 19:15:55 +00:00