From: Ted Lemon Date: Fri, 29 Dec 2000 06:51:21 +0000 (+0000) Subject: - Add ddns-update-style configuration option, which depends on new X-Git-Tag: V3-BETA-2-PATCH-12~64 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a256fd856f7b523cc528a1583bd2cedf3e3525c4;p=thirdparty%2Fdhcp.git - Add ddns-update-style configuration option, which depends on new enumeration parsing support. - Add ddns-styles enumeration for ddns-update-style option. --- diff --git a/server/stables.c b/server/stables.c index 56c430fef..95a7a6a32 100644 --- a/server/stables.c +++ b/server/stables.c @@ -43,7 +43,7 @@ #ifndef lint static char copyright[] = -"$Id: stables.c,v 1.20 2000/12/11 18:56:45 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; +"$Id: stables.c,v 1.21 2000/12/29 06:51:21 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; #endif /* not lint */ #include "dhcpd.h" @@ -484,7 +484,7 @@ struct option server_options [256] = { { "omapi-key", "t", &server_universe, 36 }, { "stash-agent-options", "f", &server_universe, 37 }, { "ddns-ttl", "T", &server_universe, 38 }, - { "option-39", "X", &server_universe, 39 }, + { "ddns-update-style", "Nddns-styles.", &server_universe, 39 }, { "option-40", "X", &server_universe, 40 }, { "option-41", "X", &server_universe, 41 }, { "option-42", "X", &server_universe, 42 }, @@ -703,6 +703,19 @@ struct option server_options [256] = { { "option-end", "e", &server_universe, 255 }, }; +struct enumeration_value ddns_styles_values [] = { + { "none", 0 }, + { "ad-hoc", 1 }, + { "interim", 2 }, + { (char *)0, 0 } +}; + +struct enumeration ddns_styles = { + (struct enumeration *)0, + "ddns-styles", + ddns_styles_values +}; + void initialize_server_option_spaces() { int i;