--- /dev/null
+# Description
+
+Test DNS over HTTP2 respects 65K UDP limit
+https://redmine.openinfosecfoundation.org/issues/7464
+
+# PCAP
+
+Crafted with:
+- a simple golang HTTP2 server always returning 415 http.StatusUnsupportedMediaType
+- client `curl -H "content-type: application/dns-message" --http2-prior-knowledge 127.0.0.1:8080/dns -d @badns` with badns being a file over 65Kbytes
+
+(I do not know why golang server sends many RST_STREAM at packet 45)
--- /dev/null
+alert http2 any any -> any any (msg:"SURICATA HTTP2 dns request too long"; flow:established,to_server; app-layer-event:http2.dns_request_too_long; classtype:protocol-command-decode; sid:2290016; rev:1;)
+alert http2 any any -> any any (msg:"SURICATA HTTP2 dns response too long"; flow:established,to_client; app-layer-event:http2.dns_response_too_long; classtype:protocol-command-decode; sid:2290017; rev:1;)
--- /dev/null
+requires:
+ min-version: 8.0.0
+
+# disables checksum verification
+args:
+ - -k none
+
+checks:
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ - filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 2290016