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