diff options
author | SUZUKI, Shinsuke <suz@kame.net> | 2006-07-30 10:24:19 +0000 |
---|---|---|
committer | SUZUKI, Shinsuke <suz@kame.net> | 2006-07-30 10:24:19 +0000 |
commit | d9f9f7c2dcd7bfe811180c5d81bead4559a4fb2e (patch) | |
tree | 28c050fe90de341a51f758995cf2f982ff76333b /dhcp6s.c | |
parent | 0f9655313ebb4d789165c167262d8becba6e5d01 (diff) |
* supported the following options:
NIS server option, NIS domain option (RFC3898)
NIS+ server option, NIS+ domain option (RFC3898)
BCMCS server option, BCMCS domain option (RFC4280)
* changed the name of the enviromental variable for SIP server
address (new_sip_servers).
* removed a configure option to control the NTP option number.
(since one year has been passed since its official assignment)
Diffstat (limited to 'dhcp6s.c')
-rw-r--r-- | dhcp6s.c | 49 |
1 files changed, 47 insertions, 2 deletions
@@ -235,6 +235,12 @@ main(argc, argv) TAILQ_INIT(&siplist); TAILQ_INIT(&sipnamelist); TAILQ_INIT(&ntplist); + TAILQ_INIT(&nislist); + TAILQ_INIT(&nisnamelist); + TAILQ_INIT(&nisplist); + TAILQ_INIT(&nispnamelist); + TAILQ_INIT(&bcmcslist); + TAILQ_INIT(&bcmcsnamelist); srandom(time(NULL) & getpid()); while ((ch = getopt(argc, argv, "c:dDfk:n:p:P:")) != -1) { @@ -1106,10 +1112,10 @@ set_statelessinfo(type, optinfo) int type; struct dhcp6_optinfo *optinfo; { - /* SIP server domain name */ + /* SIP domain name */ if (dhcp6_copy_list(&optinfo->sipname_list, &sipnamelist)) { dprintf(LOG_ERR, FNAME, - "failed to copy SIP server domain list"); + "failed to copy SIP domain list"); return (-1); } @@ -1137,6 +1143,45 @@ set_statelessinfo(type, optinfo) return (-1); } + /* NIS domain name */ + if (dhcp6_copy_list(&optinfo->nisname_list, &nisnamelist)) { + dprintf(LOG_ERR, FNAME, + "failed to copy NIS domain list"); + return (-1); + } + + /* NIS server */ + if (dhcp6_copy_list(&optinfo->nis_list, &nislist)) { + dprintf(LOG_ERR, FNAME, "failed to copy NIS servers"); + return (-1); + } + + /* NIS+ domain name */ + if (dhcp6_copy_list(&optinfo->nispname_list, &nispnamelist)) { + dprintf(LOG_ERR, FNAME, + "failed to copy NIS+ domain list"); + return (-1); + } + + /* NIS+ server */ + if (dhcp6_copy_list(&optinfo->nisp_list, &nisplist)) { + dprintf(LOG_ERR, FNAME, "failed to copy NIS+ servers"); + return (-1); + } + + /* BCMCS domain name */ + if (dhcp6_copy_list(&optinfo->bcmcsname_list, &bcmcsnamelist)) { + dprintf(LOG_ERR, FNAME, + "failed to copy BCMCS domain list"); + return (-1); + } + + /* BCMCS server */ + if (dhcp6_copy_list(&optinfo->bcmcs_list, &bcmcslist)) { + dprintf(LOG_ERR, FNAME, "failed to copy BCMCS servers"); + return (-1); + } + /* * Information refresh time. Only include in a response to * an Information-request message. |