/* A Bison parser, made by GNU Bison 3.8.2.  */

/* Bison implementation for Yacc-like parsers in C

   Copyright (C) 1984, 1989-1990, 2000-2015, 2018-2021 Free Software Foundation,
   Inc.

   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, either version 3 of the License, or
   (at your option) any later version.

   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   GNU General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with this program.  If not, see <https://www.gnu.org/licenses/>.  */

/* As a special exception, you may create a larger work that contains
   part or all of the Bison parser skeleton and distribute that work
   under terms of your choice, so long as that work isn't itself a
   parser generator using the skeleton or a modified version thereof
   as a parser skeleton.  Alternatively, if you modify or redistribute
   the parser skeleton itself, you may (at your option) remove this
   special exception, which will cause the skeleton and the resulting
   Bison output files to be licensed under the GNU General Public
   License without this special exception.

   This special exception was added by the Free Software Foundation in
   version 2.2 of Bison.  */

/* C LALR(1) parser skeleton written by Richard Stallman, by
   simplifying the original so-called "semantic" parser.  */

/* DO NOT RELY ON FEATURES THAT ARE NOT DOCUMENTED in the manual,
   especially those whose name start with YY_ or yy_.  They are
   private implementation details that can be changed or removed.  */

/* All symbols defined below should begin with yy or YY, to avoid
   infringing on user name space.  This should be done even for local
   variables, as they might otherwise be expanded by user macros.
   There are some unavoidable exceptions within include files to
   define necessary library symbols; they are noted "INFRINGES ON
   USER NAME SPACE" below.  */

/* Identify Bison output, and Bison version.  */
#define YYBISON 30802

/* Bison version string.  */
#define YYBISON_VERSION "3.8.2"

/* Skeleton name.  */
#define YYSKELETON_NAME "yacc.c"

/* Pure parsers.  */
#define YYPURE 0

/* Push parsers.  */
#define YYPUSH 0

/* Pull parsers.  */
#define YYPULL 1




/* First part of user prologue.  */
#line 15 "gram.y"

#include "config.h"
#include "includes.h"
#include "radvd.h"
#include "defaults.h"

#define YYERROR_VERBOSE 1

int yylex (void);
void yyset_in (FILE * _in_str);
int yylex_destroy (void);

#if 0 /* no longer necessary? */
#ifndef HAVE_IN6_ADDR_S6_ADDR
# ifdef __FreeBSD__
#  define s6_addr32 __u6_addr.__u6_addr32
#  define s6_addr16 __u6_addr.__u6_addr16
# endif
#endif
#endif

#define ADD_TO_LL(type, list, value) \
	do { \
		if (iface->list == NULL) \
			iface->list = value; \
		else { \
			type *current = iface->list; \
			while (current->next != NULL) \
				current = current->next; \
			current->next = value; \
		} \
	} while (0)


#line 106 "gram.c"

# ifndef YY_CAST
#  ifdef __cplusplus
#   define YY_CAST(Type, Val) static_cast<Type> (Val)
#   define YY_REINTERPRET_CAST(Type, Val) reinterpret_cast<Type> (Val)
#  else
#   define YY_CAST(Type, Val) ((Type) (Val))
#   define YY_REINTERPRET_CAST(Type, Val) ((Type) (Val))
#  endif
# endif
# ifndef YY_NULLPTR
#  if defined __cplusplus
#   if 201103L <= __cplusplus
#    define YY_NULLPTR nullptr
#   else
#    define YY_NULLPTR 0
#   endif
#  else
#   define YY_NULLPTR ((void*)0)
#  endif
# endif

/* Use api.header.include to #include this header
   instead of duplicating it here.  */
#ifndef YY_YY_GRAM_H_INCLUDED
# define YY_YY_GRAM_H_INCLUDED
/* Debug traces.  */
#ifndef YYDEBUG
# define YYDEBUG 0
#endif
#if YYDEBUG
extern int yydebug;
#endif

/* Token kinds.  */
#ifndef YYTOKENTYPE
# define YYTOKENTYPE
  enum yytokentype
  {
    YYEMPTY = -2,
    YYEOF = 0,                     /* "end of file"  */
    YYerror = 256,                 /* error  */
    YYUNDEF = 257,                 /* "invalid token"  */
    T_INTERFACE = 258,             /* T_INTERFACE  */
    T_PREFIX = 259,                /* T_PREFIX  */
    T_ROUTE = 260,                 /* T_ROUTE  */
    T_RDNSS = 261,                 /* T_RDNSS  */
    T_DNSSL = 262,                 /* T_DNSSL  */
    T_CLIENTS = 263,               /* T_CLIENTS  */
    T_LOWPANCO = 264,              /* T_LOWPANCO  */
    T_ABRO = 265,                  /* T_ABRO  */
    T_RASRCADDRESS = 266,          /* T_RASRCADDRESS  */
    T_NAT64PREFIX = 267,           /* T_NAT64PREFIX  */
    T_AUTOIGNOREPREFIX = 268,      /* T_AUTOIGNOREPREFIX  */
    STRING = 269,                  /* STRING  */
    NUMBER = 270,                  /* NUMBER  */
    SIGNEDNUMBER = 271,            /* SIGNEDNUMBER  */
    DECIMAL = 272,                 /* DECIMAL  */
    SWITCH = 273,                  /* SWITCH  */
    IPV6ADDR = 274,                /* IPV6ADDR  */
    NOT_IPV6ADDR = 275,            /* NOT_IPV6ADDR  */
    INFINITY = 276,                /* INFINITY  */
    T_IgnoreIfMissing = 277,       /* T_IgnoreIfMissing  */
    T_AdvSendAdvert = 278,         /* T_AdvSendAdvert  */
    T_MaxRtrAdvInterval = 279,     /* T_MaxRtrAdvInterval  */
    T_MinRtrAdvInterval = 280,     /* T_MinRtrAdvInterval  */
    T_MinDelayBetweenRAs = 281,    /* T_MinDelayBetweenRAs  */
    T_AdvManagedFlag = 282,        /* T_AdvManagedFlag  */
    T_AdvOtherConfigFlag = 283,    /* T_AdvOtherConfigFlag  */
    T_AdvLinkMTU = 284,            /* T_AdvLinkMTU  */
    T_AdvRAMTU = 285,              /* T_AdvRAMTU  */
    T_AdvReachableTime = 286,      /* T_AdvReachableTime  */
    T_AdvRetransTimer = 287,       /* T_AdvRetransTimer  */
    T_AdvCurHopLimit = 288,        /* T_AdvCurHopLimit  */
    T_AdvDefaultLifetime = 289,    /* T_AdvDefaultLifetime  */
    T_AdvDefaultPreference = 290,  /* T_AdvDefaultPreference  */
    T_AdvSourceLLAddress = 291,    /* T_AdvSourceLLAddress  */
    T_RemoveAdvOnExit = 292,       /* T_RemoveAdvOnExit  */
    T_AdvOnLink = 293,             /* T_AdvOnLink  */
    T_AdvAutonomous = 294,         /* T_AdvAutonomous  */
    T_AdvDHCPv6PDPreferred = 295,  /* T_AdvDHCPv6PDPreferred  */
    T_AdvValidLifetime = 296,      /* T_AdvValidLifetime  */
    T_AdvPreferredLifetime = 297,  /* T_AdvPreferredLifetime  */
    T_DeprecatePrefix = 298,       /* T_DeprecatePrefix  */
    T_DecrementLifetimes = 299,    /* T_DecrementLifetimes  */
    T_AdvRouterAddr = 300,         /* T_AdvRouterAddr  */
    T_AdvHomeAgentFlag = 301,      /* T_AdvHomeAgentFlag  */
    T_AdvIntervalOpt = 302,        /* T_AdvIntervalOpt  */
    T_AdvHomeAgentInfo = 303,      /* T_AdvHomeAgentInfo  */
    T_Base6Interface = 304,        /* T_Base6Interface  */
    T_Base6to4Interface = 305,     /* T_Base6to4Interface  */
    T_UnicastOnly = 306,           /* T_UnicastOnly  */
    T_UnrestrictedUnicast = 307,   /* T_UnrestrictedUnicast  */
    T_AdvRASolicitedUnicast = 308, /* T_AdvRASolicitedUnicast  */
    T_AdvCaptivePortalAPI = 309,   /* T_AdvCaptivePortalAPI  */
    T_HomeAgentPreference = 310,   /* T_HomeAgentPreference  */
    T_HomeAgentLifetime = 311,     /* T_HomeAgentLifetime  */
    T_AdvRoutePreference = 312,    /* T_AdvRoutePreference  */
    T_AdvRouteLifetime = 313,      /* T_AdvRouteLifetime  */
    T_RemoveRoute = 314,           /* T_RemoveRoute  */
    T_AdvRDNSSPreference = 315,    /* T_AdvRDNSSPreference  */
    T_AdvRDNSSOpenFlag = 316,      /* T_AdvRDNSSOpenFlag  */
    T_AdvRDNSSLifetime = 317,      /* T_AdvRDNSSLifetime  */
    T_FlushRDNSS = 318,            /* T_FlushRDNSS  */
    T_AdvDNSSLLifetime = 319,      /* T_AdvDNSSLLifetime  */
    T_FlushDNSSL = 320,            /* T_FlushDNSSL  */
    T_AdvMobRtrSupportFlag = 321,  /* T_AdvMobRtrSupportFlag  */
    T_AdvContextLength = 322,      /* T_AdvContextLength  */
    T_AdvContextCompressionFlag = 323, /* T_AdvContextCompressionFlag  */
    T_AdvContextID = 324,          /* T_AdvContextID  */
    T_AdvLifeTime = 325,           /* T_AdvLifeTime  */
    T_AdvContextPrefix = 326,      /* T_AdvContextPrefix  */
    T_AdvVersionLow = 327,         /* T_AdvVersionLow  */
    T_AdvVersionHigh = 328,        /* T_AdvVersionHigh  */
    T_Adv6LBRaddress = 329,        /* T_Adv6LBRaddress  */
    T_BAD_TOKEN = 330              /* T_BAD_TOKEN  */
  };
  typedef enum yytokentype yytoken_kind_t;
#endif
/* Token kinds.  */
#define YYEMPTY -2
#define YYEOF 0
#define YYerror 256
#define YYUNDEF 257
#define T_INTERFACE 258
#define T_PREFIX 259
#define T_ROUTE 260
#define T_RDNSS 261
#define T_DNSSL 262
#define T_CLIENTS 263
#define T_LOWPANCO 264
#define T_ABRO 265
#define T_RASRCADDRESS 266
#define T_NAT64PREFIX 267
#define T_AUTOIGNOREPREFIX 268
#define STRING 269
#define NUMBER 270
#define SIGNEDNUMBER 271
#define DECIMAL 272
#define SWITCH 273
#define IPV6ADDR 274
#define NOT_IPV6ADDR 275
#define INFINITY 276
#define T_IgnoreIfMissing 277
#define T_AdvSendAdvert 278
#define T_MaxRtrAdvInterval 279
#define T_MinRtrAdvInterval 280
#define T_MinDelayBetweenRAs 281
#define T_AdvManagedFlag 282
#define T_AdvOtherConfigFlag 283
#define T_AdvLinkMTU 284
#define T_AdvRAMTU 285
#define T_AdvReachableTime 286
#define T_AdvRetransTimer 287
#define T_AdvCurHopLimit 288
#define T_AdvDefaultLifetime 289
#define T_AdvDefaultPreference 290
#define T_AdvSourceLLAddress 291
#define T_RemoveAdvOnExit 292
#define T_AdvOnLink 293
#define T_AdvAutonomous 294
#define T_AdvDHCPv6PDPreferred 295
#define T_AdvValidLifetime 296
#define T_AdvPreferredLifetime 297
#define T_DeprecatePrefix 298
#define T_DecrementLifetimes 299
#define T_AdvRouterAddr 300
#define T_AdvHomeAgentFlag 301
#define T_AdvIntervalOpt 302
#define T_AdvHomeAgentInfo 303
#define T_Base6Interface 304
#define T_Base6to4Interface 305
#define T_UnicastOnly 306
#define T_UnrestrictedUnicast 307
#define T_AdvRASolicitedUnicast 308
#define T_AdvCaptivePortalAPI 309
#define T_HomeAgentPreference 310
#define T_HomeAgentLifetime 311
#define T_AdvRoutePreference 312
#define T_AdvRouteLifetime 313
#define T_RemoveRoute 314
#define T_AdvRDNSSPreference 315
#define T_AdvRDNSSOpenFlag 316
#define T_AdvRDNSSLifetime 317
#define T_FlushRDNSS 318
#define T_AdvDNSSLLifetime 319
#define T_FlushDNSSL 320
#define T_AdvMobRtrSupportFlag 321
#define T_AdvContextLength 322
#define T_AdvContextCompressionFlag 323
#define T_AdvContextID 324
#define T_AdvLifeTime 325
#define T_AdvContextPrefix 326
#define T_AdvVersionLow 327
#define T_AdvVersionHigh 328
#define T_Adv6LBRaddress 329
#define T_BAD_TOKEN 330

/* Value type.  */
#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED
union YYSTYPE
{
#line 150 "gram.y"

	unsigned int		num;
	int			snum;
	double			dec;
	struct in6_addr		*addr;
	char			*str;
	struct AdvPrefix	*pinfo;
	struct AdvRoute		*rinfo;
	struct AdvRDNSS		*rdnssinfo;
	struct AdvDNSSL		*dnsslinfo;
	struct Clients		*ainfo;
	struct AdvLowpanCo	*lowpancoinfo;
	struct AdvAbro		*abroinfo;
	struct AdvRASrcAddress	*rasrcaddressinfo;
	struct NAT64Prefix	*nat64pinfo;
	struct AutogenIgnorePrefix	*igpinfo;

#line 327 "gram.c"

};
typedef union YYSTYPE YYSTYPE;
# define YYSTYPE_IS_TRIVIAL 1
# define YYSTYPE_IS_DECLARED 1
#endif


extern YYSTYPE yylval;


int yyparse (void);


