ISC DHCP 4.4.3-P1
A reference DHCPv4 and DHCPv6 implementation
Loading...
Searching...
No Matches
statement.h
Go to the documentation of this file.
1/* statement.h
2
3 Definitions for executable statements... */
4
5/*
6 * Copyright (C) 2004-2022 Internet Systems Consortium, Inc. ("ISC")
7 * Copyright (c) 1996-2003 by Internet Software Consortium
8 *
9 * This Source Code Form is subject to the terms of the Mozilla Public
10 * License, v. 2.0. If a copy of the MPL was not distributed with this
11 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
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 * PO Box 360
23 * Newmarket, NH 03857 USA
24 * <info@isc.org>
25 * https://www.isc.org/
26 *
27 */
28
30 int refcnt;
57 union {
58 struct {
59 struct executable_statement *tc, *fc;
60 struct expression *expr;
61 } ie;
62 struct expression *eval;
63 struct expression *retval;
64 struct class *add;
65 struct option_cache *option;
66 struct option_cache *supersede;
67 struct option_cache *prepend;
68 struct option_cache *append;
70 struct {
71 int evtypes;
72# define ON_COMMIT 1
73# define ON_EXPIRY 2
74# define ON_RELEASE 4
75# define ON_TRANSMISSION 8
76 struct executable_statement *statements;
77 } on;
78 struct {
79 struct expression *expr;
81 } s_switch;
82 struct expression *c_case;
83 struct {
84 char *name;
85 struct expression *expr;
87 } set, let;
88 char *unset;
89 struct {
90 enum {
95 } priority;
96 struct expression *expr;
97 } log;
98 struct {
99 char *command;
100 struct expression *arglist;
101 int argc;
102 } execute;
104};
enum executable_statement::@336221350347175166011011356261373334214214051201::@054036024254157344331216371041053101210136045205::@170066364270231075105257255130235107325336004011 priority
enum executable_statement::statement_op op
union executable_statement::@336221350347175166011011356261373334214214051201 data
struct executable_statement * next
Definition statement.h:31
struct executable_statement::@336221350347175166011011356261373334214214051201::@054036024254157344331216371041053101210136045205 log
struct option_cache * prepend
struct option_cache * append
struct executable_statement::@336221350347175166011011356261373334214214051201::@200067301215145050134342173232277303121035136232 ie
struct executable_statement * statements
struct executable_statement::@336221350347175166011011356261373334214214051201::@325210277324101252237043341265364212037303267157 s_switch
struct option_cache * supersede
struct executable_statement::@336221350347175166011011356261373334214214051201::@114173066021273303314366177116061034061242304335 execute
struct executable_statement::@336221350347175166011011356261373334214214051201::@206325035353013171354256106236162033341037345150 set
struct option_cache * option
struct executable_statement::@336221350347175166011011356261373334214214051201::@206325035353013171354256106236162033341037345150 let