forked from DNS-OARC/dsc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Issue DNS-OARC#291: - `dns_protocol`: fix EDNS0 parsing, check that it's root domain and haven't found EDNS before - Add test with multiple resource records, EDNS0 and nsid - Fix test 285
- Loading branch information
Showing
7 changed files
with
99 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/sh -xe | ||
|
||
rm -f 1683879752.xml | ||
rm -f 1683879752.dscdata.xml | ||
|
||
../dsc "$srcdir/test_285.conf" | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
run_dir "."; | ||
interface h-root-aaa.pcap-dist; | ||
dataset qtype dns All:null Qtype:qtype queries-only; | ||
dataset rcode dns All:null Rcode:rcode replies-only; | ||
dataset edns_version dns All:null EDNSVersion:edns_version queries-only; | ||
dataset edns_bufsiz dns All:null EDNSBufSiz:edns_bufsiz queries-only; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/sh -xe | ||
|
||
rm -f 1688028728.dscdata.xml | ||
|
||
../dsc "$srcdir/test_291.conf" | ||
|
||
test -f 1688028728.dscdata.xml || sleep 1 | ||
test -f 1688028728.dscdata.xml || sleep 2 | ||
test -f 1688028728.dscdata.xml || sleep 3 | ||
test -f 1688028728.dscdata.xml | ||
diff -u 1688028728.dscdata.xml "$srcdir/test_291.xml_gold" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<dscdata> | ||
<array name="pcap_stats" dimensions="2" start_time="1688028728" stop_time="1688028728"> | ||
<dimension number="1" type="ifname"/> | ||
<dimension number="2" type="pcap_stat"/> | ||
<data> | ||
<ifname val="h-root-aaa.pcap-dist"> | ||
<pcap_stat val="pkts_captured" count="6"/> | ||
</ifname> | ||
</data> | ||
</array> | ||
<array name="edns_bufsiz" dimensions="2" start_time="1688028728" stop_time="1688028728"> | ||
<dimension number="1" type="All"/> | ||
<dimension number="2" type="EDNSBufSiz"/> | ||
<data> | ||
<All val="ALL"> | ||
<EDNSBufSiz val="None" count="2"/> | ||
<EDNSBufSiz val="4096-4607" count="1"/> | ||
</All> | ||
</data> | ||
</array> | ||
<array name="edns_version" dimensions="2" start_time="1688028728" stop_time="1688028728"> | ||
<dimension number="1" type="All"/> | ||
<dimension number="2" type="EDNSVersion"/> | ||
<data> | ||
<All val="ALL"> | ||
<EDNSVersion val="none" count="2"/> | ||
<EDNSVersion val="0" count="1"/> | ||
</All> | ||
</data> | ||
</array> | ||
<array name="rcode" dimensions="2" start_time="1688028728" stop_time="1688028728"> | ||
<dimension number="1" type="All"/> | ||
<dimension number="2" type="Rcode"/> | ||
<data> | ||
<All val="ALL"> | ||
<Rcode val="0" count="3"/> | ||
</All> | ||
</data> | ||
</array> | ||
<array name="qtype" dimensions="2" start_time="1688028728" stop_time="1688028728"> | ||
<dimension number="1" type="All"/> | ||
<dimension number="2" type="Qtype"/> | ||
<data> | ||
<All val="ALL"> | ||
<Qtype val="1" count="1"/> | ||
<Qtype val="28" count="1"/> | ||
<Qtype val="2" count="1"/> | ||
</All> | ||
</data> | ||
</array> | ||
</dscdata> |