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
f2e843c4
Commit
f2e843c4
authored
Jan 21, 2019
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow UDP delay to be configured on the command line
parent
2cfceed0
Pipeline
#8925
passed with stages
in 1 minute and 11 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
genreport.c
genreport.c
+12
-2
genreport.md
genreport.md
+3
-0
No files found.
genreport.c
View file @
f2e843c4
...
...
@@ -129,6 +129,7 @@ static int json = 0;
static
int
unique
=
0
;
static
int
useglue
=
0
;
static
int
glueonly
=
0
;
static
int
udpdelay
=
113000
;
static
const
char
*
jrec
=
"{
\"
data
\"
: [ "
;
static
const
char
*
jfin
=
"{ }"
;
...
...
@@ -1933,7 +1934,8 @@ check(char *zone, char *ns, char *address, struct summary *parent, int port) {
dotest
(
item
,
usec
);
if
(
serial
)
break
;
usec
+=
113000
;
if
(
!
opts
[
item
->
test
].
tcp
)
usec
+=
udpdelay
;
}
report
(
summary
);
/* Release reference. */
}
...
...
@@ -3897,7 +3899,7 @@ main(int argc, char **argv) {
int
on
=
1
;
int
port
=
53
;
while
((
n
=
getopt
(
argc
,
argv
,
"46abBcdDeEfgGi:I:jLm:nopP:r:RstTu"
))
!=
-
1
)
{
while
((
n
=
getopt
(
argc
,
argv
,
"46abBcdDeEfgGi:I:jLm:nopP:r:RstTu
U:
"
))
!=
-
1
)
{
switch
(
n
)
{
case
'4'
:
ipv4only
=
1
;
ipv6only
=
0
;
break
;
case
'6'
:
ipv6only
=
1
;
ipv4only
=
0
;
break
;
...
...
@@ -3967,6 +3969,13 @@ main(int argc, char **argv) {
}
exit
(
0
);
case
'u'
:
unique
=
1
;
break
;
case
'U'
:
{
int
tmp
=
atoi
(
optarg
);
if
(
tmp
>=
0
&&
tmp
<=
1000
)
{
udpdelay
=
tmp
*
1000
;
}
}
default:
printf
(
"usage: genreport [-46abBcdeEfgGjLnopstT] "
"[-i test] [-I test] [-m maxoutstanding] "
...
...
@@ -4000,6 +4009,7 @@ main(int argc, char **argv) {
printf
(
"
\t
-t: type tests (serial)
\n
"
);
printf
(
"
\t
-T: print type list for type test (-t)
\n
"
);
printf
(
"
\t
-u: unique IP address
\n
"
);
printf
(
"
\t
-U: UDP delay [0..1000]
\n
"
);
exit
(
0
);
}
}
...
...
genreport.md
View file @
f2e843c4
...
...
@@ -120,6 +120,9 @@ with EDNS, FULL or COMM tests you need to specify them after the -t switch.
**-u**
: only test a IP address once.
**-U**
: delay between UDP requests to a server in milliseconds (default: 113, range: [0..1000]).
# EXAMPLES
## Test all servers for a zone
...
...
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