/* $OpenBSD: dhctoken.h,v 1.2 2004/02/04 12:16:56 henning Exp $ */12/* Tokens for config file lexer and parser. */34/*-5* SPDX-License-Identifier: BSD-3-Clause6*7* Copyright (c) 1995, 1996, 1997, 1998, 19998* The Internet Software Consortium. All rights reserved.9*10* Redistribution and use in source and binary forms, with or without11* modification, are permitted provided that the following conditions12* are met:13*14* 1. Redistributions of source code must retain the above copyright15* notice, this list of conditions and the following disclaimer.16* 2. Redistributions in binary form must reproduce the above copyright17* notice, this list of conditions and the following disclaimer in the18* documentation and/or other materials provided with the distribution.19* 3. Neither the name of The Internet Software Consortium nor the names20* of its contributors may be used to endorse or promote products derived21* from this software without specific prior written permission.22*23* THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND24* CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,25* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF26* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE27* DISCLAIMED. IN NO EVENT SHALL THE INTERNET SOFTWARE CONSORTIUM OR28* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,29* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT30* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF31* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND32* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,33* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT34* OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF35* SUCH DAMAGE.36*37* This software has been written for the Internet Software Consortium38* by Ted Lemon <[email protected]> in cooperation with Vixie39* Enterprises. To learn more about the Internet Software Consortium,40* see ``http://www.vix.com/isc''. To learn more about Vixie41* Enterprises, see ``http://www.vix.com''.42*/4344#define SEMI ';'45#define DOT '.'46#define COLON ':'47#define COMMA ','48#define SLASH '/'49#define LBRACE '{'50#define RBRACE '}'5152#define FIRST_TOKEN HOST53#define HOST 25654#define HARDWARE 25755#define FILENAME 25856#define FIXED_ADDR 25957#define OPTION 26058#define ETHERNET 26159#define STRING 26260#define NUMBER 26361#define NUMBER_OR_NAME 26462#define NAME 26563#define TIMESTAMP 26664#define STARTS 26765#define ENDS 26866#define UID 26967#define CLASS 27068#define LEASE 27169#define RANGE 27270#define PACKET 27371#define CIADDR 27472#define YIADDR 27573#define SIADDR 27674#define GIADDR 27775#define SUBNET 27876#define NETMASK 27977#define DEFAULT_LEASE_TIME 28078#define MAX_LEASE_TIME 28179#define VENDOR_CLASS 28280#define USER_CLASS 28381#define SHARED_NETWORK 28482#define SERVER_NAME 28583#define DYNAMIC_BOOTP 28684#define SERVER_IDENTIFIER 28785#define DYNAMIC_BOOTP_LEASE_CUTOFF 28886#define DYNAMIC_BOOTP_LEASE_LENGTH 28987#define BOOT_UNKNOWN_CLIENTS 29088#define NEXT_SERVER 29189#define TOKEN_RING 29290#define GROUP 29391#define ONE_LEASE_PER_CLIENT 29492#define GET_LEASE_HOSTNAMES 29593#define USE_HOST_DECL_NAMES 29694#define SEND 29795#define CLIENT_IDENTIFIER 29896#define REQUEST 29997#define REQUIRE 30098#define TIMEOUT 30199#define RETRY 302100#define SELECT_TIMEOUT 303101#define SCRIPT 304102#define INTERFACE 305103#define RENEW 306104#define REBIND 307105#define EXPIRE 308106#define UNKNOWN_CLIENTS 309107#define ALLOW 310108#define BOOTP 311109#define DENY 312110#define BOOTING 313111#define DEFAULT 314112#define MEDIA 315113#define MEDIUM 316114#define ALIAS 317115#define REBOOT 318116#define ABANDONED 319117#define BACKOFF_CUTOFF 320118#define INITIAL_INTERVAL 321119#define NAMESERVER 322120#define DOMAIN 323121#define SEARCH 324122#define SUPERSEDE 325123#define APPEND 326124#define PREPEND 327125#define HOSTNAME 328126#define CLIENT_HOSTNAME 329127#define REJECT 330128#define FDDI 331129#define USE_LEASE_ADDR_FOR_DEFAULT_ROUTE 332130#define AUTHORITATIVE 333131#define TOKEN_NOT 334132#define ALWAYS_REPLY_RFC1048 335133#define VLAN_PCP 336134#define IGNORE 337135136#define is_identifier(x) ((x) >= FIRST_TOKEN && \137(x) != STRING && \138(x) != NUMBER && \139(x) != EOF)140141142