#endif /* !YY_YY_GRAM_H_INCLUDED  */
/* Symbol kind.  */
enum yysymbol_kind_t
{
  YYSYMBOL_YYEMPTY = -2,
  YYSYMBOL_YYEOF = 0,                      /* "end of file"  */
  YYSYMBOL_YYerror = 1,                    /* error  */
  YYSYMBOL_YYUNDEF = 2,                    /* "invalid token"  */
  YYSYMBOL_T_INTERFACE = 3,                /* T_INTERFACE  */
  YYSYMBOL_T_PREFIX = 4,                   /* T_PREFIX  */
  YYSYMBOL_T_ROUTE = 5,                    /* T_ROUTE  */
  YYSYMBOL_T_RDNSS = 6,                    /* T_RDNSS  */
  YYSYMBOL_T_DNSSL = 7,                    /* T_DNSSL  */
  YYSYMBOL_T_CLIENTS = 8,                  /* T_CLIENTS  */
  YYSYMBOL_T_LOWPANCO = 9,                 /* T_LOWPANCO  */
  YYSYMBOL_T_ABRO = 10,                    /* T_ABRO  */
  YYSYMBOL_T_RASRCADDRESS = 11,            /* T_RASRCADDRESS  */
  YYSYMBOL_T_NAT64PREFIX = 12,             /* T_NAT64PREFIX  */
  YYSYMBOL_T_AUTOIGNOREPREFIX = 13,        /* T_AUTOIGNOREPREFIX  */
  YYSYMBOL_STRING = 14,                    /* STRING  */
  YYSYMBOL_NUMBER = 15,                    /* NUMBER  */
  YYSYMBOL_SIGNEDNUMBER = 16,              /* SIGNEDNUMBER  */
  YYSYMBOL_DECIMAL = 17,                   /* DECIMAL  */
  YYSYMBOL_SWITCH = 18,                    /* SWITCH  */
  YYSYMBOL_IPV6ADDR = 19,                  /* IPV6ADDR  */
  YYSYMBOL_NOT_IPV6ADDR = 20,              /* NOT_IPV6ADDR  */
  YYSYMBOL_INFINITY = 21,                  /* INFINITY  */
  YYSYMBOL_T_IgnoreIfMissing = 22,         /* T_IgnoreIfMissing  */
  YYSYMBOL_T_AdvSendAdvert = 23,           /* T_AdvSendAdvert  */
  YYSYMBOL_T_MaxRtrAdvInterval = 24,       /* T_MaxRtrAdvInterval  */
  YYSYMBOL_T_MinRtrAdvInterval = 25,       /* T_MinRtrAdvInterval  */
  YYSYMBOL_T_MinDelayBetweenRAs = 26,      /* T_MinDelayBetweenRAs  */
  YYSYMBOL_T_AdvManagedFlag = 27,          /* T_AdvManagedFlag  */
  YYSYMBOL_T_AdvOtherConfigFlag = 28,      /* T_AdvOtherConfigFlag  */
  YYSYMBOL_T_AdvLinkMTU = 29,              /* T_AdvLinkMTU  */
  YYSYMBOL_T_AdvRAMTU = 30,                /* T_AdvRAMTU  */
  YYSYMBOL_T_AdvReachableTime = 31,        /* T_AdvReachableTime  */
  YYSYMBOL_T_AdvRetransTimer = 32,         /* T_AdvRetransTimer  */
  YYSYMBOL_T_AdvCurHopLimit = 33,          /* T_AdvCurHopLimit  */
  YYSYMBOL_T_AdvDefaultLifetime = 34,      /* T_AdvDefaultLifetime  */
  YYSYMBOL_T_AdvDefaultPreference = 35,    /* T_AdvDefaultPreference  */
  YYSYMBOL_T_AdvSourceLLAddress = 36,      /* T_AdvSourceLLAddress  */
  YYSYMBOL_T_RemoveAdvOnExit = 37,         /* T_RemoveAdvOnExit  */
  YYSYMBOL_T_AdvOnLink = 38,               /* T_AdvOnLink  */
  YYSYMBOL_T_AdvAutonomous = 39,           /* T_AdvAutonomous  */
  YYSYMBOL_T_AdvDHCPv6PDPreferred = 40,    /* T_AdvDHCPv6PDPreferred  */
  YYSYMBOL_T_AdvValidLifetime = 41,        /* T_AdvValidLifetime  */
  YYSYMBOL_T_AdvPreferredLifetime = 42,    /* T_AdvPreferredLifetime  */
  YYSYMBOL_T_DeprecatePrefix = 43,         /* T_DeprecatePrefix  */
  YYSYMBOL_T_DecrementLifetimes = 44,      /* T_DecrementLifetimes  */
  YYSYMBOL_T_AdvRouterAddr = 45,           /* T_AdvRouterAddr  */
  YYSYMBOL_T_AdvHomeAgentFlag = 46,        /* T_AdvHomeAgentFlag  */
  YYSYMBOL_T_AdvIntervalOpt = 47,          /* T_AdvIntervalOpt  */
  YYSYMBOL_T_AdvHomeAgentInfo = 48,        /* T_AdvHomeAgentInfo  */
  YYSYMBOL_T_Base6Interface = 49,          /* T_Base6Interface  */
  YYSYMBOL_T_Base6to4Interface = 50,       /* T_Base6to4Interface  */
  YYSYMBOL_T_UnicastOnly = 51,             /* T_UnicastOnly  */
  YYSYMBOL_T_UnrestrictedUnicast = 52,     /* T_UnrestrictedUnicast  */
  YYSYMBOL_T_AdvRASolicitedUnicast = 53,   /* T_AdvRASolicitedUnicast  */
  YYSYMBOL_T_AdvCaptivePortalAPI = 54,     /* T_AdvCaptivePortalAPI  */
  YYSYMBOL_T_HomeAgentPreference = 55,     /* T_HomeAgentPreference  */
  YYSYMBOL_T_HomeAgentLifetime = 56,       /* T_HomeAgentLifetime  */
  YYSYMBOL_T_AdvRoutePreference = 57,      /* T_AdvRoutePreference  */
  YYSYMBOL_T_AdvRouteLifetime = 58,        /* T_AdvRouteLifetime  */
  YYSYMBOL_T_RemoveRoute = 59,             /* T_RemoveRoute  */
  YYSYMBOL_T_AdvRDNSSPreference = 60,      /* T_AdvRDNSSPreference  */
  YYSYMBOL_T_AdvRDNSSOpenFlag = 61,        /* T_AdvRDNSSOpenFlag  */
  YYSYMBOL_T_AdvRDNSSLifetime = 62,        /* T_AdvRDNSSLifetime  */
  YYSYMBOL_T_FlushRDNSS = 63,              /* T_FlushRDNSS  */
  YYSYMBOL_T_AdvDNSSLLifetime = 64,        /* T_AdvDNSSLLifetime  */
  YYSYMBOL_T_FlushDNSSL = 65,              /* T_FlushDNSSL  */
  YYSYMBOL_T_AdvMobRtrSupportFlag = 66,    /* T_AdvMobRtrSupportFlag  */
  YYSYMBOL_T_AdvContextLength = 67,        /* T_AdvContextLength  */
  YYSYMBOL_T_AdvContextCompressionFlag = 68, /* T_AdvContextCompressionFlag  */
  YYSYMBOL_T_AdvContextID = 69,            /* T_AdvContextID  */
  YYSYMBOL_T_AdvLifeTime = 70,             /* T_AdvLifeTime  */
  YYSYMBOL_T_AdvContextPrefix = 71,        /* T_AdvContextPrefix  */
  YYSYMBOL_T_AdvVersionLow = 72,           /* T_AdvVersionLow  */
  YYSYMBOL_T_AdvVersionHigh = 73,          /* T_AdvVersionHigh  */
  YYSYMBOL_T_Adv6LBRaddress = 74,          /* T_Adv6LBRaddress  */
  YYSYMBOL_T_BAD_TOKEN = 75,               /* T_BAD_TOKEN  */
  YYSYMBOL_76_ = 76,                       /* '{'  */
  YYSYMBOL_77_ = 77,                       /* '}'  */
  YYSYMBOL_78_ = 78,                       /* ';'  */
  YYSYMBOL_79_ = 79,                       /* '/'  */
  YYSYMBOL_YYACCEPT = 80,                  /* $accept  */
  YYSYMBOL_grammar = 81,                   /* grammar  */
  YYSYMBOL_ifacedef = 82,                  /* ifacedef  */
  YYSYMBOL_ifacehead = 83,                 /* ifacehead  */
  YYSYMBOL_name = 84,                      /* name  */
  YYSYMBOL_ifaceparams = 85,               /* ifaceparams  */
  YYSYMBOL_ifaceparam = 86,                /* ifaceparam  */
  YYSYMBOL_ifaceval = 87,                  /* ifaceval  */
  YYSYMBOL_clientslist = 88,               /* clientslist  */
  YYSYMBOL_v6addrlist_clients = 89,        /* v6addrlist_clients  */
  YYSYMBOL_rasrcaddresslist = 90,          /* rasrcaddresslist  */
  YYSYMBOL_v6addrlist_rasrcaddress = 91,   /* v6addrlist_rasrcaddress  */
  YYSYMBOL_nat64prefixdef = 92,            /* nat64prefixdef  */
  YYSYMBOL_nat64prefixhead = 93,           /* nat64prefixhead  */
  YYSYMBOL_optional_nat64prefixplist = 94, /* optional_nat64prefixplist  */
  YYSYMBOL_nat64prefixplist = 95,          /* nat64prefixplist  */
  YYSYMBOL_nat64prefixparms = 96,          /* nat64prefixparms  */
  YYSYMBOL_ignoreprefixlist = 97,          /* ignoreprefixlist  */
  YYSYMBOL_ignoreprefixes = 98,            /* ignoreprefixes  */
  YYSYMBOL_prefixdef = 99,                 /* prefixdef  */
  YYSYMBOL_prefixhead = 100,               /* prefixhead  */
  YYSYMBOL_optional_prefixplist = 101,     /* optional_prefixplist  */
  YYSYMBOL_prefixplist = 102,              /* prefixplist  */
  YYSYMBOL_prefixparms = 103,              /* prefixparms  */
  YYSYMBOL_routedef = 104,                 /* routedef  */
  YYSYMBOL_routehead = 105,                /* routehead  */
  YYSYMBOL_optional_routeplist = 106,      /* optional_routeplist  */
  YYSYMBOL_routeplist = 107,               /* routeplist  */
  YYSYMBOL_routeparms = 108,               /* routeparms  */
  YYSYMBOL_rdnssdef = 109,                 /* rdnssdef  */
  YYSYMBOL_rdnssaddrs = 110,               /* rdnssaddrs  */
  YYSYMBOL_rdnssaddr = 111,                /* rdnssaddr  */
  YYSYMBOL_rdnsshead = 112,                /* rdnsshead  */
  YYSYMBOL_optional_rdnssplist = 113,      /* optional_rdnssplist  */
  YYSYMBOL_rdnssplist = 114,               /* rdnssplist  */
  YYSYMBOL_rdnssparms = 115,               /* rdnssparms  */
  YYSYMBOL_dnssldef = 116,                 /* dnssldef  */
  YYSYMBOL_dnsslsuffixes = 117,            /* dnsslsuffixes  */
  YYSYMBOL_dnsslsuffix = 118,              /* dnsslsuffix  */
  YYSYMBOL_dnsslhead = 119,                /* dnsslhead  */
  YYSYMBOL_optional_dnsslplist = 120,      /* optional_dnsslplist  */
  YYSYMBOL_dnsslplist = 121,               /* dnsslplist  */
  YYSYMBOL_dnsslparms = 122,               /* dnsslparms  */
  YYSYMBOL_lowpancodef = 123,              /* lowpancodef  */
  YYSYMBOL_lowpancohead = 124,             /* lowpancohead  */
  YYSYMBOL_optional_lowpancoplist = 125,   /* optional_lowpancoplist  */
  YYSYMBOL_lowpancoplist = 126,            /* lowpancoplist  */
  YYSYMBOL_lowpancoparms = 127,            /* lowpancoparms  */
  YYSYMBOL_abrodef = 128,                  /* abrodef  */
  YYSYMBOL_abrohead = 129,                 /* abrohead  */
  YYSYMBOL_abrohead_new = 130,             /* abrohead_new  */
  YYSYMBOL_abrohead_dep = 131,             /* abrohead_dep  */
  YYSYMBOL_optional_abroplist = 132,       /* optional_abroplist  */
  YYSYMBOL_abroplist = 133,                /* abroplist  */
  YYSYMBOL_abroparms = 134,                /* abroparms  */
  YYSYMBOL_number_or_infinity = 135        /* number_or_infinity  */
};
typedef enum yysymbol_kind_t yysymbol_kind_t;


/* Second part of user prologue.  */
#line 168 "gram.y"

extern int num_lines;
static char const * filename;
static struct Interface *iface;
static struct Interface *IfaceList;
static struct AdvPrefix *prefix;
static struct AdvRoute *route;
static struct AdvRDNSS *rdnss;
static struct AdvDNSSL *dnssl;
static struct AdvLowpanCo *lowpanco;
static struct AdvAbro  *abro;
static struct NAT64Prefix *nat64prefix;
static void cleanup(void);
#define ABORT	do { cleanup(); YYABORT; } while (0);
static void yyerror(char const * msg);

#line 505 "gram.c"


#ifdef short
# undef short
#endif

/* On compilers that do not define __PTRDIFF_MAX__ etc., make sure
   <limits.h> and (if available) <stdint.h> are included
   so that the code can choose integer types of a good width.  */

#ifndef __PTRDIFF_MAX__
# include <limits.h> /* INFRINGES ON USER NAME SPACE */
# if defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stdint.h> /* INFRINGES ON USER NAME SPACE */
#  define YY_STDINT_H
# endif
#endif

/* Narrow types that promote to a signed type and that can represent a
   signed or unsigned integer of at least N bits.  In tables they can
   save space and decrease cache pressure.  Promoting to a signed type
   helps avoid bugs in integer arithmetic.  */

#ifdef __INT_LEAST8_MAX__
typedef __INT_LEAST8_TYPE__ yytype_int8;
#elif defined YY_STDINT_H
typedef int_least8_t yytype_int8;
#else
typedef signed char yytype_int8;
#endif

#ifdef __INT_LEAST16_MAX__
typedef __INT_LEAST16_TYPE__ yytype_int16;
#elif defined YY_STDINT_H
typedef int_least16_t yytype_int16;
#else
typedef short yytype_int16;
#endif

/* Work around bug in HP-UX 11.23, which defines these macros
   incorrectly for preprocessor constants.  This workaround can likely
   be removed in 2023, as HPE has promised support for HP-UX 11.23
   (aka HP-UX 11i v2) only through the end of 2022; see Table 2 of
   <https://h20195.www2.hpe.com/V2/getpdf.aspx/4AA4-7673ENW.pdf>.  */
#ifdef __hpux
# undef UINT_LEAST8_MAX
# undef UINT_LEAST16_MAX
# define UINT_LEAST8_MAX 255
# define UINT_LEAST16_MAX 65535
#endif

#if defined __UINT_LEAST8_MAX__ && __UINT_LEAST8_MAX__ <= __INT_MAX__
typedef __UINT_LEAST8_TYPE__ yytype_uint8;
#elif (!defined __UINT_LEAST8_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST8_MAX <= INT_MAX)
typedef uint_least8_t yytype_uint8;
#elif !defined __UINT_LEAST8_MAX__ && UCHAR_MAX <= INT_MAX
typedef unsigned char yytype_uint8;
#else
typedef short yytype_uint8;
#endif

#if defined __UINT_LEAST16_MAX__ && __UINT_LEAST16_MAX__ <= __INT_MAX__
typedef __UINT_LEAST16_TYPE__ yytype_uint16;
#elif (!defined __UINT_LEAST16_MAX__ && defined YY_STDINT_H \
       && UINT_LEAST16_MAX <= INT_MAX)
