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
70
Issues
70
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
301453ab
Commit
301453ab
authored
Jan 08, 2000
by
Ted Lemon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- Get rid of ddns_rev_name and ddns_fwd_name.
- Add extra arg to parse_executable_statements.
parent
77d58db2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
37 deletions
+5
-37
server/omapi.c
server/omapi.c
+5
-37
No files found.
server/omapi.c
View file @
301453ab
...
...
@@ -29,7 +29,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: omapi.c,v 1.2
3 2000/01/05 18:22:58
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: omapi.c,v 1.2
4 2000/01/08 01:49:36
mellon Exp $ Copyright (c) 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include "dhcpd.h"
...
...
@@ -245,18 +245,6 @@ isc_result_t dhcp_lease_get_value (omapi_object_t *h, omapi_object_t *id,
(
value
,
name
,
lease
->
client_hostname
,
"dhcp_lease_get_value"
);
return
ISC_R_NOTFOUND
;
}
else
if
(
!
omapi_ds_strcmp
(
name
,
"ddns-fwd-name"
))
{
if
(
lease
->
ddns_fwd_name
)
return
omapi_make_string_value
(
value
,
name
,
lease
->
ddns_fwd_name
,
"dhcp_lease_get_value"
);
return
ISC_R_NOTFOUND
;
}
else
if
(
!
omapi_ds_strcmp
(
name
,
"ddns-rev-name"
))
{
if
(
lease
->
ddns_rev_name
)
return
omapi_make_string_value
(
value
,
name
,
lease
->
ddns_rev_name
,
"dhcp_lease_get_value"
);
return
ISC_R_NOTFOUND
;
}
else
if
(
!
omapi_ds_strcmp
(
name
,
"host"
))
{
if
(
lease
->
host
)
return
omapi_make_handle_value
...
...
@@ -327,14 +315,6 @@ isc_result_t dhcp_lease_destroy (omapi_object_t *h, const char *name)
free
(
lease
->
client_hostname
);
lease
->
hostname
=
(
char
*
)
0
;
}
if
(
lease
->
ddns_fwd_name
)
{
free
(
lease
->
ddns_fwd_name
);
lease
->
ddns_fwd_name
=
(
char
*
)
0
;
}
if
(
lease
->
ddns_rev_name
)
{
free
(
lease
->
ddns_rev_name
);
lease
->
ddns_rev_name
=
(
char
*
)
0
;
}
if
(
lease
->
host
)
omapi_object_dereference
((
omapi_object_t
**
)
&
lease
->
host
,
name
);
...
...
@@ -469,20 +449,6 @@ isc_result_t dhcp_lease_stuff_values (omapi_object_t *c,
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
status
=
omapi_connection_put_name
(
c
,
"ddns-fwd-name"
);
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
status
=
omapi_connection_put_string
(
c
,
lease
->
ddns_fwd_name
);
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
status
=
omapi_connection_put_name
(
c
,
"ddns-rev-name"
);
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
status
=
omapi_connection_put_string
(
c
,
lease
->
ddns_rev_name
);
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
status
=
omapi_connection_put_name
(
c
,
"host"
);
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
...
...
@@ -752,7 +718,8 @@ isc_result_t dhcp_group_set_value (omapi_object_t *h,
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
if
(
!
(
parse_executable_statements
(
&
group
->
group
->
statements
,
parse
,
&
lose
)))
{
(
&
group
->
group
->
statements
,
parse
,
&
lose
,
context_any
)))
{
end_parse
(
&
parse
);
return
ISC_R_BADPARSE
;
}
...
...
@@ -1178,7 +1145,8 @@ isc_result_t dhcp_host_set_value (omapi_object_t *h,
if
(
status
!=
ISC_R_SUCCESS
)
return
status
;
if
(
!
(
parse_executable_statements
(
&
host
->
group
->
statements
,
parse
,
&
lose
)))
{
(
&
host
->
group
->
statements
,
parse
,
&
lose
,
context_any
)))
{
end_parse
(
&
parse
);
return
ISC_R_BADPARSE
;
}
...
...
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