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

2370 Commits

Author SHA1 Message Date
Ted Lemon
998205cee2 Add the FQDN_FQDN suboption. 2001-01-08 17:23:03 +00:00
Ted Lemon
8120ab76d0 Add fqdn.fqdn suboption. 2001-01-08 17:21:38 +00:00
Ted Lemon
42623ef893 - Store the complete FQDN as an accessible option, and use that when
encapsulating the FQDN option to the client.
2001-01-08 17:19:59 +00:00
Ted Lemon
b8a4e41a7a Fix a signed vs. unsigned problem. 2001-01-08 15:39:43 +00:00
Ted Lemon
fd35aacb24 Add client-updates config option. 2001-01-08 08:24:56 +00:00
Ted Lemon
3031654ab7 Document interim DDNS updates implementation. 2001-01-08 08:24:23 +00:00
Ted Lemon
797d58b313 Don't say (not authoritative) when we are. 2001-01-08 08:23:21 +00:00
Ted Lemon
26cb4b2d7c Add define for client-updates configuration variable. 2001-01-08 08:22:35 +00:00
Ted Lemon
6657e93a64 Don't try to move the lease if it doesn't have a pool. 2001-01-06 21:39:30 +00:00
Ted Lemon
48ceb859f8 Don't use the -gcc suffix in naming work directories 2001-01-06 21:38:50 +00:00
Ted Lemon
bdad826feb - Don't save the IP address as an ASCII string variable.Don't update
the PTR if the update of the A failed.
- Don't do the delete with the 'interim/rfc' code if we didn't do the
  add with the 'interim/rfc' code.
- Don't delete the dhcid RR if there is still a valid A RR, and don't
  just delete all A RRs when installing a new one - the client may
  legitimately have IP addresses on more than one subnet.
2001-01-06 21:37:21 +00:00
Ted Lemon
9c5706a682 Include net/if_arp.h for ARPHRD_* 2001-01-06 21:32:49 +00:00
Ted Lemon
27b3dc1d62 Add support for printing NXDOMAIN and YXDOMAIN prerequisites. 2001-01-06 21:32:26 +00:00
Ted Lemon
d8c76890f8 Use -c with bsdinstall on Tru64. 2001-01-04 00:33:03 +00:00
Ted Lemon
b282197910 - Move ddns_removals out of the on_release conditionals so that it actually
happens.
2001-01-04 00:30:53 +00:00
Ted Lemon
5cc21fb313 Alphabetize configuration options and add documentation for more of them. 2001-01-04 00:27:20 +00:00
Ted Lemon
d7f6db1575 - Oops, tack the ad-hoc ddns updates to the end of the root group statement
list if ad-hoc is enabled.
2001-01-04 00:23:39 +00:00
Ted Lemon
bf9d9d2720 If ddns-updates is not set, default to enabled. 2001-01-04 00:15:50 +00:00
Ted Lemon
385fcb2704 - Globalize resolver state.
- Fix an uninitialized variable.
- Log updates.
2001-01-04 00:08:16 +00:00
Ted Lemon
59ae3999dd - Add a null statement type, so that uninitialized statements won't
masquerade as if statements.
2001-01-04 00:02:06 +00:00
Ted Lemon
de427245f2 - Globalize resolver state.
- Add an unset function for unsetting variables.
2001-01-03 23:50:13 +00:00
Ted Lemon
7167c65402 Globalize resolver state. 2001-01-03 23:43:24 +00:00
Ted Lemon
63a0ff886d - Make it possible for parse_option_token to modify the format pointer, to
support the 'N' and 'E' option codes.
2001-01-03 23:33:18 +00:00
Ted Lemon
2bf47722e9 Don't make bogus statements a fatal error. 2001-01-03 23:15:33 +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
a256fd856f - Add ddns-update-style configuration option, which depends on new
enumeration parsing support.
- Add ddns-styles enumeration for ddns-update-style option.
2000-12-29 06:51:21 +00:00
Ted Lemon
fafe846361 - Require user to declare a ddns update style.
- Put back support for old-style ddns updates.
- Add ddns-update-style parameter, which can be ad-hoc, interim or none.
2000-12-29 06:49:38 +00:00
Ted Lemon
5fac73d638 Only do new-style ddns updates if that style is enabled. 2000-12-29 06:48:14 +00:00
Ted Lemon
6cecb7c50d Initialize omapi before trying to mess with interfaces. 2000-12-29 06:47:46 +00:00
Ted Lemon
6e8d142358 Add structure definitionns for enumerations. 2000-12-29 06:47:16 +00:00
Ted Lemon
dbcc689ea5 Add externs for enumerations and ddns styles. 2000-12-29 06:47:06 +00:00
Ted Lemon
90439d6bfe Fix up internal documentation for option parse codes. 2000-12-29 06:46:23 +00:00
Ted Lemon
42c6a80350 Add support for parsing enumerations. 2000-12-29 06:45:49 +00:00
Ted Lemon
3a9992b455 Add support (not debugged) for printing enumerations. 2000-12-29 06:45:00 +00:00
Ted Lemon
3c8073547f - Partially document new DDNS code.
- Move the DDNS parameters to where all the other parameters are documented,
  and document the new parameters.
2000-12-29 05:10:41 +00:00
Ted Lemon
4bcdb16d41 Fix a case where leases could wind up with too many references. 2000-12-28 23:34:08 +00:00
Ted Lemon
a25a18d772 Document lease abandonment and reallocation. 2000-12-28 23:29:47 +00:00
Ted Lemon
4f76762762 - If we receive a dhcp-server-identifier option in a DHCPREQUEST, print it
in the log.
- Fix abandoned lease reclamation.
- Do correct reference counting when doing one-lease-per-client.
2000-12-28 23:28:17 +00:00
Ted Lemon
0598e123df Tweak the way the dhcid is computed. 2000-12-28 23:23:46 +00:00
Ted Lemon
f5985f55bf - Always decrement the reference count on an object before dereferencing it,
so that if there's a dangling pointer, it's caught at dereference time.
2000-12-28 23:22:43 +00:00
Ted Lemon
8bed305da3 Prototype interface_setup (). 2000-12-28 23:21:35 +00:00
Ted Lemon
3fdb840514 Correctly implement the subnet selection option. 2000-12-28 23:20:53 +00:00
Ted Lemon
aab30e3b02 Fix debug message for 'static' operator. 2000-12-28 23:20:28 +00:00
Ted Lemon
630786fcff - Fix typo in base64 table (Albert Herranz).
- Allow key names to be any valid domain name.
2000-12-28 23:18:36 +00:00
Ted Lemon
98a8d72e71 - Fix up a minor nit in the fqdn code.
- Consistently tack an end option onto any outgoing option buffer.
2000-12-28 23:16:19 +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
e93c7089ca Account for word alignment of buffer returned by bpf. 2000-12-28 23:13:07 +00:00
Ted Lemon
fc303b3199 Oops, put a cvs tag on versions built from cvs 2000-12-13 21:49:24 +00:00
Damien Neil
b992d7e23d DDNS implementation rewrite. DDNS should now operate according to
<draft-ietf-dhc-dhcp-dns-12.txt>.

common/options.c, common/tables.c, includes/dhcp.h:
  Split the fqdn.name option into fqdn.hostname and fqdn.domainname.

includes/dhcpd.h, server/Makefile.dist, server/ddns.c, server/dhcp.c,
server/mdb.c, server/stables.c:
  Added a new file (server/ddns.c) containing the DDNS updates code.
  This file exports two functions: ddns_updates() and ddns_removals().
  ddns_updates() is called when a lease is granted, and ddns_removals()
  is called when the lease expires or is released.

server/dhcpd.c:
  Remove the previous DDNS update code, and add default code for the
  ddns-hostname, ddns-domainname, ddns-ttl, and ddns-rev-domainname
  server options.
2000-12-11 18:56:45 +00:00
Damien Neil
8c3c655296 Properly add ".SIG-ALG.REG.INT." to OMAPI key algorithms. 2000-12-09 00:10:55 +00:00