typedef uint_least16_t yytype_uint16;
#elif !defined __UINT_LEAST16_MAX__ && USHRT_MAX <= INT_MAX
typedef unsigned short yytype_uint16;
#else
typedef int yytype_uint16;
#endif

#ifndef YYPTRDIFF_T
# if defined __PTRDIFF_TYPE__ && defined __PTRDIFF_MAX__
#  define YYPTRDIFF_T __PTRDIFF_TYPE__
#  define YYPTRDIFF_MAXIMUM __PTRDIFF_MAX__
# elif defined PTRDIFF_MAX
#  ifndef ptrdiff_t
#   include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  endif
#  define YYPTRDIFF_T ptrdiff_t
#  define YYPTRDIFF_MAXIMUM PTRDIFF_MAX
# else
#  define YYPTRDIFF_T long
#  define YYPTRDIFF_MAXIMUM LONG_MAX
# endif
#endif

#ifndef YYSIZE_T
# ifdef __SIZE_TYPE__
#  define YYSIZE_T __SIZE_TYPE__
# elif defined size_t
#  define YYSIZE_T size_t
# elif defined __STDC_VERSION__ && 199901 <= __STDC_VERSION__
#  include <stddef.h> /* INFRINGES ON USER NAME SPACE */
#  define YYSIZE_T size_t
# else
#  define YYSIZE_T unsigned
# endif
#endif

#define YYSIZE_MAXIMUM                                  \
  YY_CAST (YYPTRDIFF_T,                                 \
           (YYPTRDIFF_MAXIMUM < YY_CAST (YYSIZE_T, -1)  \
            ? YYPTRDIFF_MAXIMUM                         \
            : YY_CAST (YYSIZE_T, -1)))

#define YYSIZEOF(X) YY_CAST (YYPTRDIFF_T, sizeof (X))


/* Stored state numbers (used for stacks). */
typedef yytype_int16 yy_state_t;

/* State numbers in computations.  */
typedef int yy_state_fast_t;

#ifndef YY_
# if defined YYENABLE_NLS && YYENABLE_NLS
#  if ENABLE_NLS
#   include <libintl.h> /* INFRINGES ON USER NAME SPACE */
#   define YY_(Msgid) dgettext ("bison-runtime", Msgid)
#  endif
# endif
# ifndef YY_
#  define YY_(Msgid) Msgid
# endif
#endif


#ifndef YY_ATTRIBUTE_PURE
# if defined __GNUC__ && 2 < __GNUC__ + (96 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_PURE __attribute__ ((__pure__))
# else
#  define YY_ATTRIBUTE_PURE
# endif
#endif

#ifndef YY_ATTRIBUTE_UNUSED
# if defined __GNUC__ && 2 < __GNUC__ + (7 <= __GNUC_MINOR__)
#  define YY_ATTRIBUTE_UNUSED __attribute__ ((__unused__))
# else
#  define YY_ATTRIBUTE_UNUSED
# endif
#endif

/* Suppress unused-variable warnings by "using" E.  */
#if ! defined lint || defined __GNUC__
# define YY_USE(E) ((void) (E))
#else
# define YY_USE(E) /* empty */
#endif

/* Suppress an incorrect diagnostic about yylval being uninitialized.  */
#if defined __GNUC__ && ! defined __ICC && 406 <= __GNUC__ * 100 + __GNUC_MINOR__
# if __GNUC__ * 100 + __GNUC_MINOR__ < 407
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")
# else
#  define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN                           \
    _Pragma ("GCC diagnostic push")                                     \
    _Pragma ("GCC diagnostic ignored \"-Wuninitialized\"")              \
    _Pragma ("GCC diagnostic ignored \"-Wmaybe-uninitialized\"")
# endif
# define YY_IGNORE_MAYBE_UNINITIALIZED_END      \
    _Pragma ("GCC diagnostic pop")
#else
# define YY_INITIAL_VALUE(Value) Value
#endif
#ifndef YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
# define YY_IGNORE_MAYBE_UNINITIALIZED_END
#endif
#ifndef YY_INITIAL_VALUE
# define YY_INITIAL_VALUE(Value) /* Nothing. */
#endif

#if defined __cplusplus && defined __GNUC__ && ! defined __ICC && 6 <= __GNUC__
# define YY_IGNORE_USELESS_CAST_BEGIN                          \
    _Pragma ("GCC diagnostic push")                            \
    _Pragma ("GCC diagnostic ignored \"-Wuseless-cast\"")
# define YY_IGNORE_USELESS_CAST_END            \
    _Pragma ("GCC diagnostic pop")
#endif
#ifndef YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_BEGIN
# define YY_IGNORE_USELESS_CAST_END
#endif


#define YY_ASSERT(E) ((void) (0 && (E)))

#if !defined yyoverflow

/* The parser invokes alloca or malloc; define the necessary symbols.  */

# ifdef YYSTACK_USE_ALLOCA
#  if YYSTACK_USE_ALLOCA
#   ifdef __GNUC__
#    define YYSTACK_ALLOC __builtin_alloca
#   elif defined __BUILTIN_VA_ARG_INCR
#    include <alloca.h> /* INFRINGES ON USER NAME SPACE */
#   elif defined _AIX
#    define YYSTACK_ALLOC __alloca
#   elif defined _MSC_VER
#    include <malloc.h> /* INFRINGES ON USER NAME SPACE */
#    define alloca _alloca
#   else
#    define YYSTACK_ALLOC alloca
#    if ! defined _ALLOCA_H && ! defined EXIT_SUCCESS
#     include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
      /* Use EXIT_SUCCESS as a witness for stdlib.h.  */
#     ifndef EXIT_SUCCESS
#      define EXIT_SUCCESS 0
#     endif
#    endif
#   endif
#  endif
# endif

# ifdef YYSTACK_ALLOC
   /* Pacify GCC's 'empty if-body' warning.  */
#  define YYSTACK_FREE(Ptr) do { /* empty */; } while (0)
#  ifndef YYSTACK_ALLOC_MAXIMUM
    /* The OS might guarantee only one guard page at the bottom of the stack,
       and a page size can be as small as 4096 bytes.  So we cannot safely
       invoke alloca (N) if N exceeds 4096.  Use a slightly smaller number
       to allow for a few compiler-allocated temporary stack slots.  */
#   define YYSTACK_ALLOC_MAXIMUM 4032 /* reasonable circa 2006 */
#  endif
# else
#  define YYSTACK_ALLOC YYMALLOC
#  define YYSTACK_FREE YYFREE
#  ifndef YYSTACK_ALLOC_MAXIMUM
#   define YYSTACK_ALLOC_MAXIMUM YYSIZE_MAXIMUM
#  endif
#  if (defined __cplusplus && ! defined EXIT_SUCCESS \
       && ! ((defined YYMALLOC || defined malloc) \
             && (defined YYFREE || defined free)))
#   include <stdlib.h> /* INFRINGES ON USER NAME SPACE */
#   ifndef EXIT_SUCCESS
#    define EXIT_SUCCESS 0
#   endif
#  endif
#  ifndef YYMALLOC
#   define YYMALLOC malloc
#   if ! defined malloc && ! defined EXIT_SUCCESS
void *malloc (YYSIZE_T); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
#  ifndef YYFREE
#   define YYFREE free
#   if ! defined free && ! defined EXIT_SUCCESS
void free (void *); /* INFRINGES ON USER NAME SPACE */
#   endif
#  endif
# endif
#endif /* !defined yyoverflow */

#if (! defined yyoverflow \
     && (! defined __cplusplus \
         || (defined YYSTYPE_IS_TRIVIAL && YYSTYPE_IS_TRIVIAL)))

/* A type that is properly aligned for any stack member.  */
union yyalloc
{
  yy_state_t yyss_alloc;
  YYSTYPE yyvs_alloc;
};

/* The size of the maximum gap between one aligned stack and the next.  */
# define YYSTACK_GAP_MAXIMUM (YYSIZEOF (union yyalloc) - 1)

/* The size of an array large to enough to hold all stacks, each with
   N elements.  */
# define YYSTACK_BYTES(N) \
     ((N) * (YYSIZEOF (yy_state_t) + YYSIZEOF (YYSTYPE)) \
      + YYSTACK_GAP_MAXIMUM)

# define YYCOPY_NEEDED 1

/* Relocate STACK from its old location to the new one.  The
   local variables YYSIZE and YYSTACKSIZE give the old and new number of
   elements in the stack, and YYPTR gives the new location of the
   stack.  Advance YYPTR to a properly aligned location for the next
   stack.  */
# define YYSTACK_RELOCATE(Stack_alloc, Stack)                           \
    do                                                                  \
      {                                                                 \
        YYPTRDIFF_T yynewbytes;                                         \
        YYCOPY (&yyptr->Stack_alloc, Stack, yysize);                    \
        Stack = &yyptr->Stack_alloc;                                    \
        yynewbytes = yystacksize * YYSIZEOF (*Stack) + YYSTACK_GAP_MAXIMUM; \
        yyptr += yynewbytes / YYSIZEOF (*yyptr);                        \
      }                                                                 \
    while (0)

#endif

#if defined YYCOPY_NEEDED && YYCOPY_NEEDED
/* Copy COUNT objects from SRC to DST.  The source and destination do
   not overlap.  */
# ifndef YYCOPY
#  if defined __GNUC__ && 1 < __GNUC__
#   define YYCOPY(Dst, Src, Count) \
      __builtin_memcpy (Dst, Src, YY_CAST (YYSIZE_T, (Count)) * sizeof (*(Src)))
#  else
#   define YYCOPY(Dst, Src, Count)              \
      do                                        \
        {                                       \
          YYPTRDIFF_T yyi;                      \
          for (yyi = 0; yyi < (Count); yyi++)   \
            (Dst)[yyi] = (Src)[yyi];            \
        }                                       \
      while (0)
#  endif
# endif
#endif /* !YYCOPY_NEEDED */

/* YYFINAL -- State number of the termination state.  */
#define YYFINAL  7
/* YYLAST -- Last index in YYTABLE.  */
#define YYLAST   292

/* YYNTOKENS -- Number of terminals.  */
#define YYNTOKENS  80
/* YYNNTS -- Number of nonterminals.  */
#define YYNNTS  56
/* YYNRULES -- Number of rules.  */
#define YYNRULES  141
/* YYNSTATES -- Number of states.  */
#define YYNSTATES  314

/* YYMAXUTOK -- Last valid token kind.  */
#define YYMAXUTOK   330


/* YYTRANSLATE(TOKEN-NUM) -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex, with out-of-bounds checking.  */
#define YYTRANSLATE(YYX)                                \
  (0 <= (YYX) && (YYX) <= YYMAXUTOK                     \
   ? YY_CAST (yysymbol_kind_t, yytranslate[YYX])        \
   : YYSYMBOL_YYUNDEF)

/* YYTRANSLATE[TOKEN-NUM] -- Symbol number corresponding to TOKEN-NUM
   as returned by yylex.  */
static const yytype_int8 yytranslate[] =
{
       0,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,    79,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,    78,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,    76,     2,    77,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     2,     2,     2,     2,
       2,     2,     2,     2,     2,     2,     1,     2,     3,     4,
       5,     6,     7,     8,     9,    10,    11,    12,    13,    14,
      15,    16,    17,    18,    19,    20,    21,    22,    23,    24,
      25,    26,    27,    28,    29,    30,    31,    32,    33,    34,
      35,    36,    37,    38,    39,    40,    41,    42,    43,    44,
      45,    46,    47,    48,    49,    50,    51,    52,    53,    54,
      55,    56,    57,    58,    59,    60,    61,    62,    63,    64,
      65,    66,    67,    68,    69,    70,    71,    72,    73,    74,
      75
};

#if YYDEBUG
/* YYRLINE[YYN] -- Source line where rule number YYN was defined.  */
static const yytype_int16 yyrline[] =
{
       0,   188,   188,   189,   192,   202,   231,   238,   239,   242,
     243,   244,   245,   246,   247,   248,   249,   250,   251,   252,
     255,   259,   263,   267,   271,   275,   279,   283,   287,   291,
     295,   299,   305,   309,   313,   317,   321,   325,   329,   333,
     337,   341,   345,   349,   353,   357,   361,   365,   399,   405,
     411,   423,   435,   448,   463,   469,   480,   494,   512,   557,
     558,   559,   562,   563,   566,   580,   586,   608,   633,   658,
     689,   690,   691,   694,   695,   698,   704,   710,   716,   722,
     729,   736,   742,   748,   762,   777,   785,   809,   810,   813,
     814,   818,   822,   826,   832,   839,   840,   843,   873,   882,
     883,   886,   887,   891,   895,   899,   903,   909,   916,   917,
     920,   962,   971,   972,   975,   976,   980,   985,   991,   998,
    1011,  1012,  1015,  1016,  1019,  1023,  1027,  1031,  1037,  1044,
    1044,  1046,  1060,  1080,  1081,  1084,  1085,  1088,  1092,  1096,
    1102,  1106
};
#endif

/** Accessing symbol of state STATE.  */
#define YY_ACCESSING_SYMBOL(State) YY_CAST (yysymbol_kind_t, yystos[State])

#if YYDEBUG || 0
/* The user-facing name of the symbol whose (internal) number is
   YYSYMBOL.  No bounds checking.  */
static const char *yysymbol_name (yysymbol_kind_t yysymbol) YY_ATTRIBUTE_UNUSED;

/* YYTNAME[SYMBOL-NUM] -- String name of the symbol SYMBOL-NUM.
   First, the terminals, then, starting at YYNTOKENS, nonterminals.  */
