Print this page
7388 Support DHCP Client FQDN. Allow IAID/DUID for all v4.


   6  * Common Development and Distribution License (the "License").
   7  * You may not use this file except in compliance with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 
  23 /*
  24  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.

  26  */
  27 
  28 #include <string.h>
  29 #include <libintl.h>
  30 #include <sys/types.h>
  31 #include "nwamcfg.h"
  32 #include "nwamcfg_grammar.tab.h"
  33 
  34 int lex_lineno = 1;     /* line number for error reporting */
  35 static int state = INITIAL;
  36 extern boolean_t cmd_file_mode;
  37 
  38 extern void yyerror(char *s);
  39 char *safe_strdup(char *s);
  40 %}
  41 
  42 %a 7000
  43 %p 5000
  44 %e 2000
  45 %n 800


 165 <TSTATE>unknown           { return UNKNOWN; }
 166 <TSTATE>activation-mode   { return ACTIVATION_MODE; }
 167 <TSTATE>conditions        { return CONDITIONS; }
 168 <TSTATE>enabled           { return ENABLED; }
 169 
 170 <TSTATE>type                      { return TYPE; }
 171 <TSTATE>class                     { return CLASS; }
 172 <TSTATE>parent                    { return PARENT; }
 173 <TSTATE>priority-group            { return PRIORITY_GROUP; }
 174 <TSTATE>priority-mode             { return PRIORITY_MODE; }
 175 <TSTATE>link-mac-addr             { return LINK_MACADDR; }
 176 <TSTATE>link-autopush             { return LINK_AUTOPUSH; }
 177 <TSTATE>link-mtu          { return LINK_MTU; }
 178 <TSTATE>ip-version                { return IP_VERSION; }
 179 <TSTATE>ipv4-addrsrc              { return IPV4_ADDRSRC; }
 180 <TSTATE>ipv4-addr         { return IPV4_ADDR; }
 181 <TSTATE>ipv4-default-route        { return IPV4_DEFAULT_ROUTE; }
 182 <TSTATE>ipv6-addrsrc              { return IPV6_ADDRSRC; }
 183 <TSTATE>ipv6-addr         { return IPV6_ADDR; }
 184 <TSTATE>ipv6-default-route        { return IPV6_DEFAULT_ROUTE; }


 185 
 186 <TSTATE>state             { return ENM_STATE; }
 187 <TSTATE>fmri              { return ENM_FMRI; }
 188 <TSTATE>start             { return ENM_START; }
 189 <TSTATE>stop              { return ENM_STOP; }
 190 
 191 <TSTATE>nameservices                      { return LOC_NAMESERVICES; }
 192 <TSTATE>nameservices-config-file  { return LOC_NAMESERVICES_CONFIG; }
 193 <TSTATE>dns-nameservice-configsrc { return LOC_DNS_CONFIGSRC; }
 194 <TSTATE>dns-nameservice-domain            { return LOC_DNS_DOMAIN; }
 195 <TSTATE>dns-nameservice-servers           { return LOC_DNS_SERVERS; }
 196 <TSTATE>dns-nameservice-search            { return LOC_DNS_SEARCH; }
 197 <TSTATE>nis-nameservice-configsrc { return LOC_NIS_CONFIGSRC; }
 198 <TSTATE>nis-nameservice-servers           { return LOC_NIS_SERVERS; }
 199 <TSTATE>ldap-nameservice-configsrc        { return LOC_LDAP_CONFIGSRC; }
 200 <TSTATE>ldap-nameservice-servers  { return LOC_LDAP_SERVERS; }
 201 <TSTATE>default-domain                    { return LOC_DEFAULT_DOMAIN; }
 202 <TSTATE>nfsv4-domain                      { return LOC_NFSV4_DOMAIN; }
 203 <TSTATE>ipfilter-config-file              { return LOC_IPF_CONFIG; }
 204 <TSTATE>ipfilter-v6-config-file           { return LOC_IPF_V6_CONFIG; }




   6  * Common Development and Distribution License (the "License").
   7  * You may not use this file except in compliance with the License.
   8  *
   9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
  10  * or http://www.opensolaris.org/os/licensing.
  11  * See the License for the specific language governing permissions
  12  * and limitations under the License.
  13  *
  14  * When distributing Covered Code, include this CDDL HEADER in each
  15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  16  * If applicable, add the following below this CDDL HEADER, with the
  17  * fields enclosed by brackets "[]" replaced with your own identifying
  18  * information: Portions Copyright [yyyy] [name of copyright owner]
  19  *
  20  * CDDL HEADER END
  21  */
  22 
  23 /*
  24  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  25  * Use is subject to license terms.
  26  * Copyright (c) 2016, Chris Fraire <cfraire@me.com>.
  27  */
  28 
  29 #include <string.h>
  30 #include <libintl.h>
  31 #include <sys/types.h>
  32 #include "nwamcfg.h"
  33 #include "nwamcfg_grammar.tab.h"
  34 
  35 int lex_lineno = 1;     /* line number for error reporting */
  36 static int state = INITIAL;
  37 extern boolean_t cmd_file_mode;
  38 
  39 extern void yyerror(char *s);
  40 char *safe_strdup(char *s);
  41 %}
  42 
  43 %a 7000
  44 %p 5000
  45 %e 2000
  46 %n 800


 166 <TSTATE>unknown           { return UNKNOWN; }
 167 <TSTATE>activation-mode   { return ACTIVATION_MODE; }
 168 <TSTATE>conditions        { return CONDITIONS; }
 169 <TSTATE>enabled           { return ENABLED; }
 170 
 171 <TSTATE>type                      { return TYPE; }
 172 <TSTATE>class                     { return CLASS; }
 173 <TSTATE>parent                    { return PARENT; }
 174 <TSTATE>priority-group            { return PRIORITY_GROUP; }
 175 <TSTATE>priority-mode             { return PRIORITY_MODE; }
 176 <TSTATE>link-mac-addr             { return LINK_MACADDR; }
 177 <TSTATE>link-autopush             { return LINK_AUTOPUSH; }
 178 <TSTATE>link-mtu          { return LINK_MTU; }
 179 <TSTATE>ip-version                { return IP_VERSION; }
 180 <TSTATE>ipv4-addrsrc              { return IPV4_ADDRSRC; }
 181 <TSTATE>ipv4-addr         { return IPV4_ADDR; }
 182 <TSTATE>ipv4-default-route        { return IPV4_DEFAULT_ROUTE; }
 183 <TSTATE>ipv6-addrsrc              { return IPV6_ADDRSRC; }
 184 <TSTATE>ipv6-addr         { return IPV6_ADDR; }
 185 <TSTATE>ipv6-default-route        { return IPV6_DEFAULT_ROUTE; }
 186 <TSTATE>ip-primary                { return IP_PRIMARY; }
 187 <TSTATE>ip-reqhost                { return IP_REQHOST; }
 188 
 189 <TSTATE>state             { return ENM_STATE; }
 190 <TSTATE>fmri              { return ENM_FMRI; }
 191 <TSTATE>start             { return ENM_START; }
 192 <TSTATE>stop              { return ENM_STOP; }
 193 
 194 <TSTATE>nameservices                      { return LOC_NAMESERVICES; }
 195 <TSTATE>nameservices-config-file  { return LOC_NAMESERVICES_CONFIG; }
 196 <TSTATE>dns-nameservice-configsrc { return LOC_DNS_CONFIGSRC; }
 197 <TSTATE>dns-nameservice-domain            { return LOC_DNS_DOMAIN; }
 198 <TSTATE>dns-nameservice-servers           { return LOC_DNS_SERVERS; }
 199 <TSTATE>dns-nameservice-search            { return LOC_DNS_SEARCH; }
 200 <TSTATE>nis-nameservice-configsrc { return LOC_NIS_CONFIGSRC; }
 201 <TSTATE>nis-nameservice-servers           { return LOC_NIS_SERVERS; }
 202 <TSTATE>ldap-nameservice-configsrc        { return LOC_LDAP_CONFIGSRC; }
 203 <TSTATE>ldap-nameservice-servers  { return LOC_LDAP_SERVERS; }
 204 <TSTATE>default-domain                    { return LOC_DEFAULT_DOMAIN; }
 205 <TSTATE>nfsv4-domain                      { return LOC_NFSV4_DOMAIN; }
 206 <TSTATE>ipfilter-config-file              { return LOC_IPF_CONFIG; }
 207 <TSTATE>ipfilter-v6-config-file           { return LOC_IPF_V6_CONFIG; }