Skip to content

Commit

Permalink
dns-udp-double-request-response: v2 and v3 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish committed Jul 5, 2024
1 parent 9135570 commit e83123e
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 5 deletions.
16 changes: 16 additions & 0 deletions tests/dns/dns-udp-double-request-response/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
pcap: ../../dns-udp-double-request-response-v1/dns-udp-double-request-response.pcap

requires:
min-version: 8

checks:
- filter:
count: 2
match:
event_type: dns
dns.type: request
- filter:
count: 2
match:
event_type: dns
dns.type: response
8 changes: 8 additions & 0 deletions tests/dns/v2/dns-udp-double-request-response/README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
Test 2 UDP DNS requests followed back to back with no response, then
the 2 responses being received.

Prior to Suricata 3.2 the first request would be marked as having a
reply lost when the second request was seen.

Related issue:
https://redmine.openinfosecfoundation.org/issues/1923
10 changes: 10 additions & 0 deletions tests/dns/v2/dns-udp-double-request-response/suricata.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
%YAML 1.1
---

outputs:
- eve-log:
enabled: yes
filename: eve.json
types:
- dns:
version: 2
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
pcap: ../dns-udp-double-request-response-v1/dns-udp-double-request-response.pcap

requires:
features:
- HAVE_LIBJANSSON
pcap: ../../../dns-udp-double-request-response-v1/dns-udp-double-request-response.pcap

checks:
- filter:
Expand Down

0 comments on commit e83123e

Please sign in to comment.