static const char *const yytname[] =
{
  "\"end of file\"", "error", "\"invalid token\"", "T_INTERFACE",
  "T_PREFIX", "T_ROUTE", "T_RDNSS", "T_DNSSL", "T_CLIENTS", "T_LOWPANCO",
  "T_ABRO", "T_RASRCADDRESS", "T_NAT64PREFIX", "T_AUTOIGNOREPREFIX",
  "STRING", "NUMBER", "SIGNEDNUMBER", "DECIMAL", "SWITCH", "IPV6ADDR",
  "NOT_IPV6ADDR", "INFINITY", "T_IgnoreIfMissing", "T_AdvSendAdvert",
  "T_MaxRtrAdvInterval", "T_MinRtrAdvInterval", "T_MinDelayBetweenRAs",
  "T_AdvManagedFlag", "T_AdvOtherConfigFlag", "T_AdvLinkMTU", "T_AdvRAMTU",
  "T_AdvReachableTime", "T_AdvRetransTimer", "T_AdvCurHopLimit",
  "T_AdvDefaultLifetime", "T_AdvDefaultPreference", "T_AdvSourceLLAddress",
  "T_RemoveAdvOnExit", "T_AdvOnLink", "T_AdvAutonomous",
  "T_AdvDHCPv6PDPreferred", "T_AdvValidLifetime", "T_AdvPreferredLifetime",
  "T_DeprecatePrefix", "T_DecrementLifetimes", "T_AdvRouterAddr",
  "T_AdvHomeAgentFlag", "T_AdvIntervalOpt", "T_AdvHomeAgentInfo",
  "T_Base6Interface", "T_Base6to4Interface", "T_UnicastOnly",
  "T_UnrestrictedUnicast", "T_AdvRASolicitedUnicast",
  "T_AdvCaptivePortalAPI", "T_HomeAgentPreference", "T_HomeAgentLifetime",
  "T_AdvRoutePreference", "T_AdvRouteLifetime", "T_RemoveRoute",
  "T_AdvRDNSSPreference", "T_AdvRDNSSOpenFlag", "T_AdvRDNSSLifetime",
  "T_FlushRDNSS", "T_AdvDNSSLLifetime", "T_FlushDNSSL",
  "T_AdvMobRtrSupportFlag", "T_AdvContextLength",
  "T_AdvContextCompressionFlag", "T_AdvContextID", "T_AdvLifeTime",
  "T_AdvContextPrefix", "T_AdvVersionLow", "T_AdvVersionHigh",
  "T_Adv6LBRaddress", "T_BAD_TOKEN", "'{'", "'}'", "';'", "'/'", "$accept",
  "grammar", "ifacedef", "ifacehead", "name", "ifaceparams", "ifaceparam",
  "ifaceval", "clientslist", "v6addrlist_clients", "rasrcaddresslist",
  "v6addrlist_rasrcaddress", "nat64prefixdef", "nat64prefixhead",
  "optional_nat64prefixplist", "nat64prefixplist", "nat64prefixparms",
  "ignoreprefixlist", "ignoreprefixes", "prefixdef", "prefixhead",
  "optional_prefixplist", "prefixplist", "prefixparms", "routedef",
  "routehead", "optional_routeplist", "routeplist", "routeparms",
  "rdnssdef", "rdnssaddrs", "rdnssaddr", "rdnsshead",
  "optional_rdnssplist", "rdnssplist", "rdnssparms", "dnssldef",
  "dnsslsuffixes", "dnsslsuffix", "dnsslhead", "optional_dnsslplist",
  "dnsslplist", "dnsslparms", "lowpancodef", "lowpancohead",
  "optional_lowpancoplist", "lowpancoplist", "lowpancoparms", "abrodef",
  "abrohead", "abrohead_new", "abrohead_dep", "optional_abroplist",
  "abroplist", "abroparms", "number_or_infinity", YY_NULLPTR
};

static const char *
yysymbol_name (yysymbol_kind_t yysymbol)
{
  return yytname[yysymbol];
}
#endif

#define YYPACT_NINF (-86)

#define yypact_value_is_default(Yyn) \
  ((Yyn) == YYPACT_NINF)

#define YYTABLE_NINF (-1)

#define yytable_value_is_error(Yyn) \
  0

/* YYPACT[STATE-NUM] -- Index in YYTABLE of the portion describing
   STATE-NUM.  */
static const yytype_int16 yypact[] =
{
      34,    31,    35,   -86,   -15,   -86,   -86,   -86,   -86,   -86,
      -4,    47,    74,    84,    94,    33,   -86,    92,    38,    93,
      39,    98,    99,    24,    52,    87,   100,   101,   105,   106,
     107,   108,   109,   110,   111,   112,   113,   114,   115,   116,
     117,   118,   119,   124,   125,   126,   121,    48,   -86,   -86,
     -86,   -86,   -86,    53,   -86,   -86,    66,   -86,    67,   -86,
      68,   -86,    69,   -86,    70,   -86,    71,   -86,   -86,    49,
      72,   -86,    84,   -86,   -86,    94,   -86,    64,    73,   129,
      75,   130,    77,    78,    79,    80,    81,    82,    83,    85,
      86,    88,    89,    90,    91,    95,    96,    97,   102,   103,
     104,   120,   122,   123,   127,   128,   131,   132,   133,   134,
     135,   -86,    -5,   136,    15,   137,    42,   -46,    32,    21,
      22,   138,   147,   -86,   -86,   139,   140,    -9,   150,   141,
      -7,   155,   142,    -6,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   156,   -86,     5,   -86,   -86,   154,   158,
     159,    19,    19,   160,   161,   165,    31,    31,   -86,    36,
     -86,   -86,   168,    19,   167,   143,    42,   -86,   171,   169,
      19,   170,   145,   -46,   -86,    19,   172,   146,    32,   -86,
     174,   173,   177,   178,   148,    21,   -86,   179,   180,   181,
     149,    22,   -86,   -86,   -86,   -86,   -86,   151,   152,   153,
     -86,   -86,   157,   162,   -86,   182,   163,   166,   175,   -86,
     -86,   176,   183,   184,   -86,   -86,   185,   186,   187,   188,
     189,   190,   191,   -86,   -86,   192,   193,   194,   195,   -86,
     196,   197,   198,   199,   200,   -86,   201,   202,   203,   -86,
     204,   205,   206,   207,   208,   -86,   209,   210,   211,   212,
     -86,   -86,   -86,   -86,   -86,   -86,   213,   217,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   214,   -86
};

/* YYDEFACT[STATE-NUM] -- Default reduction number in state STATE-NUM.
   Performed when YYTABLE does not specify something else to do.  Zero
   means the default is an error.  */
static const yytype_uint8 yydefact[] =
{
       0,     0,     0,     3,     0,     6,     5,     1,     2,     8,
       0,     0,     0,     0,     0,     0,   119,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     7,     9,
      11,    17,    18,    59,    19,    10,    70,    12,     0,    13,
       0,    14,     0,    15,     0,    16,     0,   129,   130,     0,
       0,    97,    98,    96,   110,   111,   109,     0,   131,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,     0,     0,
       0,     4,     0,     0,     0,     0,    87,    99,   112,   120,
     133,     0,     0,    95,   108,     0,     0,     0,     0,     0,
       0,     0,     0,     0,    26,    27,    21,    24,    20,    23,
      22,    25,    28,    29,    30,    31,    32,    33,    36,    34,
      35,    38,    37,    41,    39,    40,    44,    45,    46,    47,
      42,    43,    48,     0,    60,     0,    63,    57,     0,     0,
       0,     0,     0,     0,     0,     0,     0,     0,    71,     0,
      74,    68,     0,     0,     0,     0,    88,    90,     0,     0,
       0,     0,     0,   100,   102,     0,     0,     0,   113,   115,
       0,     0,     0,     0,     0,   121,   123,     0,     0,     0,
       0,   134,   136,    69,    86,    50,    51,     0,     0,     0,
     132,    55,     0,     0,    58,     0,     0,     0,     0,    61,
      62,     0,     0,     0,   140,   141,     0,     0,     0,     0,
       0,     0,     0,    72,    73,     0,     0,     0,     0,    89,
       0,     0,     0,     0,     0,   101,     0,     0,     0,   114,
       0,     0,     0,     0,     0,   122,     0,     0,     0,     0,
     135,    52,    53,    49,    56,    54,     0,     0,    65,    64,
      75,    76,    78,    79,    80,    81,    82,    77,    83,    84,
      91,    92,    93,    85,   103,   104,   105,   106,    94,   116,
     117,   107,   124,   125,   126,   127,   118,   139,   137,   138,
     128,    66,     0,    67
};

/* YYPGOTO[NTERM-NUM].  */
static const yytype_int16 yypgoto[] =
{
     -86,   -86,   222,   -86,   -70,   -86,   -86,   -86,   -86,   -86,
     -86,   -86,   -86,   -86,   -86,   -86,    37,   -86,   -86,   -86,
     -86,   -86,   -86,   -29,   -86,   -86,   -86,   -86,    13,   -86,
     -86,   144,   -86,   -86,   -86,    10,   -86,   -86,   164,   -86,
     -86,   -86,     6,   -86,   -86,   -86,   -86,     2,   -86,   -86,
     -86,   -86,   -86,   -86,    -3,   -85
};

/* YYDEFGOTO[NTERM-NUM].  */
static const yytype_uint8 yydefgoto[] =
{
       0,     2,     3,     4,     6,    10,    48,    49,    50,   127,
      51,   130,    52,    53,   113,   165,   166,    54,   133,    55,
      56,   115,   179,   180,    57,    58,   185,   186,   187,    59,
      72,    73,    60,   192,   193,   194,    61,    75,    76,    62,
     197,   198,   199,    63,    64,   204,   205,   206,    65,    66,
      67,    68,   210,   211,   212,   236
};

/* YYTABLE[YYPACT[STATE-NUM]] -- What to do in state STATE-NUM.  If
   positive, shift that token.  If negative, reduce the rule whose
   number is the opposite.  If YYTABLE_NINF, syntax error.  */
static const yytype_int16 yytable[] =
{
      11,    12,    13,    14,    15,    16,    17,    18,    19,    20,
     217,   218,   222,   226,   188,   189,   190,   191,    21,    22,
      23,    24,    25,    26,    27,    28,    29,    30,    31,    32,
      33,    34,    35,    36,   234,     7,   163,     1,     1,    84,
     235,    85,    37,    38,    39,     5,   163,    40,    41,    42,
      43,    44,    45,   168,   169,   170,   171,   172,   173,   174,
     175,     9,    46,   207,   176,   177,    69,    86,   219,    87,
     223,   227,   164,    47,   168,   169,   170,   171,   172,   173,
     174,   175,   229,   125,   126,   176,   177,   237,   200,   201,
     202,   203,   178,    70,   208,   209,   195,   196,   246,   182,
     183,   184,    88,    71,    89,   252,   241,   242,    74,    77,
     256,    78,    80,   243,    79,    81,    82,    83,    90,    91,
      92,    93,    94,    95,    96,    97,   111,    98,   121,   112,
      99,   100,   101,   102,   103,   104,   105,   106,   107,   110,
     108,   109,   114,   116,   117,   118,   119,   120,   129,   132,
     244,   122,   128,   213,   131,   134,   135,   136,   137,   138,
     139,   140,   214,   141,   142,   220,   143,   144,   145,   146,
     224,   228,   231,   147,   148,   149,   232,   233,   238,   239,
     150,   151,   152,   240,   245,   247,   250,   251,   253,   260,
     257,   261,   262,   263,   266,   267,   268,   276,   153,   249,
     154,   155,   230,   255,   259,   156,   157,   265,   270,   158,
     159,   160,   161,   162,   167,   181,   123,   215,   216,   221,
     248,   225,   254,   258,     8,   264,   269,     0,     0,   271,
     272,   273,   312,     0,     0,   274,     0,     0,     0,   124,
     275,     0,   277,     0,   278,     0,     0,     0,     0,     0,
       0,     0,     0,   279,   280,     0,     0,     0,     0,     0,
       0,   281,   282,   283,   284,   285,   286,   287,   288,   289,
     290,   291,   292,   293,   294,   295,   296,   297,   298,   299,
     300,   301,   302,   303,   304,   305,   306,   307,   308,   309,
     310,   311,   313
};

static const yytype_int16 yycheck[] =
{
       4,     5,     6,     7,     8,     9,    10,    11,    12,    13,
      19,    20,    19,    19,    60,    61,    62,    63,    22,    23,
      24,    25,    26,    27,    28,    29,    30,    31,    32,    33,
      34,    35,    36,    37,    15,     0,    41,     3,     3,    15,
      21,    17,    46,    47,    48,    14,    41,    51,    52,    53,
      54,    55,    56,    38,    39,    40,    41,    42,    43,    44,
      45,    76,    66,    41,    49,    50,    19,    15,    77,    17,
      77,    77,    77,    77,    38,    39,    40,    41,    42,    43,
      44,    45,    77,    19,    20,    49,    50,   172,    67,    68,
      69,    70,    77,    19,    72,    73,    64,    65,   183,    57,
      58,    59,    15,    19,    17,   190,   176,   177,    14,    76,
     195,    19,    19,    77,    76,    76,    18,    18,    18,    18,
      15,    15,    15,    15,    15,    15,    78,    16,    79,    76,
      18,    18,    18,    18,    18,    18,    18,    18,    14,    18,
      15,    15,    76,    76,    76,    76,    76,    76,    19,    19,
     179,    79,    79,    15,    79,    78,    78,    78,    78,    78,
      78,    78,    15,    78,    78,    15,    78,    78,    78,    78,
      15,    15,    18,    78,    78,    78,    18,    18,    18,    18,
      78,    78,    78,    18,    16,    18,    15,    18,    18,    15,
      18,    18,    15,    15,    15,    15,    15,    15,    78,   186,
      78,    78,   165,   193,   198,    78,    78,   205,   211,    78,
      78,    78,    78,    78,    78,    78,    72,    78,    78,    78,
      77,    79,    77,    77,     2,    77,    77,    -1,    -1,    78,
      78,    78,    15,    -1,    -1,    78,    -1,    -1,    -1,    75,
      78,    -1,    79,    -1,    78,    -1,    -1,    -1,    -1,    -1,
      -1,    -1,    -1,    78,    78,    -1,    -1,    -1,    -1,    -1,
      -1,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78
};

/* YYSTOS[STATE-NUM] -- The symbol kind of the accessing symbol of
   state STATE-NUM.  */
static const yytype_uint8 yystos[] =
{
       0,     3,    81,    82,    83,    14,    84,     0,    82,    76,
      85,     4,     5,     6,     7,     8,     9,    10,    11,    12,
      13,    22,    23,    24,    25,    26,    27,    28,    29,    30,
      31,    32,    33,    34,    35,    36,    37,    46,    47,    48,
      51,    52,    53,    54,    55,    56,    66,    77,    86,    87,
      88,    90,    92,    93,    97,    99,   100,   104,   105,   109,
     112,   116,   119,   123,   124,   128,   129,   130,   131,    19,
      19,    19,   110,   111,    14,   117,   118,    76,    19,    76,
      19,    76,    18,    18,    15,    17,    15,    17,    15,    17,
      18,    18,    15,    15,    15,    15,    15,    15,    16,    18,
      18,    18,    18,    18,    18,    18,    18,    14,    15,    15,
      18,    78,    76,    94,    76,   101,    76,    76,    76,    76,
      76,    79,    79,   111,   118,    19,    20,    89,    79,    19,
      91,    79,    19,    98,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    41,    77,    95,    96,    78,    38,    39,
      40,    41,    42,    43,    44,    45,    49,    50,    77,   102,
     103,    78,    57,    58,    59,   106,   107,   108,    60,    61,
      62,    63,   113,   114,   115,    64,    65,   120,   121,   122,
      67,    68,    69,    70,   125,   126,   127,    41,    72,    73,
     132,   133,   134,    15,    15,    78,    78,    19,    20,    77,
      15,    78,    19,    77,    15,    79,    19,    77,    15,    77,
      96,    18,    18,    18,    15,    21,   135,   135,    18,    18,
      18,    84,    84,    77,   103,    16,   135,    18,    77,   108,
      15,    18,   135,    18,    77,   115,   135,    18,    77,   122,
      15,    18,    15,    15,    77,   127,    15,    15,    15,    77,
     134,    78,    78,    78,    78,    78,    15,    79,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    78,    78,    78,    78,    78,    78,    78,    78,
      78,    78,    15,    78
};

