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
DNS-Compliance-Testing
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
6
Issues
6
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
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
DNS-Compliance-Testing
Commits
470c508b
Commit
470c508b
authored
Dec 04, 2016
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
print 'all ok'
parent
05d7adb3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
21 deletions
+27
-21
genreport.c
genreport.c
+27
-21
No files found.
genreport.c
View file @
470c508b
...
...
@@ -74,6 +74,7 @@ static int udp6 = -1;
static
int
ipv4only
=
0
;
static
int
ipv6only
=
0
;
static
int
allok
=
0
;
static
int
bad
=
0
;
static
int
badtag
=
0
;
static
int
ednsonly
=
0
;
...
...
@@ -545,6 +546,9 @@ printandfree(struct summary *summary) {
x
=
-
1
;
printf
(
"%s. @%s (%s.):"
,
summary
->
zone
,
addrbuf
,
summary
->
ns
);
if
(
allok
&&
summary
->
allok
)
printf
(
" all ok"
);
else
for
(
i
=
0
;
i
<
sizeof
(
opts
)
/
sizeof
(
opts
[
0
]);
i
++
)
{
if
(
opts
[
i
].
what
!=
0
&&
(
opts
[
i
].
what
&
what
)
==
0
)
continue
;
...
...
@@ -2019,10 +2023,11 @@ main(int argc, char **argv) {
int
done
=
0
;
char
*
end
;
while
((
n
=
getopt
(
argc
,
argv
,
"46bBcdeEfi:m:opr:st"
))
!=
-
1
)
{
while
((
n
=
getopt
(
argc
,
argv
,
"46
a
bBcdeEfi:m:opr:st"
))
!=
-
1
)
{
switch
(
n
)
{
case
'4'
:
ipv4only
=
1
;
ipv6only
=
0
;
break
;
case
'6'
:
ipv6only
=
1
;
ipv4only
=
0
;
break
;
case
'a'
:
allok
=
1
;
break
;
case
'b'
:
bad
=
1
;
break
;
case
'B'
:
badtag
=
1
;
break
;
case
'c'
:
what
|=
COMM
;
break
;
...
...
@@ -2050,6 +2055,7 @@ main(int argc, char **argv) {
"[-r server]
\n
"
);
printf
(
"
\t
-4: IPv4 servers only
\n
"
);
printf
(
"
\t
-6: IPv6 servers only
\n
"
);
printf
(
"
\t
-a: only emit all ok
\n
"
);
printf
(
"
\t
-b: only emit bad servers
\n
"
);
printf
(
"
\t
-B: only emit bad tests
\n
"
);
printf
(
"
\t
-c: add common queries
\n
"
);
...
...
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