2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Parse DNS update tokens if provided.

This commit is contained in:
Ted Lemon
1999-07-01 19:32:29 +00:00
parent 4c8ed1885e
commit f7c826883f

View File

@@ -22,7 +22,7 @@
#ifndef lint
static char copyright[] =
"$Id: confpars.c,v 1.72 1999/04/23 23:50:22 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
"$Id: confpars.c,v 1.73 1999/07/01 19:32:29 mellon Exp $ Copyright (c) 1995, 1996 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -1463,6 +1463,8 @@ TIME parse_timestamp (cfile)
| TIMESTAMP date
| HARDWARE hardware-parameter
| UID hex_numbers SEMI
| DDNS_FWD_NAME hostname
| DDNS_REV_NAME hostname
| HOSTNAME hostname SEMI
| CLIENT_HOSTNAME hostname SEMI
| CLASS identifier SEMI
@@ -1647,6 +1649,30 @@ struct lease *parse_lease_declaration (cfile)
token = BILLING;
break;
#if defined (NSUPDATE)
case DDNS_FWD_NAME:
seenbit = 4096;
token = peek_token (&val, cfile);
if (token == STRING)
lease.ddns_fwd_name =
parse_string (cfile);
else
lease.ddns_fwd_name =
parse_host_name (cfile);
break;
case DDNS_REV_NAME:
seenbit = 8192;
token = peek_token (&val, cfile);
if (token == STRING)
lease.ddns_rev_name =
parse_string (cfile);
else
lease.ddns_rev_name =
parse_host_name (cfile);
break;
#endif
default:
skip_to_semi (cfile);
seenbit = 0;