Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dhcp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
69
Issues
69
List
Boards
Labels
Service Desk
Milestones
Merge Requests
18
Merge Requests
18
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
dhcp
Commits
f2a6151f
Commit
f2a6151f
authored
Jan 25, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Support binding scopes, filename and sname.
parent
24fe31eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
9 deletions
+18
-9
includes/tree.h
includes/tree.h
+18
-9
No files found.
includes/tree.h
View file @
f2a6151f
...
...
@@ -55,6 +55,17 @@ struct data_string {
int
terminated
;
};
struct
binding
{
struct
binding
*
next
;
char
*
name
;
struct
data_string
value
;
};
struct
binding_scope
{
struct
binding_scope
*
outer
;
struct
binding
*
bindings
;
};
/* Expression tree structure. */
enum
expr_op
{
...
...
@@ -99,7 +110,9 @@ enum expr_op {
expr_not_equal
,
expr_null
,
expr_variable_exists
,
expr_variable_reference
expr_variable_reference
,
expr_filename
,
expr_sname
};
struct
expression
{
...
...
@@ -195,7 +208,8 @@ struct universe {
int
(
*
get_func
)
PROTO
((
struct
data_string
*
,
struct
universe
*
,
struct
packet
*
,
struct
lease
*
,
struct
option_state
*
,
struct
option_state
*
,
struct
option_state
*
,
unsigned
));
struct
option_state
*
,
struct
binding_scope
*
,
unsigned
));
void
(
*
set_func
)
PROTO
((
struct
universe
*
,
struct
option_state
*
,
struct
option_cache
*
,
enum
statement_op
));
...
...
@@ -205,7 +219,8 @@ struct universe {
struct
option_state
*
));
int
(
*
encapsulate
)
PROTO
((
struct
data_string
*
,
struct
packet
*
,
struct
lease
*
,
struct
option_state
*
,
struct
option_state
*
,
struct
universe
*
));
struct
option_state
*
,
struct
binding_scope
*
,
struct
universe
*
));
void
(
*
store_tag
)
PROTO
((
unsigned
char
*
,
u_int32_t
));
void
(
*
store_length
)
PROTO
((
unsigned
char
*
,
u_int32_t
));
int
tag_size
,
length_size
;
...
...
@@ -229,9 +244,3 @@ enum expression_context {
context_dns
,
context_data_or_numeric
};
struct
binding
{
struct
binding
*
next
;
char
*
name
;
struct
data_string
value
;
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment