#ifndef lint
static char copyright[] =
-"$Id: memory.c,v 1.52 1999/07/02 20:57:24 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: memory.c,v 1.53 1999/07/31 17:57:27 mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
evaluate_option_cache
(&hd -> client_identifier,
(struct packet *)0,
- (struct option_state *)0,
(struct lease *)0,
+ (struct option_state *)0,
+ (struct option_state *)0,
esp -> data.option);
break;
}
if (!hp -> fixed_addr)
continue;
if (!evaluate_data_expression (&fixed_addr, (struct packet *)0,
- (struct option_state *)0,
(struct lease *)0,
+ (struct option_state *)0,
+ (struct option_state *)0,
hp -> fixed_addr -> expression))
continue;
for (i = 0; i < fixed_addr.len; i += 4) {
#ifndef lint
static char copyright[] =
-"$Id: nsupdate.c,v 1.6 1999/07/19 01:15:11 mellon Exp $ Copyright (c) 1999 The Internet Software Consortium. All rights reserved.\n";
+"$Id: nsupdate.c,v 1.7 1999/07/31 17:57:36 mellon Exp $ Copyright (c) 1999 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
oc = lookup_option (&server_universe, state -> options,
SV_DDNS_REV_DOMAIN_NAME);
memset (&d, 0, sizeof d);
- if (oc && evaluate_option_cache (&d, packet,
- packet -> options, lease, oc)) {
+ if (oc && evaluate_option_cache (&d, packet, lease,
+ packet -> options, state -> options,
+ oc)) {
memcpy(revdomain, d.data, d.len);
revdomain[d.len]='\0';
data_string_forget (&d, "nsupdate");
oc = lookup_option (&server_universe, state -> options,
SV_DDNS_DOMAIN_NAME);
memset (&d, 0, sizeof d);
- if (oc && evaluate_option_cache (&d, packet,
- packet -> options, lease, oc)) {
+ if (oc && evaluate_option_cache (&d, packet, lease,
+ packet -> options, state -> options,
+ oc)) {
memcpy(domain, d.data, d.len);
domain[d.len]='\0';
data_string_forget (&d, "nsupdate");
oc = lookup_option (&dhcp_universe, state -> options,
DHO_DOMAIN_NAME);
memset (&d, 0, sizeof d);
- if (oc && evaluate_option_cache (&d, packet, packet -> options,
- lease, oc)) {
+ if (oc && evaluate_option_cache (&d, packet, lease,
+ packet -> options,
+ state -> options,
+ oc)) {
memcpy(domain, d.data, d.len);
domain[d.len]='\0';
data_string_forget (&d, "nsupdate");
oc = lookup_option (&server_universe, state -> options,
SV_DDNS_HOST_NAME);
memset (&d, 0, sizeof d);
- if (oc && evaluate_option_cache (&d, packet,
- state -> options, lease, oc)) {
+ if (oc && evaluate_option_cache (&d, packet, lease,
+ packet -> options, state -> options,
+ oc)) {
memcpy(hostname, d.data, d.len);
hostname[d.len]='\0';
data_string_forget (&d, "nsupdate");
oc = lookup_option (&dhcp_universe,
packet -> options, DHO_HOST_NAME);
memset (&d, 0, sizeof d);
- if (oc && evaluate_option_cache (&d, packet, packet -> options,
- lease, oc)) {
+ if (oc && evaluate_option_cache (&d, packet, lease,
+ packet -> options,
+ state -> options, oc)) {
memcpy(hostname, d.data, d.len);
hostname[d.len]='\0';
data_string_forget (&d, "nsupdate");