Bug #6997
openSocket mode hard fail with pcap logging mode and multiple link layer pcap file
Description
When using socket mode with pcap logging enabled, suricata exits with error when encountering pcaps with multiple link layers, preventing further processing of pcap files:
[477571] Error: log-pcap: Pcap logging with multiple link type is not supported.
running:sudo /opt/suricata-7.0.3/src/suricata -vvv -c ./suricata.socket.yaml -k none --set stream.midstream=true --set classification-file=/opt/suricata-7.0.3/etc/classification.config --set reference-config-file=/opt/suricata-6.0.16/etc/reference.config --set threshold-file=/opt/suricata-7.0.3/threshold.config -l . -S /home/user/rules/suricata.local.rules --unix-socket
and add pcap via:sudo suricatasc -c "pcap-file /home/user/working/test_pcaps/tests/pcap_logging_socket_mode_bug/pcaps/cme_query.pcap /home/user/working/test_pcaps/tests/logs/"
@sudo suricatasc -c "pcap-file /home/user/working/test_pcaps/tests/pcap_logging_socket_mode_bug/pcaps/evil_png_etc_passwd.pcap /home/user/working/test_pcaps/tests/logs/"
Note: it requires more than 1 pcap file add to trigger the error
Files
No data to display