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
Kea
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian Schrader
Kea
Commits
0f31fd26
Commit
0f31fd26
authored
Feb 01, 2011
by
JINMEI Tatuya
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
ssh://bind10.isc.org/var/bind10/git/bind10
parents
e4dd2ed9
2ec914c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/lib/asiolink/tests/asiolink_unittest.cc
src/lib/asiolink/tests/asiolink_unittest.cc
+2
-2
No files found.
src/lib/asiolink/tests/asiolink_unittest.cc
View file @
0f31fd26
...
...
@@ -154,14 +154,14 @@ TEST(IOServiceTest, unavailableAddress) {
IOService
io_service
;
// These addresses should generally be unavailable as a valid local
// address, although there's no guarantee in theory.
EXPECT_THROW
(
DNSService
(
io_service
,
*
TEST_SERVER_PORT
,
*
"
255.255.0
.0"
,
NULL
,
NULL
,
NULL
),
IOError
);
EXPECT_THROW
(
DNSService
(
io_service
,
*
TEST_SERVER_PORT
,
*
"
192.0.2
.0"
,
NULL
,
NULL
,
NULL
),
IOError
);
// Some OSes would simply reject binding attempt for an AF_INET6 socket
// to an IPv4-mapped IPv6 address. Even if those that allow it, since
// the corresponding IPv4 address is the same as the one used in the
// AF_INET socket case above, it should at least show the same result
// as the previous one.
EXPECT_THROW
(
DNSService
(
io_service
,
*
TEST_SERVER_PORT
,
*
"::ffff:
255.255.0
.0"
,
NULL
,
NULL
,
NULL
),
IOError
);
EXPECT_THROW
(
DNSService
(
io_service
,
*
TEST_SERVER_PORT
,
*
"::ffff:
192.0.2
.0"
,
NULL
,
NULL
,
NULL
),
IOError
);
}
TEST
(
IOServiceTest
,
duplicateBind_v6
)
{
...
...
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