Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
Kea
Commits
5585299f
Commit
5585299f
authored
Sep 04, 2012
by
Marcin Siodelski
Browse files
[1959] Minor change in checkExitConditions.
parent
c2fa97e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/tools/perfdhcp/test_control.cc
View file @
5585299f
...
...
@@ -149,7 +149,7 @@ TestControl::checkExitConditions() const {
}
}
// Check if we reached maximum number REQUEST packets.
if
(
options
.
getNumRequests
().
size
()
==
2
)
{
if
(
options
.
getNumRequests
().
size
()
>
1
)
{
if
(
options
.
getIpVersion
()
==
4
)
{
if
(
stats_mgr4_
->
getSentPacketsNum
(
StatsMgr4
::
XCHG_RA
)
>=
options
.
getNumRequests
()[
1
])
{
...
...
@@ -185,7 +185,7 @@ TestControl::checkExitConditions() const {
}
}
// Check if we reached maximum number of drops of ACK/REPLY packets.
if
(
options
.
getMaxDrop
().
size
()
==
2
)
{
if
(
options
.
getMaxDrop
().
size
()
>
1
)
{
if
(
options
.
getIpVersion
()
==
4
)
{
if
(
stats_mgr4_
->
getDroppedPacketsNum
(
StatsMgr4
::
XCHG_RA
)
>=
options
.
getMaxDrop
()[
1
])
{
...
...
@@ -226,7 +226,7 @@ TestControl::checkExitConditions() const {
}
}
// Check if we reached maximum drops percentage of ACK/REPLY packets.
if
(
options
.
getMaxDropPercentage
().
size
()
==
2
)
{
if
(
options
.
getMaxDropPercentage
().
size
()
>
1
)
{
if
(
options
.
getIpVersion
()
==
4
)
{
if
((
stats_mgr4_
->
getSentPacketsNum
(
StatsMgr4
::
XCHG_RA
)
>
10
)
&&
((
100.
*
stats_mgr4_
->
getDroppedPacketsNum
(
StatsMgr4
::
XCHG_RA
)
/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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