/* YYR1[RULE-NUM] -- Symbol kind of the left-hand side of rule RULE-NUM.  */
static const yytype_uint8 yyr1[] =
{
       0,    80,    81,    81,    82,    83,    84,    85,    85,    86,
      86,    86,    86,    86,    86,    86,    86,    86,    86,    86,
      87,    87,    87,    87,    87,    87,    87,    87,    87,    87,
      87,    87,    87,    87,    87,    87,    87,    87,    87,    87,
      87,    87,    87,    87,    87,    87,    87,    87,    87,    88,
      89,    89,    89,    89,    90,    91,    91,    92,    93,    94,
      94,    94,    95,    95,    96,    97,    98,    98,    99,   100,
     101,   101,   101,   102,   102,   103,   103,   103,   103,   103,
     103,   103,   103,   103,   103,   104,   105,   106,   106,   107,
     107,   108,   108,   108,   109,   110,   110,   111,   112,   113,
     113,   114,   114,   115,   115,   115,   115,   116,   117,   117,
     118,   119,   120,   120,   121,   121,   122,   122,   123,   124,
     125,   125,   126,   126,   127,   127,   127,   127,   128,   129,
     129,   130,   131,   132,   132,   133,   133,   134,   134,   134,
     135,   135
};

/* YYR2[RULE-NUM] -- Number of symbols on the right-hand side of rule RULE-NUM.  */
static const yytype_int8 yyr2[] =
{
       0,     2,     2,     1,     5,     2,     1,     2,     0,     1,
       1,     1,     1,     1,     1,     1,     1,     1,     1,     1,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     3,     3,     3,     3,     5,
       2,     2,     3,     3,     5,     2,     3,     3,     4,     0,
       2,     3,     2,     1,     3,     5,     4,     5,     3,     4,
       0,     2,     3,     2,     1,     3,     3,     3,     3,     3,
       3,     3,     3,     3,     3,     5,     4,     0,     1,     2,
       1,     3,     3,     3,     5,     2,     1,     1,     2,     0,
       1,     2,     1,     3,     3,     3,     3,     5,     2,     1,
       1,     2,     0,     1,     2,     1,     3,     3,     5,     1,
       0,     1,     2,     1,     3,     3,     3,     3,     5,     1,
       1,     2,     4,     0,     1,     2,     1,     3,     3,     3,
       1,     1
};


enum { YYENOMEM = -2 };

#define yyerrok         (yyerrstatus = 0)
#define yyclearin       (yychar = YYEMPTY)

#define YYACCEPT        goto yyacceptlab
#define YYABORT         goto yyabortlab
#define YYERROR         goto yyerrorlab
#define YYNOMEM         goto yyexhaustedlab


#define YYRECOVERING()  (!!yyerrstatus)

#define YYBACKUP(Token, Value)                                    \
  do                                                              \
    if (yychar == YYEMPTY)                                        \
      {                                                           \
        yychar = (Token);                                         \
        yylval = (Value);                                         \
        YYPOPSTACK (yylen);                                       \
        yystate = *yyssp;                                         \
        goto yybackup;                                            \
      }                                                           \
    else                                                          \
      {                                                           \
        yyerror (YY_("syntax error: cannot back up")); \
        YYERROR;                                                  \
      }                                                           \
  while (0)

/* Backward compatibility with an undocumented macro.
   Use YYerror or YYUNDEF. */
#define YYERRCODE YYUNDEF


/* Enable debugging if requested.  */
#if YYDEBUG

# ifndef YYFPRINTF
#  include <stdio.h> /* INFRINGES ON USER NAME SPACE */
#  define YYFPRINTF fprintf
# endif

# define YYDPRINTF(Args)                        \
do {                                            \
  if (yydebug)                                  \
    YYFPRINTF Args;                             \
} while (0)




# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)                    \
do {                                                                      \
  if (yydebug)                                                            \
    {                                                                     \
      YYFPRINTF (stderr, "%s ", Title);                                   \
      yy_symbol_print (stderr,                                            \
                  Kind, Value); \
      YYFPRINTF (stderr, "\n");                                           \
    }                                                                     \
} while (0)


/*-----------------------------------.
| Print this symbol's value on YYO.  |
`-----------------------------------*/

