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
Sebastian Schrader
Kea
Commits
7a7dc17a
Commit
7a7dc17a
authored
Apr 10, 2013
by
Stephen Morris
Browse files
[2784] Minor change to error message when wrong IP switch is used
parent
30fc9695
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/tools/perfdhcp/test_control.cc
View file @
7a7dc17a
...
...
@@ -597,12 +597,12 @@ TestControl::openSocket() const {
uint8_t
family
=
(
options
.
getIpVersion
()
==
6
)
?
AF_INET6
:
AF_INET
;
IOAddress
remoteaddr
(
servername
);
// Check for mismatch between
ip
option and server
// Check for mismatch between
IP
option and server
address
if
(
family
!=
remoteaddr
.
getFamily
())
{
isc_throw
(
InvalidParameter
,
"Values for I
p
version: "
<<
static_cast
<
unsigned
int
>
(
options
.
getIpVersion
())
<<
" and
S
erver
:
"
<<
servername
<<
" are mismatched."
);
"Values for I
P
version: "
<<
static_cast
<
unsigned
int
>
(
options
.
getIpVersion
())
<<
" and
s
erver
address:
"
<<
servername
<<
" are mismatched."
);
}
if
(
port
==
0
)
{
...
...
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