This test checks SLL2 decode operation.
--- /dev/null
+Suricata 8+ Ensure SLL2 packets are decoded
--- /dev/null
+requires:
+
+ min-version: 8
+
+checks:
+
+- stats:
+ decoder.ipv4: 5
+ decoder.tcp: 5
+ decoder.sll2: 5
--- /dev/null
+Suricata 8+ Ensure SLL2 packets are decoded and HTTP alerts validated.
--- /dev/null
+alert http any any -> any any (msg:"SLL2/HTTP test"; flow:established, to_server; http.uri; content: "/testing"; sid: 1;)
--- /dev/null
+%YAML 1.1
+---
+
+outputs:
+ - fast:
+ enabled: yes
+
+ - eve-log:
+ enabled: yes
+ filetype: regular
+ filename: eve.json
+ types:
+ - alert:
+ packet: yes # enable dumping of packet (without stream segments)
+ - http:
+ extended: yes # enable this for extended logging information
+ - stats:
+ enabled: yes
+ filename: stats.log
--- /dev/null
+requires:
+
+ min-version: 8
+
+args:
+ - -k none
+checks:
+
+- stats:
+ decoder.sll2: 159
+ decoder.tcp: 159
+ decoder.ipv4: 159
+- filter:
+ count: 1
+ match:
+ event_type: alert
+ alert.signature_id: 1
+ packet_info.linktype_name: LINUX_SLL2
+- filter:
+ count: 1
+ match:
+ event_type: http
+ http.hostname: 192.168.1.21
+ http.http_method: GET