static void
yy_symbol_value_print (FILE *yyo,
                       yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  FILE *yyoutput = yyo;
  YY_USE (yyoutput);
  if (!yyvaluep)
    return;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/*---------------------------.
| Print this symbol on YYO.  |
`---------------------------*/

static void
yy_symbol_print (FILE *yyo,
                 yysymbol_kind_t yykind, YYSTYPE const * const yyvaluep)
{
  YYFPRINTF (yyo, "%s %s (",
             yykind < YYNTOKENS ? "token" : "nterm", yysymbol_name (yykind));

  yy_symbol_value_print (yyo, yykind, yyvaluep);
  YYFPRINTF (yyo, ")");
}

/*------------------------------------------------------------------.
| yy_stack_print -- Print the state stack from its BOTTOM up to its |
| TOP (included).                                                   |
`------------------------------------------------------------------*/

static void
yy_stack_print (yy_state_t *yybottom, yy_state_t *yytop)
{
  YYFPRINTF (stderr, "Stack now");
  for (; yybottom <= yytop; yybottom++)
    {
      int yybot = *yybottom;
      YYFPRINTF (stderr, " %d", yybot);
    }
  YYFPRINTF (stderr, "\n");
}

# define YY_STACK_PRINT(Bottom, Top)                            \
do {                                                            \
  if (yydebug)                                                  \
    yy_stack_print ((Bottom), (Top));                           \
} while (0)


/*------------------------------------------------.
| Report that the YYRULE is going to be reduced.  |
`------------------------------------------------*/

static void
yy_reduce_print (yy_state_t *yyssp, YYSTYPE *yyvsp,
                 int yyrule)
{
  int yylno = yyrline[yyrule];
  int yynrhs = yyr2[yyrule];
  int yyi;
  YYFPRINTF (stderr, "Reducing stack by rule %d (line %d):\n",
             yyrule - 1, yylno);
  /* The symbols being reduced.  */
  for (yyi = 0; yyi < yynrhs; yyi++)
    {
      YYFPRINTF (stderr, "   $%d = ", yyi + 1);
      yy_symbol_print (stderr,
                       YY_ACCESSING_SYMBOL (+yyssp[yyi + 1 - yynrhs]),
                       &yyvsp[(yyi + 1) - (yynrhs)]);
      YYFPRINTF (stderr, "\n");
    }
}

# define YY_REDUCE_PRINT(Rule)          \
do {                                    \
  if (yydebug)                          \
    yy_reduce_print (yyssp, yyvsp, Rule); \
} while (0)

/* Nonzero means print parse trace.  It is left uninitialized so that
   multiple parsers can coexist.  */
int yydebug;
#else /* !YYDEBUG */
# define YYDPRINTF(Args) ((void) 0)
# define YY_SYMBOL_PRINT(Title, Kind, Value, Location)
# define YY_STACK_PRINT(Bottom, Top)
# define YY_REDUCE_PRINT(Rule)
#endif /* !YYDEBUG */


/* YYINITDEPTH -- initial size of the parser's stacks.  */
#ifndef YYINITDEPTH
# define YYINITDEPTH 200
#endif

/* YYMAXDEPTH -- maximum size the stacks can grow to (effective only
   if the built-in stack extension method is used).

   Do not make this value too large; the results are undefined if
   YYSTACK_ALLOC_MAXIMUM < YYSTACK_BYTES (YYMAXDEPTH)
   evaluated with infinite-precision integer arithmetic.  */

#ifndef YYMAXDEPTH
# define YYMAXDEPTH 10000
#endif






/*-----------------------------------------------.
| Release the memory associated to this symbol.  |
`-----------------------------------------------*/

static void
yydestruct (const char *yymsg,
            yysymbol_kind_t yykind, YYSTYPE *yyvaluep)
{
  YY_USE (yyvaluep);
  if (!yymsg)
    yymsg = "Deleting";
  YY_SYMBOL_PRINT (yymsg, yykind, yyvaluep, yylocationp);

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  YY_USE (yykind);
  YY_IGNORE_MAYBE_UNINITIALIZED_END
}


/* Lookahead token kind.  */
int yychar;

/* The semantic value of the lookahead symbol.  */
YYSTYPE yylval;
/* Number of syntax errors so far.  */
int yynerrs;




/*----------.
| yyparse.  |
`----------*/

int
yyparse (void)
{
    yy_state_fast_t yystate = 0;
    /* Number of tokens to shift before error messages enabled.  */
    int yyerrstatus = 0;

    /* Refer to the stacks through separate pointers, to allow yyoverflow
       to reallocate them elsewhere.  */

    /* Their size.  */
    YYPTRDIFF_T yystacksize = YYINITDEPTH;

    /* The state stack: array, bottom, top.  */
    yy_state_t yyssa[YYINITDEPTH];
    yy_state_t *yyss = yyssa;
    yy_state_t *yyssp = yyss;

    /* The semantic value stack: array, bottom, top.  */
    YYSTYPE yyvsa[YYINITDEPTH];
    YYSTYPE *yyvs = yyvsa;
    YYSTYPE *yyvsp = yyvs;

  int yyn;
  /* The return value of yyparse.  */
  int yyresult;
  /* Lookahead symbol kind.  */
  yysymbol_kind_t yytoken = YYSYMBOL_YYEMPTY;
  /* The variables used to return semantic value and location from the
     action routines.  */
  YYSTYPE yyval;



#define YYPOPSTACK(N)   (yyvsp -= (N), yyssp -= (N))

  /* The number of symbols on the RHS of the reduced rule.
     Keep to zero when no symbol should be popped.  */
  int yylen = 0;

  YYDPRINTF ((stderr, "Starting parse\n"));

  yychar = YYEMPTY; /* Cause a token to be read.  */

  goto yysetstate;


/*------------------------------------------------------------.
| yynewstate -- push a new state, which is found in yystate.  |
`------------------------------------------------------------*/
yynewstate:
  /* In all cases, when you get here, the value and location stacks
     have just been pushed.  So pushing a state here evens the stacks.  */
  yyssp++;


/*--------------------------------------------------------------------.
| yysetstate -- set current state (the top of the stack) to yystate.  |
`--------------------------------------------------------------------*/
yysetstate:
  YYDPRINTF ((stderr, "Entering state %d\n", yystate));
  YY_ASSERT (0 <= yystate && yystate < YYNSTATES);
  YY_IGNORE_USELESS_CAST_BEGIN
  *yyssp = YY_CAST (yy_state_t, yystate);
  YY_IGNORE_USELESS_CAST_END
  YY_STACK_PRINT (yyss, yyssp);

  if (yyss + yystacksize - 1 <= yyssp)
#if !defined yyoverflow && !defined YYSTACK_RELOCATE
    YYNOMEM;
#else
    {
      /* Get the current used size of the three stacks, in elements.  */
      YYPTRDIFF_T yysize = yyssp - yyss + 1;

# if defined yyoverflow
      {
        /* Give user a chance to reallocate the stack.  Use copies of
           these so that the &'s don't force the real ones into
           memory.  */
        yy_state_t *yyss1 = yyss;
        YYSTYPE *yyvs1 = yyvs;

        /* Each stack pointer address is followed by the size of the
           data in use in that stack, in bytes.  This used to be a
           conditional around just the two extra args, but that might
           be undefined if yyoverflow is a macro.  */
        yyoverflow (YY_("memory exhausted"),
                    &yyss1, yysize * YYSIZEOF (*yyssp),
                    &yyvs1, yysize * YYSIZEOF (*yyvsp),
                    &yystacksize);
        yyss = yyss1;
        yyvs = yyvs1;
      }
# else /* defined YYSTACK_RELOCATE */
      /* Extend the stack our own way.  */
      if (YYMAXDEPTH <= yystacksize)
        YYNOMEM;
      yystacksize *= 2;
      if (YYMAXDEPTH < yystacksize)
        yystacksize = YYMAXDEPTH;

      {
        yy_state_t *yyss1 = yyss;
        union yyalloc *yyptr =
          YY_CAST (union yyalloc *,
                   YYSTACK_ALLOC (YY_CAST (YYSIZE_T, YYSTACK_BYTES (yystacksize))));
        if (! yyptr)
          YYNOMEM;
        YYSTACK_RELOCATE (yyss_alloc, yyss);
        YYSTACK_RELOCATE (yyvs_alloc, yyvs);
#  undef YYSTACK_RELOCATE
        if (yyss1 != yyssa)
          YYSTACK_FREE (yyss1);
      }
# endif

      yyssp = yyss + yysize - 1;
      yyvsp = yyvs + yysize - 1;

      YY_IGNORE_USELESS_CAST_BEGIN
      YYDPRINTF ((stderr, "Stack size increased to %ld\n",
                  YY_CAST (long, yystacksize)));
      YY_IGNORE_USELESS_CAST_END

      if (yyss + yystacksize - 1 <= yyssp)
        YYABORT;
    }
#endif /* !defined yyoverflow && !defined YYSTACK_RELOCATE */


  if (yystate == YYFINAL)
    YYACCEPT;

  goto yybackup;


/*-----------.
| yybackup.  |
`-----------*/
yybackup:
  /* Do appropriate processing given the current state.  Read a
     lookahead token if we need one and don't already have one.  */

  /* First try to decide what to do without reference to lookahead token.  */
  yyn = yypact[yystate];
  if (yypact_value_is_default (yyn))
    goto yydefault;

  /* Not known => get a lookahead token if don't already have one.  */

  /* YYCHAR is either empty, or end-of-input, or a valid lookahead.  */
  if (yychar == YYEMPTY)
    {
      YYDPRINTF ((stderr, "Reading a token\n"));
      yychar = yylex ();
    }

  if (yychar <= YYEOF)
    {
      yychar = YYEOF;
      yytoken = YYSYMBOL_YYEOF;
      YYDPRINTF ((stderr, "Now at end of input.\n"));
    }
  else if (yychar == YYerror)
    {
      /* The scanner already issued an error message, process directly
         to error recovery.  But do not keep the error token as
         lookahead, it is too special and may lead us to an endless
         loop in error recovery. */
      yychar = YYUNDEF;
      yytoken = YYSYMBOL_YYerror;
      goto yyerrlab1;
    }
  else
    {
      yytoken = YYTRANSLATE (yychar);
      YY_SYMBOL_PRINT ("Next token is", yytoken, &yylval, &yylloc);
    }

  /* If the proper action on seeing token YYTOKEN is to reduce or to
     detect an error, take that action.  */
  yyn += yytoken;
  if (yyn < 0 || YYLAST < yyn || yycheck[yyn] != yytoken)
    goto yydefault;
  yyn = yytable[yyn];
  if (yyn <= 0)
    {
      if (yytable_value_is_error (yyn))
        goto yyerrlab;
      yyn = -yyn;
      goto yyreduce;
    }

  /* Count tokens shifted since error; after three, turn off error
     status.  */
  if (yyerrstatus)
    yyerrstatus--;

  /* Shift the lookahead token.  */
  YY_SYMBOL_PRINT ("Shifting", yytoken, &yylval, &yylloc);
  yystate = yyn;
  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END

  /* Discard the shifted token.  */
  yychar = YYEMPTY;
  goto yynewstate;


/*-----------------------------------------------------------.
| yydefault -- do the default action for the current state.  |
`-----------------------------------------------------------*/
yydefault:
  yyn = yydefact[yystate];
  if (yyn == 0)
    goto yyerrlab;
  goto yyreduce;


/*-----------------------------.
| yyreduce -- do a reduction.  |
`-----------------------------*/
yyreduce:
  /* yyn is the number of a rule to reduce with.  */
  yylen = yyr2[yyn];

  /* If YYLEN is nonzero, implement the default value of the action:
     '$$ = $1'.

     Otherwise, the following line sets YYVAL to garbage.
     This behavior is undocumented and Bison
     users should not rely upon it.  Assigning to YYVAL
     unconditionally makes the parser a bit smaller, and it avoids a
     GCC warning that YYVAL may be used uninitialized.  */
  yyval = yyvsp[1-yylen];


  YY_REDUCE_PRINT (yyn);
  switch (yyn)
    {
  case 4: /* ifacedef: ifacehead '{' ifaceparams '}' ';'  */
#line 193 "gram.y"
                {
			dlog(LOG_DEBUG, 4, "%s interface definition ok", iface->props.name);

			iface->next = IfaceList;
			IfaceList = iface;

			iface = NULL;
		}
#line 1699 "gram.c"
    break;

  case 5: /* ifacehead: T_INTERFACE name  */
#line 203 "gram.y"
                {
			iface = IfaceList;

			while (iface)
			{
				if (!strcmp((yyvsp[0].str), iface->props.name))
				{
					flog(LOG_ERR, "duplicate interface "
						"definition for %s", (yyvsp[0].str));
					ABORT;
				}
				iface = iface->next;
			}

			iface = malloc(sizeof(struct Interface));

			if (iface == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			iface_init_defaults(iface);
			memset(&iface->props.name, 0, sizeof(iface->props.name));
			strlcpy(iface->props.name, (yyvsp[0].str), sizeof(iface->props.name));
			iface->lineno = num_lines;
		}
#line 1730 "gram.c"
    break;

  case 6: /* name: STRING  */
#line 232 "gram.y"
                {
			/* check vality */
			(yyval.str) = (yyvsp[0].str);
		}
#line 1739 "gram.c"
    break;

  case 10: /* ifaceparam: prefixdef  */
#line 243 "gram.y"
                                { ADD_TO_LL(struct AdvPrefix, AdvPrefixList, (yyvsp[0].pinfo)); }
#line 1745 "gram.c"
    break;

  case 11: /* ifaceparam: clientslist  */
#line 244 "gram.y"
                                { ADD_TO_LL(struct Clients, ClientList, (yyvsp[0].ainfo)); }
#line 1751 "gram.c"
    break;

  case 12: /* ifaceparam: routedef  */
#line 245 "gram.y"
                                { ADD_TO_LL(struct AdvRoute, AdvRouteList, (yyvsp[0].rinfo)); }
#line 1757 "gram.c"
    break;

  case 13: /* ifaceparam: rdnssdef  */
#line 246 "gram.y"
                                { ADD_TO_LL(struct AdvRDNSS, AdvRDNSSList, (yyvsp[0].rdnssinfo)); }
#line 1763 "gram.c"
    break;

  case 14: /* ifaceparam: dnssldef  */
#line 247 "gram.y"
                                { ADD_TO_LL(struct AdvDNSSL, AdvDNSSLList, (yyvsp[0].dnsslinfo)); }
#line 1769 "gram.c"
    break;

  case 15: /* ifaceparam: lowpancodef  */
#line 248 "gram.y"
                                { ADD_TO_LL(struct AdvLowpanCo, AdvLowpanCoList, (yyvsp[0].lowpancoinfo)); }
#line 1775 "gram.c"
    break;

  case 16: /* ifaceparam: abrodef  */
#line 249 "gram.y"
                                { ADD_TO_LL(struct AdvAbro, AdvAbroList, (yyvsp[0].abroinfo)); }
#line 1781 "gram.c"
    break;

  case 17: /* ifaceparam: rasrcaddresslist  */
#line 250 "gram.y"
                                   { ADD_TO_LL(struct AdvRASrcAddress, AdvRASrcAddressList, (yyvsp[0].rasrcaddressinfo)); }
#line 1787 "gram.c"
    break;

  case 18: /* ifaceparam: nat64prefixdef  */
#line 251 "gram.y"
                                 { ADD_TO_LL(struct NAT64Prefix, NAT64PrefixList, (yyvsp[0].nat64pinfo)); }
#line 1793 "gram.c"
    break;

  case 19: /* ifaceparam: ignoreprefixlist  */
#line 252 "gram.y"
                                   { ADD_TO_LL(struct AutogenIgnorePrefix, IgnorePrefixList, (yyvsp[0].igpinfo)); }
#line 1799 "gram.c"
    break;

  case 20: /* ifaceval: T_MinRtrAdvInterval NUMBER ';'  */
#line 256 "gram.y"
                {
			iface->MinRtrAdvInterval = (yyvsp[-1].num);
		}
#line 1807 "gram.c"
    break;

  case 21: /* ifaceval: T_MaxRtrAdvInterval NUMBER ';'  */
#line 260 "gram.y"
                {
			iface->MaxRtrAdvInterval = (yyvsp[-1].num);
		}
#line 1815 "gram.c"
    break;

  case 22: /* ifaceval: T_MinDelayBetweenRAs NUMBER ';'  */
#line 264 "gram.y"
                {
			iface->MinDelayBetweenRAs = (yyvsp[-1].num);
		}
#line 1823 "gram.c"
    break;

  case 23: /* ifaceval: T_MinRtrAdvInterval DECIMAL ';'  */
#line 268 "gram.y"
                {
			iface->MinRtrAdvInterval = (yyvsp[-1].dec);
		}
#line 1831 "gram.c"
    break;

  case 24: /* ifaceval: T_MaxRtrAdvInterval DECIMAL ';'  */
#line 272 "gram.y"
                {
			iface->MaxRtrAdvInterval = (yyvsp[-1].dec);
		}
#line 1839 "gram.c"
    break;

  case 25: /* ifaceval: T_MinDelayBetweenRAs DECIMAL ';'  */
#line 276 "gram.y"
                {
			iface->MinDelayBetweenRAs = (yyvsp[-1].dec);
		}
#line 1847 "gram.c"
    break;

  case 26: /* ifaceval: T_IgnoreIfMissing SWITCH ';'  */
#line 280 "gram.y"
                {
			iface->IgnoreIfMissing = (yyvsp[-1].num);
		}
#line 1855 "gram.c"
    break;

  case 27: /* ifaceval: T_AdvSendAdvert SWITCH ';'  */
#line 284 "gram.y"
                {
			iface->AdvSendAdvert = (yyvsp[-1].num);
		}
#line 1863 "gram.c"
    break;

  case 28: /* ifaceval: T_AdvManagedFlag SWITCH ';'  */
#line 288 "gram.y"
                {
			iface->ra_header_info.AdvManagedFlag = (yyvsp[-1].num);
		}
#line 1871 "gram.c"
    break;

  case 29: /* ifaceval: T_AdvOtherConfigFlag SWITCH ';'  */
#line 292 "gram.y"
                {
			iface->ra_header_info.AdvOtherConfigFlag = (yyvsp[-1].num);
		}
#line 1879 "gram.c"
    break;

  case 30: /* ifaceval: T_AdvLinkMTU NUMBER ';'  */
#line 296 "gram.y"
                {
			iface->AdvLinkMTU = (yyvsp[-1].num);
		}
#line 1887 "gram.c"
    break;

  case 31: /* ifaceval: T_AdvRAMTU NUMBER ';'  */
#line 300 "gram.y"
                {
			iface->AdvRAMTU = (yyvsp[-1].num);
			iface->AdvRAMTU = MAX(MIN_AdvLinkMTU, iface->AdvRAMTU);
			iface->AdvRAMTU = MIN(MAX_AdvLinkMTU, iface->AdvRAMTU);
		}
#line 1897 "gram.c"
    break;

  case 32: /* ifaceval: T_AdvReachableTime NUMBER ';'  */
#line 306 "gram.y"
                {
			iface->ra_header_info.AdvReachableTime = (yyvsp[-1].num);
		}
#line 1905 "gram.c"
    break;

  case 33: /* ifaceval: T_AdvRetransTimer NUMBER ';'  */
#line 310 "gram.y"
                {
			iface->ra_header_info.AdvRetransTimer = (yyvsp[-1].num);
		}
#line 1913 "gram.c"
    break;

  case 34: /* ifaceval: T_AdvDefaultLifetime NUMBER ';'  */
#line 314 "gram.y"
                {
			iface->ra_header_info.AdvDefaultLifetime = (yyvsp[-1].num);
		}
#line 1921 "gram.c"
    break;

  case 35: /* ifaceval: T_AdvDefaultPreference SIGNEDNUMBER ';'  */
#line 318 "gram.y"
                {
			iface->ra_header_info.AdvDefaultPreference = (yyvsp[-1].snum);
		}
#line 1929 "gram.c"
    break;

  case 36: /* ifaceval: T_AdvCurHopLimit NUMBER ';'  */
#line 322 "gram.y"
                {
			iface->ra_header_info.AdvCurHopLimit = (yyvsp[-1].num);
		}
#line 1937 "gram.c"
    break;

  case 37: /* ifaceval: T_RemoveAdvOnExit SWITCH ';'  */
#line 326 "gram.y"
                {
			iface->RemoveAdvOnExit = (yyvsp[-1].num);
		}
#line 1945 "gram.c"
    break;

  case 38: /* ifaceval: T_AdvSourceLLAddress SWITCH ';'  */
#line 330 "gram.y"
                {
			iface->AdvSourceLLAddress = (yyvsp[-1].num);
		}
#line 1953 "gram.c"
    break;

  case 39: /* ifaceval: T_AdvIntervalOpt SWITCH ';'  */
#line 334 "gram.y"
                {
			iface->mipv6.AdvIntervalOpt = (yyvsp[-1].num);
		}
#line 1961 "gram.c"
    break;

  case 40: /* ifaceval: T_AdvHomeAgentInfo SWITCH ';'  */
#line 338 "gram.y"
                {
			iface->mipv6.AdvHomeAgentInfo = (yyvsp[-1].num);
		}
#line 1969 "gram.c"
    break;

  case 41: /* ifaceval: T_AdvHomeAgentFlag SWITCH ';'  */
#line 342 "gram.y"
                {
			iface->ra_header_info.AdvHomeAgentFlag = (yyvsp[-1].num);
		}
#line 1977 "gram.c"
    break;

  case 42: /* ifaceval: T_HomeAgentPreference NUMBER ';'  */
#line 346 "gram.y"
                {
			iface->mipv6.HomeAgentPreference = (yyvsp[-1].num);
		}
#line 1985 "gram.c"
    break;

  case 43: /* ifaceval: T_HomeAgentLifetime NUMBER ';'  */
#line 350 "gram.y"
                {
			iface->mipv6.HomeAgentLifetime = (yyvsp[-1].num);
		}
#line 1993 "gram.c"
    break;

  case 44: /* ifaceval: T_UnicastOnly SWITCH ';'  */
#line 354 "gram.y"
                {
			iface->UnicastOnly = (yyvsp[-1].num);
		}
#line 2001 "gram.c"
    break;

  case 45: /* ifaceval: T_UnrestrictedUnicast SWITCH ';'  */
#line 358 "gram.y"
                {
			iface->UnrestrictedUnicast = (yyvsp[-1].num);
		}
#line 2009 "gram.c"
    break;

  case 46: /* ifaceval: T_AdvRASolicitedUnicast SWITCH ';'  */
#line 362 "gram.y"
                {
			iface->AdvRASolicitedUnicast = (yyvsp[-1].num);
		}
#line 2017 "gram.c"
    break;

  case 47: /* ifaceval: T_AdvCaptivePortalAPI STRING ';'  */
#line 366 "gram.y"
                {
			const char *source = (yyvsp[-1].str);
			size_t len = strlen(source);

			if (iface->AdvCaptivePortalAPI) {
				flog(LOG_WARNING, "warning: AdvCaptivePortalAPI specified twice for interface "
					"%s in %s, line %d", iface->props.name, filename, num_lines);

				free(iface->AdvCaptivePortalAPI);
				iface->AdvCaptivePortalAPI = NULL;
			}

			/* trim double-quotes from start and end of string */
			if ((len > 0) && (source[0] == '"')) {
				source++;
				len--;
			}
			if ((len > 0) && (source[len-1] == '"')) {
				len--;
			}

			if (len <= 0) {
				flog(LOG_ERR, "AdvCaptivePortalAPI empty URL specified for interface %s.", iface->props.name);
				ABORT;
			}

			iface->AdvCaptivePortalAPI = strndup(source, len);

			if (!iface->AdvCaptivePortalAPI) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}
		}
#line 2055 "gram.c"
    break;

  case 48: /* ifaceval: T_AdvMobRtrSupportFlag SWITCH ';'  */
#line 400 "gram.y"
                {
			iface->mipv6.AdvMobRtrSupportFlag = (yyvsp[-1].num);
		}
#line 2063 "gram.c"
    break;

  case 49: /* clientslist: T_CLIENTS '{' v6addrlist_clients '}' ';'  */
#line 406 "gram.y"
                {
			(yyval.ainfo) = (yyvsp[-2].ainfo);
		}
#line 2071 "gram.c"
    break;

  case 50: /* v6addrlist_clients: IPV6ADDR ';'  */
#line 412 "gram.y"
                {
			struct Clients *new = calloc(1, sizeof(struct Clients));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			new->ignored = 0;
			(yyval.ainfo) = new;
		}
#line 2087 "gram.c"
    break;

  case 51: /* v6addrlist_clients: NOT_IPV6ADDR ';'  */
#line 424 "gram.y"
                {
			struct Clients *new = calloc(1, sizeof(struct Clients));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			new->ignored = 1;
			(yyval.ainfo) = new;
		}
#line 2103 "gram.c"
    break;

  case 52: /* v6addrlist_clients: v6addrlist_clients IPV6ADDR ';'  */
#line 436 "gram.y"
                {
			struct Clients *new = calloc(1, sizeof(struct Clients));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			new->ignored = 0;
			new->next = (yyvsp[-2].ainfo);
			(yyval.ainfo) = new;
		}
#line 2120 "gram.c"
    break;

  case 53: /* v6addrlist_clients: v6addrlist_clients NOT_IPV6ADDR ';'  */
#line 449 "gram.y"
                {
			struct Clients *new = calloc(1, sizeof(struct Clients));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			new->ignored = 1;
			new->next = (yyvsp[-2].ainfo);
			(yyval.ainfo) = new;
		}
#line 2137 "gram.c"
    break;

  case 54: /* rasrcaddresslist: T_RASRCADDRESS '{' v6addrlist_rasrcaddress '}' ';'  */
#line 464 "gram.y"
                {
			(yyval.rasrcaddressinfo) = (yyvsp[-2].rasrcaddressinfo);
		}
#line 2145 "gram.c"
    break;

  case 55: /* v6addrlist_rasrcaddress: IPV6ADDR ';'  */
#line 470 "gram.y"
                {
			struct AdvRASrcAddress *new = calloc(1, sizeof(struct AdvRASrcAddress));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			(yyval.rasrcaddressinfo) = new;
		}
#line 2160 "gram.c"
    break;

  case 56: /* v6addrlist_rasrcaddress: v6addrlist_rasrcaddress IPV6ADDR ';'  */
#line 481 "gram.y"
                {
			struct AdvRASrcAddress *new = calloc(1, sizeof(struct AdvRASrcAddress));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->address), (yyvsp[-1].addr), sizeof(struct in6_addr));
			new->next = (yyvsp[-2].rasrcaddressinfo);
			(yyval.rasrcaddressinfo) = new;
		}
#line 2176 "gram.c"
    break;

  case 57: /* nat64prefixdef: nat64prefixhead optional_nat64prefixplist ';'  */
#line 495 "gram.y"
                {
			if (nat64prefix) {

				if (nat64prefix->AdvValidLifetime > DFLT_NAT64MaxValidLifetime)
				{
					flog(LOG_ERR, "AdvValidLifetime must be "
						"smaller or equal to %d in %s, line %d",
						DFLT_NAT64MaxValidLifetime, filename, num_lines);
					ABORT;
				}
				nat64prefix->curr_validlft = nat64prefix->AdvValidLifetime;
			}
			(yyval.nat64pinfo) = nat64prefix;
			nat64prefix = NULL;
		}
#line 2196 "gram.c"
    break;

  case 58: /* nat64prefixhead: T_NAT64PREFIX IPV6ADDR '/' NUMBER  */
#line 513 "gram.y"
                {
			struct in6_addr zeroaddr;
			memset(&zeroaddr, 0, sizeof(zeroaddr));

			if (!memcmp((yyvsp[-2].addr), &zeroaddr, sizeof(struct in6_addr))) {
				flog(LOG_ERR, "invalid all-zeros nat64prefix in %s, line %d", filename, num_lines);
				ABORT;
			}

			nat64prefix = malloc(sizeof(struct NAT64Prefix));

			if (nat64prefix == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			nat64prefix_init_defaults(nat64prefix, iface);

			if ((yyvsp[0].num) > MAX_PrefixLen)
			{
				flog(LOG_ERR, "invalid prefix length in %s, line %d", filename, num_lines);
				ABORT;
			}

			/* RFC8781, section 4: only prefix lengths of 96, 64, 56, 48, 40, and 32 bits are valid */
			switch ((yyvsp[0].num)) {
			case 32:
			case 40:
			case 48:
			case 56:
			case 64:
			case 96:
				break;
			default:
				flog(LOG_ERR, "only /96, /64, /56, /48, /40 and /32 are allowed for "
						"nat64prefix in %s:%d", filename, num_lines);
				ABORT;
			}
			nat64prefix->PrefixLen = (yyvsp[0].num);

			memcpy(&nat64prefix->Prefix, (yyvsp[-2].addr), sizeof(struct in6_addr));
		}
#line 2243 "gram.c"
    break;

  case 64: /* nat64prefixparms: T_AdvValidLifetime NUMBER ';'  */
#line 567 "gram.y"
                {
			if ((yyvsp[-1].num) > DFLT_NAT64MaxValidLifetime)
			{
				flog(LOG_ERR, "maximum for NAT64 AdvValidLifetime is %d (in %s, line %d)",
					DFLT_NAT64MaxValidLifetime, filename, num_lines);
				ABORT;
			}
			if (nat64prefix) {
				nat64prefix->AdvValidLifetime = (yyvsp[-1].num);
			}
		}
#line 2259 "gram.c"
    break;

  case 65: /* ignoreprefixlist: T_AUTOIGNOREPREFIX '{' ignoreprefixes '}' ';'  */
#line 581 "gram.y"
                {
			(yyval.igpinfo) = (yyvsp[-2].igpinfo);
		}
#line 2267 "gram.c"
    break;

  case 66: /* ignoreprefixes: IPV6ADDR '/' NUMBER ';'  */
#line 587 "gram.y"
                {
			struct AutogenIgnorePrefix *new = calloc(1, sizeof(struct AutogenIgnorePrefix));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Prefix), (yyvsp[-3].addr), sizeof(struct in6_addr));

			// Create subnet mask from CIDR notation
			int fullOctets = (yyvsp[-1].num) / 8;
			for (int i = 0; i < fullOctets; ++i) {
				new->Mask.s6_addr[i] = 0xff;
			}

			if (fullOctets != 16) {
				new->Mask.s6_addr[fullOctets] = ~(1 << (8 - (yyvsp[-1].num) % 8)) + 1;
			}

			(yyval.igpinfo) = new;
		}
