ISC DHCP  4.3.6
A reference DHCPv4 and DHCPv6 implementation
statement.h
Go to the documentation of this file.
1 /* statement.h
2 
3  Definitions for executable statements... */
4 
5 /*
6  * Copyright (c) 2014-2015 by Internet Systems Consortium, Inc. ("ISC")
7  * Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
8  * Copyright (c) 1996-2003 by Internet Software Consortium
9  *
10  * Permission to use, copy, modify, and distribute this software for any
11  * purpose with or without fee is hereby granted, provided that the above
12  * copyright notice and this permission notice appear in all copies.
13  *
14  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
15  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
16  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
17  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
18  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
19  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
20  * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
21  *
22  * Internet Systems Consortium, Inc.
23  * 950 Charter Street
24  * Redwood City, CA 94063
25  * <info@isc.org>
26  * https://www.isc.org/
27  *
28  */
29 
31  int refcnt;
33  enum statement_op {
57  } op;
58  union {
59  struct {
61  struct expression *expr;
62  } ie;
63  struct expression *eval;
64  struct expression *retval;
65  struct class *add;
71  struct {
72  int evtypes;
73 # define ON_COMMIT 1
74 # define ON_EXPIRY 2
75 # define ON_RELEASE 4
76 # define ON_TRANSMISSION 8
78  } on;
79  struct {
80  struct expression *expr;
82  } s_switch;
83  struct expression *c_case;
84  struct {
85  char *name;
86  struct expression *expr;
88  } set, let;
89  char *unset;
90  struct {
91  enum {
96  } priority;
97  struct expression *expr;
98  } log;
99  struct {
100  char *command;
102  int argc;
103  } execute;
104  } data;
105 };
106 
struct executable_statement::@7::@13 execute
enum executable_statement::@7::@12::@14 priority
struct class * add
Definition: statement.h:65
struct executable_statement * tc
Definition: statement.h:60
enum executable_statement::statement_op op
struct option_cache * append
Definition: statement.h:69
struct executable_statement * next
Definition: statement.h:32
struct expression * arglist
Definition: statement.h:101
struct expression * expr
Definition: statement.h:61
struct option_cache * prepend
Definition: statement.h:68
struct executable_statement::@7::@12 log
struct option_cache * option
Definition: statement.h:66
struct executable_statement::@7::@10 s_switch
struct executable_statement::@7::@11 let
struct executable_statement::@7::@9 on
union executable_statement::@7 data
struct executable_statement::@7::@8 ie
struct executable_statement * statements
Definition: statement.h:70
struct option_cache * supersede
Definition: statement.h:67
struct expression * c_case
Definition: statement.h:83
Definition: dhcpd.h:1071
struct executable_statement * fc
Definition: statement.h:60
struct expression * eval
Definition: statement.h:63
struct expression * retval
Definition: statement.h:64