Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
ISC Open Source Projects
dhcp
Commits
5df5813d
Commit
5df5813d
authored
Jun 06, 2019
by
Thomas Markwalder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[
#16
,
!9
] Addressed review comments
Added comments on #endif statements
parent
1c779d3b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
client/dhclient.c
client/dhclient.c
+10
-6
includes/omapip/isclib.h
includes/omapip/isclib.h
+2
-1
No files found.
client/dhclient.c
View file @
5df5813d
...
...
@@ -123,7 +123,8 @@ static int check_option_values(struct universe *universe, unsigned int opt,
#if defined(NSUPDATE)
static
void
dhclient_ddns_cb_free
(
dhcp_ddns_cb_t
*
ddns_cb
,
char
*
file
,
int
line
);
#endif
#endif
/* defined NSUPDATE */
/*!
*
...
...
@@ -1575,7 +1576,8 @@ void bind_lease (client)
#if defined (NSUPDATE)
if
(
client
->
config
->
do_forward_update
)
dhclient_schedule_updates
(
client
,
&
client
->
active
->
address
,
1
);
#endif
#endif
/* defined NSUPDATE */
}
/* state_bound is called when we've successfully bound to a particular
...
...
@@ -4801,7 +4803,8 @@ client_dns_remove(struct client_state *client,
}
}
}
#endif
#endif
/* defined NSUPDATE */
isc_result_t
dhcp_set_control_state
(
control_object_state_t
oldstate
,
control_object_state_t
newstate
)
...
...
@@ -4842,7 +4845,8 @@ isc_result_t dhcp_set_control_state (control_object_state_t oldstate,
client_dns_remove
(
client
,
&
client
->
active
->
address
);
}
#endif
#endif
/* defined NSUPDATE */
do_release
(
client
);
}
break
;
...
...
@@ -5189,7 +5193,7 @@ dhclient_schedule_updates(struct client_state *client,
piaddr
(
*
addr
));
}
}
#endif
#endif
/* defined NSUPDATE */
void
dhcpv4_client_assignments
(
void
)
...
...
@@ -5398,7 +5402,7 @@ dhclient_ddns_cb_free(dhcp_ddns_cb_t *ddns_cb, char* file, int line) {
ddns_cb_free
(
ddns_cb
,
file
,
line
);
}
}
#endif
#endif
/* defined NSUPDATE */
#if defined(DHCPv6) && defined(DHCP4o6)
/*
...
...
includes/omapip/isclib.h
View file @
5df5813d
...
...
@@ -143,6 +143,7 @@ extern int shutdown_signal;
#if defined (NSUPDATE)
isc_result_t
dns_client_init
();
#endif
#endif
/* defined NSUPDATE */
#endif
/* ISCLIB_H */
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