#line 2293 "gram.c"
    break;

  case 67: /* ignoreprefixes: ignoreprefixes IPV6ADDR '/' NUMBER ';'  */
#line 609 "gram.y"
                {
			struct AutogenIgnorePrefix *new = calloc(1, sizeof(struct AutogenIgnorePrefix));
			if (new == NULL) {
				flog(LOG_CRIT, "calloc failed: %s", strerror(errno));
				ABORT;
			}

			memcpy(&(new->Prefix), (yyvsp[-3].addr), sizeof(struct in6_addr));

			// Create subnet mask from CIDR notation
			int fullOctets = (yyvsp[-1].num) / 8;
			for (int i = 0; i < fullOctets; ++i) {
				new->Mask.s6_addr[i] = 0xff;
			}

			if (fullOctets != 16) {
				new->Mask.s6_addr[fullOctets] = ~(1 << (8 - (yyvsp[-1].num) % 8)) + 1;
			}

			new->next = (yyvsp[-4].igpinfo);
			(yyval.igpinfo) = new;
		}
#line 2320 "gram.c"
    break;

  case 68: /* prefixdef: prefixhead optional_prefixplist ';'  */
#line 634 "gram.y"
                {
			if (prefix) {

				if (prefix->AdvPreferredLifetime > prefix->AdvValidLifetime)
				{
					flog(LOG_ERR, "AdvValidLifetime must be "
						"greater than or equal to AdvPreferredLifetime in %s, line %d",
						filename, num_lines);
					ABORT;
				}

				if ( prefix->if6[0] )
				{
					if (prefix->PrefixLen != 64) {
						flog(LOG_ERR, "only /64 is allowed with Base6Interface.  %s:%d", filename, num_lines);
						ABORT;
					}
				}
			}
			(yyval.pinfo) = prefix;
			prefix = NULL;
		}
#line 2347 "gram.c"
    break;

  case 69: /* prefixhead: T_PREFIX IPV6ADDR '/' NUMBER  */
