File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 3434#include "source-pcap.h"
3535#include "conf.h"
3636#include "util-debug.h"
37+
38+
3739#include "util-error.h"
3840#include "util-privs.h"
3941#include "util-device.h"
@@ -67,9 +69,7 @@ typedef struct PcapThreadVars_
6769 int datalink ;
6870
6971 /* counters */
70- uint32_t pkts ;
71- uint64_t bytes ;
72- uint32_t errs ;
72+ uint32_t pkts ; uint64_t bytes ; uint32_t errs ;
7373
7474 uint16_t capture_kernel_packets ;
7575 uint16_t capture_kernel_drops ;
@@ -145,9 +145,7 @@ static int PcapTryReopen(PcapThreadVars *ptv)
145145 ptv -> pcap_state = PCAP_STATE_DOWN ;
146146
147147 int pcap_activate_r = pcap_activate (ptv -> pcap_handle );
148- if (pcap_activate_r != 0 ) {
149- return pcap_activate_r ;
150- }
148+ if (pcap_activate_r != 0 ) { return pcap_activate_r ; }
151149
152150 /* set bpf filter if we have one */
153151 if (ptv -> bpf_filter != NULL ) {
You can’t perform that action at this time.
0 commit comments