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
64
Issues
64
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
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
a5b21e16
Commit
a5b21e16
authored
Sep 26, 2018
by
Thomas Markwalder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[master] Added configuration parameter, ping-cltt-secs (v4 operation only)
Merges in rt36283.
parent
cce04313
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
238 additions
and
112 deletions
+238
-112
RELNOTES
RELNOTES
+7
-2
includes/dhcpd.h
includes/dhcpd.h
+6
-0
server/dhcp.c
server/dhcp.c
+194
-110
server/dhcpd.conf.5
server/dhcpd.conf.5
+30
-0
server/stables.c
server/stables.c
+1
-0
No files found.
RELNOTES
View file @
a5b21e16
...
...
@@ -88,7 +88,13 @@ Consortium. This product includes cryptographic software written
by
Eric
Young
(
eay
@
cryptsoft
.
com
).
Changes
since
4.4.1
(
New
Features
)
-
none
-
A
new
configuration
parameter
,
ping
-
cltt
-
secs
(
v4
operation
only
),
has
been
added
to
allow
the
user
to
specify
the
number
of
seconds
that
must
elapse
since
CLTT
before
a
ping
check
is
conducted
.
Prior
to
this
,
the
value
was
hard
coded
at
60
seconds
.
Please
see
the
server
man
pages
for
a
more
detailed
discussion
.
[
ISC
-
Bugs
#
36283
]
Changes
since
4.4.1
(
Bug
Fixes
)
...
...
@@ -100,7 +106,6 @@ by Eric Young (eay@cryptsoft.com).
Changes
since
4.4.0
(
New
Features
)
-
none
Changes
since
4.4.0
(
Bug
Fixes
)
-
A
delayed
-
ack
value
of
0
(
the
default
),
now
correctly
disables
the
delayed
...
...
includes/dhcpd.h
View file @
a5b21e16
...
...
@@ -815,11 +815,17 @@ struct lease_state {
#define SV_RELEASE_ON_ROAM 95
#define SV_LOCAL_ADDRESS6 96
#define SV_BIND_LOCAL_ADDRESS6 97
#define SV_PING_CLTT_SECS 98
#if !defined (DEFAULT_PING_TIMEOUT)
# define DEFAULT_PING_TIMEOUT 1
#endif
#if !defined (DEFAULT_PING_CLTT_SECS)
# define DEFAULT_PING_CLTT_SECS 60
/* in seconds */
#endif
#if !defined (DEFAULT_DELAYED_ACK)
# define DEFAULT_DELAYED_ACK 0
/* default 0 disables delayed acking */
#endif
...
...
server/dhcp.c
View file @
a5b21e16
This diff is collapsed.
Click to expand it.
server/dhcpd.conf.5
View file @
a5b21e16
...
...
@@ -3027,6 +3027,36 @@ checking - if its value is false, no ping check is done.
.RE
.PP
The
.I ping-cltt-secs
statement
.RS 0.25i
.PP
.B ping-cltt-secs
.I seconds\fR\fB;\fR
.PP
The server will conduct a ping check if all the following conditions are true:
.PP
1. Ping checking is enabled.
.PP
2. The server is responding to a DISCOVER.
.PP
3. The lease to be offered is neither static nor active (i.e. still a valid
lease).
.PP
4. And any of the following are true:
a. This will be the first offer of this lease (CLTT is 0).
b. The lease is being offered to a client other than its previous owner
c. The lease is being offered to its previous owner and more than
\fBping-cltt-secs\fR have elapsed since CLTT of the original lease.
d. The lease was abandoned and the server is attempting to reclaim it.
.PP
The \fBping-cltt-secs\fR statement allows the user to specify the amount of
time that must elaspe after CLTT before a ping check will be conducted.
The default value is sixty seconds.
.RE
.PP
The
.I ping-timeout
statement
.RS 0.25i
...
...
server/stables.c
View file @
a5b21e16
...
...
@@ -291,6 +291,7 @@ static struct option server_options[] = {
{
"release-on-roam"
,
"f"
,
&
server_universe
,
SV_RELEASE_ON_ROAM
,
1
},
{
"local-address6"
,
"6"
,
&
server_universe
,
SV_LOCAL_ADDRESS6
,
1
},
{
"bind-local-address6"
,
"f"
,
&
server_universe
,
SV_BIND_LOCAL_ADDRESS6
,
1
},
{
"ping-cltt-secs"
,
"T"
,
&
server_universe
,
SV_PING_CLTT_SECS
,
1
},
{
NULL
,
NULL
,
NULL
,
0
,
0
}
};
...
...
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