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
330c81df
Commit
330c81df
authored
Jun 09, 2020
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
report bad-expire
parent
77995e53
Pipeline
#43944
passed with stages
in 3 minutes and 29 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
genreport.c
genreport.c
+14
-7
No files found.
genreport.c
View file @
330c81df
...
...
@@ -2351,7 +2351,7 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
int
tsig_wrong_key
=
0
,
tsig_wrong_alg
=
0
,
tsig_bad_time
=
0
;
int
tsig_bad_other_len
=
0
,
tsig_bad_sig
=
0
,
tsig_bad_fudge
=
0
;
int
n
,
cname
=
0
,
dname
=
0
,
rrsig
=
0
,
found
=
0
;
int
badecs
;
int
badecs
=
0
,
badexpire
=
0
;
char
addrbuf
[
64
];
int
ednsvers
=
0
;
int
ok
=
1
;
...
...
@@ -2696,13 +2696,18 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
seenecs
=
1
;
if
(
optlen
!=
4
||
memcmp
(
options
,
"
\x00\x01\x00
"
,
3
))
{
"
\x00\x01\x00
"
,
3
)
||
options
[
3
]
>
32
)
{
badecs
=
1
;
}
}
if
(
code
==
9
&&
optlen
==
4
)
seenexpire
=
1
;
if
(
code
==
9
)
{
if
(
optlen
==
4
)
seenexpire
=
1
;
else
badexpire
=
1
;
}
/* Server Cookie. */
if
(
code
==
10
&&
optlen
>=
16
&&
optlen
<=
40
)
{
...
...
@@ -2891,14 +2896,14 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
"aucount=%u adcount=%u
\n
"
"
\t
seensoa=%u seenrrsig=%u seenopt=%u "
"seennsid=%u seenecs=%u badecs=%u "
"seenexpire=%u seencookie=%u
\n
"
"seenexpire=%u
badexpire-%u
seencookie=%u
\n
"
"
\t
ednsudpsize=%u
\n
"
,
id
,
testname
,
opcode
,
rcode
,
qr
,
aa
,
tc
,
rd
,
ra
,
z
,
ad
,
cd
,
qrcount
,
ancount
,
aucount
,
adcount
,
seensoa
,
seenrrsig
,
seenopt
,
seennsid
,
seenecs
,
badecs
,
seenexpire
,
seencooki
e
,
ednssize
);
seennsid
,
seenecs
,
badecs
,
seenexpire
,
badexpir
e
,
seencookie
,
ednssize
);
}
if
(
item
->
summary
->
type
)
{
...
...
@@ -3070,6 +3075,8 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
addtag
(
item
,
"nsid"
);
if
(
seenexpire
)
addtag
(
item
,
"expire"
);
if
(
badexpire
)
addtag
(
item
,
"expire-bad"
);
if
(
seencookie
&&
goodcookie
&&
opts
[
item
->
test
].
cookie
)
{
if
(
rcode
==
ns_r_badcookie
)
addtag
(
item
,
"cookie+badcookie"
);
...
...
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