mirror of https://github.com/OISF/suricata
source/pcap: fix infinite loop if interface goes down
When in live-pcap mode, if the sniffed interface went down and up again, Suri would enter an infinite and keep running, while not registering new events. This fixes that behavior by allowing Suri to retry to open the pcap in case of a retry on an already activated capture ('PCAP_ERROR_ACTIVATED'). This change is based on Zhiyuan Liao's work. Bug #3846pull/7586/head
parent
dc6fff2cca
commit
2544be4672
Loading…
Reference in New Issue