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
77995e53
Commit
77995e53
authored
Jun 04, 2020
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add minimal ECS content checking
parent
97948468
Pipeline
#43479
passed with stages
in 5 minutes and 3 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
+19
-5
genreport.c
genreport.c
+19
-5
No files found.
genreport.c
View file @
77995e53
...
...
@@ -2351,6 +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
;
char
addrbuf
[
64
];
int
ednsvers
=
0
;
int
ok
=
1
;
...
...
@@ -2691,8 +2692,15 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
copy_nsid
(
item
->
summary
,
options
,
optlen
);
}
if
(
code
==
8
)
if
(
code
==
8
)
{
seenecs
=
1
;
if
(
optlen
!=
4
||
memcmp
(
options
,
"
\x00\x01\x00
"
,
3
))
{
badecs
=
1
;
}
}
if
(
code
==
9
&&
optlen
==
4
)
seenexpire
=
1
;
/* Server Cookie. */
...
...
@@ -2882,13 +2890,14 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
"ra=%u z=%u ad=%u cd=%u qrcount=%u ancount=%u "
"aucount=%u adcount=%u
\n
"
"
\t
seensoa=%u seenrrsig=%u seenopt=%u "
"seennsid=%u seenecs=%u seenexpire=%u seencookie=%u
\n
"
"seennsid=%u seenecs=%u badecs=%u "
"seenexpire=%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
,
seenexpire
,
seencookie
,
seennsid
,
seenecs
,
badecs
,
seenexpire
,
seencookie
,
ednssize
);
}
...
...
@@ -3074,8 +3083,13 @@ process(struct workitem *item, unsigned char *buf, int buflen, int port) {
}
else
if
(
seencookie
)
{
addtag
(
item
,
"cookie"
);
}
if
(
seenecs
)
addtag
(
item
,
"subnet"
);
if
(
seenecs
)
{
if
(
badecs
)
{
addtag
(
item
,
"subnet-bad"
);
}
else
{
addtag
(
item
,
"subnet"
);
}
}
if
(
proxy
)
addtag
(
item
,
"proxy"
);
...
...
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