From: Eric Leblond Date: Mon, 30 Jul 2012 10:11:23 +0000 (+0200) Subject: af-packet: fix reconnect code X-Git-Tag: suricata-1.3.1~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=09e709d1c5233dcce60b5dd44ab47ffd248a08c3;p=thirdparty%2Fsuricata.git af-packet: fix reconnect code Reconnect code was in a "work by luck" stage as we did not update the socket number after reconnect. --- diff --git a/src/source-af-packet.c b/src/source-af-packet.c index c201876959..a671fd5346 100644 --- a/src/source-af-packet.c +++ b/src/source-af-packet.c @@ -533,6 +533,7 @@ TmEcode ReceiveAFPLoop(ThreadVars *tv, void *data, void *slot) break; } r = AFPTryReopen(ptv); + fds.fd = ptv->socket; } while (r < 0); if (dbreak == 1) break;