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
BIND
Commits
c6522138
Commit
c6522138
authored
Nov 08, 2017
by
Mark Andrews
Browse files
4810. [test] The chain system test failed if the IPv6 interfaces
were not configured. [RT #46508]
parent
5b1e929b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
c6522138
4810. [test] The chain system test failed if the IPv6 interfaces
were not configured. [RT #46508]
--- 9.12.0b2 released ---
4809. [port] Check at configure time whether -latomic is needed
...
...
bin/tests/system/chain/ans4/ans.py
View file @
c6522138
...
...
@@ -254,7 +254,7 @@ def create_response(msg):
def
sigterm
(
signum
,
frame
):
print
(
"Shutting down now..."
)
os
.
remove
(
'ans.pid'
)
running
=
0
running
=
False
sys
.
exit
(
0
)
############################################################################
...
...
@@ -270,8 +270,17 @@ sock = 5300
query4_socket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_DGRAM
)
query4_socket
.
bind
((
ip4
,
sock
))
query6_socket
=
socket
.
socket
(
socket
.
AF_INET6
,
socket
.
SOCK_DGRAM
)
query6_socket
.
bind
((
ip6
,
sock
))
havev6
=
True
try
:
query6_socket
=
socket
.
socket
(
socket
.
AF_INET6
,
socket
.
SOCK_DGRAM
)
try
:
query6_socket
.
bind
((
ip6
,
sock
))
except
:
query6_socket
.
close
()
havev6
=
False
except
:
havev6
=
False
ctrl_socket
=
socket
.
socket
(
socket
.
AF_INET
,
socket
.
SOCK_STREAM
)
ctrl_socket
.
bind
((
ip4
,
sock
+
1
))
...
...
@@ -284,14 +293,18 @@ pid = os.getpid()
print
(
pid
,
file
=
f
)
f
.
close
()
running
=
1
running
=
True
print
(
"Listening on %s port %d"
%
(
ip4
,
sock
))
print
(
"Listening on %s port %d"
%
(
ip6
,
sock
))
if
havev6
:
print
(
"Listening on %s port %d"
%
(
ip6
,
sock
))
print
(
"Control channel on %s port %d"
%
(
ip4
,
sock
+
1
))
print
(
"Ctrl-c to quit"
)
input
=
[
query4_socket
,
query6_socket
,
ctrl_socket
]
if
havev6
:
input
=
[
query4_socket
,
query6_socket
,
ctrl_socket
]
else
:
input
=
[
query4_socket
,
ctrl_socket
]
while
running
:
try
:
...
...
Mark Andrews
@marka
mentioned in commit
78644f55
·
Dec 20, 2017
mentioned in commit
78644f55
mentioned in commit 78644f557782e545176795a933bedebbb634e374
Toggle commit list
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