Comment 2 for bug 31379

Revision history for this message
Chris Moore (dooglus) wrote :

The main loop does the following:

 while(ret >= 0) {
  ret = pcap_dispatch(cap, -1, sniff, NULL);
 }

When I suspect, ret gets set to -1, the loop exits, and the program ends, with this message:

  pcap: recvfrom: Network is down

It should wait for the network to come back again, probably set up a new pcap, and start again.