#line 659 "gram.y"
                {
			struct in6_addr zeroaddr;
			memset(&zeroaddr, 0, sizeof(zeroaddr));

#ifndef HAVE_IFADDRS_H	// all-zeros prefix is a way to tell us to get the prefix from the interface config
			if (!memcmp((yyvsp[-2].addr), &zeroaddr, sizeof(struct in6_addr))) {
				flog(LOG_WARNING, "invalid all-zeros prefix in %s, line %d", filename, num_lines);
			}
#endif
			prefix = malloc(sizeof(struct AdvPrefix));

			if (prefix == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			prefix_init_defaults(prefix);

			if ((yyvsp[0].num) > MAX_PrefixLen)
			{
				flog(LOG_ERR, "invalid prefix length in %s, line %d", filename, num_lines);
				ABORT;
			}

			prefix->PrefixLen = (yyvsp[0].num);

			memcpy(&prefix->Prefix, (yyvsp[-2].addr), sizeof(struct in6_addr));
		}
#line 2380 "gram.c"
    break;

  case 75: /* prefixparms: T_AdvOnLink SWITCH ';'  */
#line 699 "gram.y"
                {
			if (prefix) {
				prefix->AdvOnLinkFlag = (yyvsp[-1].num);
			}
		}
#line 2390 "gram.c"
    break;

  case 76: /* prefixparms: T_AdvAutonomous SWITCH ';'  */
#line 705 "gram.y"
                {
			if (prefix) {
				prefix->AdvAutonomousFlag = (yyvsp[-1].num);
			}
		}
#line 2400 "gram.c"
    break;

  case 77: /* prefixparms: T_AdvRouterAddr SWITCH ';'  */
#line 711 "gram.y"
                {
			if (prefix) {
				prefix->AdvRouterAddr = (yyvsp[-1].num);
			}
		}
#line 2410 "gram.c"
    break;

  case 78: /* prefixparms: T_AdvDHCPv6PDPreferred SWITCH ';'  */
#line 717 "gram.y"
                {
			if (prefix) {
				prefix->AdvDHCPv6PDPreferredFlag = (yyvsp[-1].num);
			}
		}
#line 2420 "gram.c"
    break;

  case 79: /* prefixparms: T_AdvValidLifetime number_or_infinity ';'  */
#line 723 "gram.y"
                {
			if (prefix) {
				prefix->AdvValidLifetime = (yyvsp[-1].num);
				prefix->curr_validlft = (yyvsp[-1].num);
			}
		}
#line 2431 "gram.c"
    break;

  case 80: /* prefixparms: T_AdvPreferredLifetime number_or_infinity ';'  */
#line 730 "gram.y"
                {
			if (prefix) {
				prefix->AdvPreferredLifetime = (yyvsp[-1].num);
				prefix->curr_preferredlft = (yyvsp[-1].num);
			}
		}
#line 2442 "gram.c"
    break;

  case 81: /* prefixparms: T_DeprecatePrefix SWITCH ';'  */
#line 737 "gram.y"
                {
			if (prefix) {
				prefix->DeprecatePrefixFlag = (yyvsp[-1].num);
			}
		}
#line 2452 "gram.c"
    break;

  case 82: /* prefixparms: T_DecrementLifetimes SWITCH ';'  */
#line 743 "gram.y"
                {
			if (prefix) {
				prefix->DecrementLifetimesFlag = (yyvsp[-1].num);
			}
		}
#line 2462 "gram.c"
    break;

  case 83: /* prefixparms: T_Base6Interface name ';'  */
#line 749 "gram.y"
                {
#ifndef HAVE_IFADDRS_H
			flog(LOG_ERR, "Base6Interface not supported in %s, line %d", filename, num_lines);
			ABORT;
#else
			if (prefix) {
				dlog(LOG_DEBUG, 4, "using prefixes on interface %s for prefixes on interface %s", (yyvsp[-1].str), iface->props.name);
				memset(&prefix->if6, 0, sizeof(prefix->if6));
				strlcpy(prefix->if6, (yyvsp[-1].str), sizeof(prefix->if6));
			}
#endif
		}
#line 2479 "gram.c"
    break;

  case 84: /* prefixparms: T_Base6to4Interface name ';'  */
#line 763 "gram.y"
                {
#ifndef HAVE_IFADDRS_H
			flog(LOG_ERR, "Base6to4Interface not supported in %s, line %d", filename, num_lines);
			ABORT;
#else
			if (prefix) {
				dlog(LOG_DEBUG, 4, "using interface %s for 6to4 prefixes on interface %s", (yyvsp[-1].str), iface->props.name);
				memset(&prefix->if6to4, 0, sizeof(prefix->if6to4));
				strlcpy(prefix->if6to4, (yyvsp[-1].str), sizeof(prefix->if6to4));
			}
#endif
		}
#line 2496 "gram.c"
    break;

  case 85: /* routedef: routehead '{' optional_routeplist '}' ';'  */
#line 778 "gram.y"
                {
			(yyval.rinfo) = route;
			route = NULL;
		}
#line 2505 "gram.c"
    break;

  case 86: /* routehead: T_ROUTE IPV6ADDR '/' NUMBER  */
#line 786 "gram.y"
                {
			route = malloc(sizeof(struct AdvRoute));

			if (route == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			route_init_defaults(route, iface);

			if ((yyvsp[0].num) > MAX_PrefixLen)
			{
				flog(LOG_ERR, "invalid route prefix length in %s, line %d", filename, num_lines);
				ABORT;
			}

			route->PrefixLen = (yyvsp[0].num);

			memcpy(&route->Prefix, (yyvsp[-2].addr), sizeof(struct in6_addr));
		}
#line 2530 "gram.c"
    break;

  case 91: /* routeparms: T_AdvRoutePreference SIGNEDNUMBER ';'  */
#line 819 "gram.y"
                {
			route->AdvRoutePreference = (yyvsp[-1].snum);
		}
#line 2538 "gram.c"
    break;

  case 92: /* routeparms: T_AdvRouteLifetime number_or_infinity ';'  */
#line 823 "gram.y"
                {
			route->AdvRouteLifetime = (yyvsp[-1].num);
		}
#line 2546 "gram.c"
    break;

  case 93: /* routeparms: T_RemoveRoute SWITCH ';'  */
#line 827 "gram.y"
                {
			route->RemoveRouteFlag = (yyvsp[-1].num);
		}
#line 2554 "gram.c"
    break;

  case 94: /* rdnssdef: rdnsshead '{' optional_rdnssplist '}' ';'  */
#line 833 "gram.y"
                {
			(yyval.rdnssinfo) = rdnss;
			rdnss = NULL;
		}
#line 2563 "gram.c"
    break;

  case 97: /* rdnssaddr: IPV6ADDR  */
#line 844 "gram.y"
                {
			if (!rdnss) {
				/* first IP found */
				rdnss = malloc(sizeof(struct AdvRDNSS));

				if (rdnss == NULL) {
					flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
					ABORT;
				}

				rdnss_init_defaults(rdnss, iface);
			}

			rdnss->AdvRDNSSNumber++;
			if (rdnss->AdvRDNSSNumber > 127) {
				flog(LOG_CRIT, "Too many RDNSS servers specified - upper limit is 127 based on RDNSSI length field being uint8, RFC8106, section 5.1");
				ABORT;
			}
			rdnss->AdvRDNSSAddr =
				realloc(rdnss->AdvRDNSSAddr,
					rdnss->AdvRDNSSNumber * sizeof(struct in6_addr));
			if (rdnss->AdvRDNSSAddr == NULL) {
				flog(LOG_CRIT, "realloc failed: %s", strerror(errno));
				ABORT;
			}
			memcpy(&rdnss->AdvRDNSSAddr[rdnss->AdvRDNSSNumber - 1], (yyvsp[0].addr), sizeof(struct in6_addr));
		}
#line 2595 "gram.c"
    break;

  case 98: /* rdnsshead: T_RDNSS rdnssaddrs  */
#line 874 "gram.y"
                {
			if (!rdnss) {
				flog(LOG_CRIT, "no address specified in RDNSS section");
				ABORT;
			}
		}
#line 2606 "gram.c"
    break;

  case 103: /* rdnssparms: T_AdvRDNSSPreference NUMBER ';'  */
#line 892 "gram.y"
                {
			flog(LOG_WARNING, "ignoring deprecated RDNSS preference");
		}
#line 2614 "gram.c"
    break;

  case 104: /* rdnssparms: T_AdvRDNSSOpenFlag SWITCH ';'  */
#line 896 "gram.y"
                {
			flog(LOG_WARNING, "ignoring deprecated RDNSS open flag");
		}
#line 2622 "gram.c"
    break;

  case 105: /* rdnssparms: T_AdvRDNSSLifetime number_or_infinity ';'  */
#line 900 "gram.y"
                {
			rdnss->AdvRDNSSLifetime = (yyvsp[-1].num);
		}
#line 2630 "gram.c"
    break;

  case 106: /* rdnssparms: T_FlushRDNSS SWITCH ';'  */
#line 904 "gram.y"
                {
			rdnss->FlushRDNSSFlag = (yyvsp[-1].num);
		}
#line 2638 "gram.c"
    break;

  case 107: /* dnssldef: dnsslhead '{' optional_dnsslplist '}' ';'  */
#line 910 "gram.y"
                {
			(yyval.dnsslinfo) = dnssl;
			dnssl = NULL;
		}
#line 2647 "gram.c"
    break;

  case 110: /* dnsslsuffix: STRING  */
#line 921 "gram.y"
                {
			char *ch;
			for (ch = (yyvsp[0].str);*ch != '\0';ch++) {
				if (*ch >= 'A' && *ch <= 'Z')
					continue;
				if (*ch >= 'a' && *ch <= 'z')
					continue;
				if (*ch >= '0' && *ch <= '9')
					continue;
				if (*ch == '-' || *ch == '.')
					continue;

				flog(LOG_CRIT, "invalid domain suffix specified");
				ABORT;
			}

			if (!dnssl) {
				/* first domain found */
				dnssl = malloc(sizeof(struct AdvDNSSL));

				if (dnssl == NULL) {
					flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
					ABORT;
				}

				dnssl_init_defaults(dnssl, iface);
			}

			dnssl->AdvDNSSLNumber++;
			dnssl->AdvDNSSLSuffixes =
				realloc(dnssl->AdvDNSSLSuffixes,
					dnssl->AdvDNSSLNumber * sizeof(char*));
			if (dnssl->AdvDNSSLSuffixes == NULL) {
				flog(LOG_CRIT, "realloc failed: %s", strerror(errno));
				ABORT;
			}

			dnssl->AdvDNSSLSuffixes[dnssl->AdvDNSSLNumber - 1] = strdup((yyvsp[0].str));
		}
#line 2691 "gram.c"
    break;

  case 111: /* dnsslhead: T_DNSSL dnsslsuffixes  */
#line 963 "gram.y"
                {
			if (!dnssl) {
				flog(LOG_CRIT, "no domain specified in DNSSL section");
				ABORT;
			}
		}
#line 2702 "gram.c"
    break;

  case 116: /* dnsslparms: T_AdvDNSSLLifetime number_or_infinity ';'  */
#line 981 "gram.y"
                {
			dnssl->AdvDNSSLLifetime = (yyvsp[-1].num);

		}
#line 2711 "gram.c"
    break;

  case 117: /* dnsslparms: T_FlushDNSSL SWITCH ';'  */
#line 986 "gram.y"
                {
			dnssl->FlushDNSSLFlag = (yyvsp[-1].num);
		}
#line 2719 "gram.c"
    break;

  case 118: /* lowpancodef: lowpancohead '{' optional_lowpancoplist '}' ';'  */
#line 992 "gram.y"
                {
			(yyval.lowpancoinfo) = lowpanco;
			lowpanco = NULL;
		}
#line 2728 "gram.c"
    break;

  case 119: /* lowpancohead: T_LOWPANCO  */
#line 999 "gram.y"
                {
			lowpanco = malloc(sizeof(struct AdvLowpanCo));

			if (lowpanco == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			memset(lowpanco, 0, sizeof(struct AdvLowpanCo));
		}
#line 2743 "gram.c"
    break;

  case 124: /* lowpancoparms: T_AdvContextLength NUMBER ';'  */
#line 1020 "gram.y"
                {
			lowpanco->ContextLength = (yyvsp[-1].num);
		}
#line 2751 "gram.c"
    break;

  case 125: /* lowpancoparms: T_AdvContextCompressionFlag SWITCH ';'  */
#line 1024 "gram.y"
                {
			lowpanco->ContextCompressionFlag = (yyvsp[-1].num);
		}
#line 2759 "gram.c"
    break;

  case 126: /* lowpancoparms: T_AdvContextID NUMBER ';'  */
#line 1028 "gram.y"
                {
			lowpanco->AdvContextID = (yyvsp[-1].num);
		}
#line 2767 "gram.c"
    break;

  case 127: /* lowpancoparms: T_AdvLifeTime NUMBER ';'  */
#line 1032 "gram.y"
                {
			lowpanco->AdvLifeTime = (yyvsp[-1].num);
		}
#line 2775 "gram.c"
    break;

  case 128: /* abrodef: abrohead '{' optional_abroplist '}' ';'  */
#line 1038 "gram.y"
                {
			(yyval.abroinfo) = abro;
			abro = NULL;
		}
#line 2784 "gram.c"
    break;

  case 131: /* abrohead_new: T_ABRO IPV6ADDR  */
#line 1047 "gram.y"
                {
			abro = malloc(sizeof(struct AdvAbro));

			if (abro == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			memset(abro, 0, sizeof(struct AdvAbro));
			memcpy(&abro->LBRaddress, (yyvsp[0].addr), sizeof(struct in6_addr));
		}
#line 2800 "gram.c"
    break;

  case 132: /* abrohead_dep: T_ABRO IPV6ADDR '/' NUMBER  */
#line 1061 "gram.y"
                {
			flog(LOG_WARNING
				, "%s:%d abro prefix length deprecated, remove trailing '/%d'"
				, filename
				, num_lines
				, (yyvsp[0].num)
			);
			abro = malloc(sizeof(struct AdvAbro));

			if (abro == NULL) {
				flog(LOG_CRIT, "malloc failed: %s", strerror(errno));
				ABORT;
			}

			memset(abro, 0, sizeof(struct AdvAbro));
			memcpy(&abro->LBRaddress, (yyvsp[-2].addr), sizeof(struct in6_addr));
		}
#line 2822 "gram.c"
    break;

  case 137: /* abroparms: T_AdvVersionLow NUMBER ';'  */
#line 1089 "gram.y"
                {
			abro->Version[1] = (yyvsp[-1].num);
		}
#line 2830 "gram.c"
    break;

  case 138: /* abroparms: T_AdvVersionHigh NUMBER ';'  */
#line 1093 "gram.y"
                {
			abro->Version[0] = (yyvsp[-1].num);
		}
#line 2838 "gram.c"
    break;

  case 139: /* abroparms: T_AdvValidLifetime NUMBER ';'  */
#line 1097 "gram.y"
                {
			abro->ValidLifeTime = (yyvsp[-1].num);
		}
#line 2846 "gram.c"
    break;

  case 140: /* number_or_infinity: NUMBER  */
#line 1103 "gram.y"
                        {
				(yyval.num) = (yyvsp[0].num);
			}
#line 2854 "gram.c"
    break;

  case 141: /* number_or_infinity: INFINITY  */
#line 1107 "gram.y"
                        {
				(yyval.num) = (uint32_t)~0;
			}
#line 2862 "gram.c"
    break;


#line 2866 "gram.c"

      default: break;
    }
  /* User semantic actions sometimes alter yychar, and that requires
     that yytoken be updated with the new translation.  We take the
     approach of translating immediately before every use of yytoken.
     One alternative is translating here after every semantic action,
     but that translation would be missed if the semantic action invokes
     YYABORT, YYACCEPT, or YYERROR immediately after altering yychar or
     if it invokes YYBACKUP.  In the case of YYABORT or YYACCEPT, an
     incorrect destructor might then be invoked immediately.  In the
     case of YYERROR or YYBACKUP, subsequent parser actions might lead
     to an incorrect destructor call or verbose syntax error message
     before the lookahead is translated.  */
  YY_SYMBOL_PRINT ("-> $$ =", YY_CAST (yysymbol_kind_t, yyr1[yyn]), &yyval, &yyloc);

  YYPOPSTACK (yylen);
  yylen = 0;

  *++yyvsp = yyval;

  /* Now 'shift' the result of the reduction.  Determine what state
     that goes to, based on the state we popped back to and the rule
     number reduced by.  */
  {
    const int yylhs = yyr1[yyn] - YYNTOKENS;
    const int yyi = yypgoto[yylhs] + *yyssp;
    yystate = (0 <= yyi && yyi <= YYLAST && yycheck[yyi] == *yyssp
               ? yytable[yyi]
               : yydefgoto[yylhs]);
  }

  goto yynewstate;


/*--------------------------------------.
| yyerrlab -- here on detecting error.  |
`--------------------------------------*/
yyerrlab:
  /* Make sure we have latest lookahead translation.  See comments at
     user semantic actions for why this is necessary.  */
  yytoken = yychar == YYEMPTY ? YYSYMBOL_YYEMPTY : YYTRANSLATE (yychar);
  /* If not already recovering from an error, report this error.  */
  if (!yyerrstatus)
    {
      ++yynerrs;
      yyerror (YY_("syntax error"));
    }

  if (yyerrstatus == 3)
    {
      /* If just tried and failed to reuse lookahead token after an
         error, discard it.  */

      if (yychar <= YYEOF)
        {
          /* Return failure if at end of input.  */
          if (yychar == YYEOF)
            YYABORT;
        }
      else
        {
          yydestruct ("Error: discarding",
                      yytoken, &yylval);
          yychar = YYEMPTY;
        }
    }

  /* Else will try to reuse lookahead token after shifting the error
     token.  */
  goto yyerrlab1;


/*---------------------------------------------------.
| yyerrorlab -- error raised explicitly by YYERROR.  |
`---------------------------------------------------*/
yyerrorlab:
  /* Pacify compilers when the user code never invokes YYERROR and the
     label yyerrorlab therefore never appears in user code.  */
  if (0)
    YYERROR;
  ++yynerrs;

  /* Do not reclaim the symbols of the rule whose action triggered
     this YYERROR.  */
  YYPOPSTACK (yylen);
  yylen = 0;
  YY_STACK_PRINT (yyss, yyssp);
  yystate = *yyssp;
  goto yyerrlab1;


/*-------------------------------------------------------------.
| yyerrlab1 -- common code for both syntax error and YYERROR.  |
`-------------------------------------------------------------*/
yyerrlab1:
  yyerrstatus = 3;      /* Each real token shifted decrements this.  */

  /* Pop stack until we find a state that shifts the error token.  */
  for (;;)
    {
      yyn = yypact[yystate];
      if (!yypact_value_is_default (yyn))
        {
          yyn += YYSYMBOL_YYerror;
          if (0 <= yyn && yyn <= YYLAST && yycheck[yyn] == YYSYMBOL_YYerror)
            {
              yyn = yytable[yyn];
              if (0 < yyn)
                break;
            }
        }

      /* Pop the current state because it cannot handle the error token.  */
      if (yyssp == yyss)
        YYABORT;


      yydestruct ("Error: popping",
                  YY_ACCESSING_SYMBOL (yystate), yyvsp);
      YYPOPSTACK (1);
      yystate = *yyssp;
      YY_STACK_PRINT (yyss, yyssp);
    }

  YY_IGNORE_MAYBE_UNINITIALIZED_BEGIN
  *++yyvsp = yylval;
  YY_IGNORE_MAYBE_UNINITIALIZED_END


  /* Shift the error token.  */
  YY_SYMBOL_PRINT ("Shifting", YY_ACCESSING_SYMBOL (yyn), yyvsp, yylsp);

  yystate = yyn;
  goto yynewstate;


/*-------------------------------------.
| yyacceptlab -- YYACCEPT comes here.  |
`-------------------------------------*/
yyacceptlab:
  yyresult = 0;
  goto yyreturnlab;


/*-----------------------------------.
| yyabortlab -- YYABORT comes here.  |
`-----------------------------------*/
yyabortlab:
  yyresult = 1;
  goto yyreturnlab;


/*-----------------------------------------------------------.
| yyexhaustedlab -- YYNOMEM (memory exhaustion) comes here.  |
`-----------------------------------------------------------*/
yyexhaustedlab:
  yyerror (YY_("memory exhausted"));
  yyresult = 2;
  goto yyreturnlab;


/*----------------------------------------------------------.
| yyreturnlab -- parsing is finished, clean up and return.  |
`----------------------------------------------------------*/
yyreturnlab:
  if (yychar != YYEMPTY)
    {
      /* Make sure we have latest lookahead translation.  See comments at
         user semantic actions for why this is necessary.  */
      yytoken = YYTRANSLATE (yychar);
      yydestruct ("Cleanup: discarding lookahead",
                  yytoken, &yylval);
    }
  /* Do not reclaim the symbols of the rule whose action triggered
     this YYABORT or YYACCEPT.  */
  YYPOPSTACK (yylen);
  YY_STACK_PRINT (yyss, yyssp);
  while (yyssp != yyss)
    {
      yydestruct ("Cleanup: popping",
                  YY_ACCESSING_SYMBOL (+*yyssp), yyvsp);
      YYPOPSTACK (1);
    }
#ifndef yyoverflow
  if (yyss != yyssa)
    YYSTACK_FREE (yyss);
#endif

  return yyresult;
}

#line 1112 "gram.y"


static void cleanup(void)
{
	if (iface) {
		free_ifaces(iface);
		iface = 0;
	}

	if (prefix) {
		free(prefix);
		prefix = 0;
	}

	if (route) {
		free(route);
		route = 0;
	}

	if (rdnss) {
		free(rdnss->AdvRDNSSAddr);
		free(rdnss);
		rdnss = 0;
	}

	if (dnssl) {
		int i;
		for (i = 0;i < dnssl->AdvDNSSLNumber;i++)
			free(dnssl->AdvDNSSLSuffixes[i]);
		free(dnssl->AdvDNSSLSuffixes);
		free(dnssl);
		dnssl = 0;
	}

	if (lowpanco) {
		free(lowpanco);
		lowpanco = 0;
	}

	if (abro) {
		free(abro);
		abro = 0;
	}
}

struct Interface * readin_config(char const *path)
{
	IfaceList = 0;
	FILE * in = fopen(path, "r");
	if (in) {
		filename = path;
		num_lines = 1;
		iface = 0;

		yyset_in(in);
		if (yyparse() != 0) {
			free_ifaces(iface);
			iface = 0;
			IfaceList = 0;
		} else {
			dlog(LOG_DEBUG, 1, "config file, %s, syntax ok", path);
		}
		yylex_destroy();
		fclose(in);
	}

	return IfaceList;
}

static void yyerror(char const * msg)
{
	fprintf(stderr, "%s:%d error: %s\n",
		filename,
		num_lines,
		msg);
}

