mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-09-01 06:45:27 +00:00
Parse DNS update tokens if provided.
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
static char copyright[] =
|
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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include "dhcpd.h"
|
#include "dhcpd.h"
|
||||||
@@ -1463,6 +1463,8 @@ TIME parse_timestamp (cfile)
|
|||||||
| TIMESTAMP date
|
| TIMESTAMP date
|
||||||
| HARDWARE hardware-parameter
|
| HARDWARE hardware-parameter
|
||||||
| UID hex_numbers SEMI
|
| UID hex_numbers SEMI
|
||||||
|
| DDNS_FWD_NAME hostname
|
||||||
|
| DDNS_REV_NAME hostname
|
||||||
| HOSTNAME hostname SEMI
|
| HOSTNAME hostname SEMI
|
||||||
| CLIENT_HOSTNAME hostname SEMI
|
| CLIENT_HOSTNAME hostname SEMI
|
||||||
| CLASS identifier SEMI
|
| CLASS identifier SEMI
|
||||||
@@ -1647,6 +1649,30 @@ struct lease *parse_lease_declaration (cfile)
|
|||||||
token = BILLING;
|
token = BILLING;
|
||||||
break;
|
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:
|
default:
|
||||||
skip_to_semi (cfile);
|
skip_to_semi (cfile);
|
||||||
seenbit = 0;
|
seenbit = 0;
|
||||||
|
Reference in New Issue
Block a user