mirror of
https://github.com/zeek/zeek.git
synced 2025-10-01 22:28:20 +00:00
af_packet: Ensure all of the member fields get initialized
This commit is contained in:
parent
1f7c2f42bc
commit
f92bffcfd9
1 changed files with 6 additions and 6 deletions
|
@ -57,13 +57,13 @@ private:
|
|||
Properties props;
|
||||
Stats stats;
|
||||
|
||||
int current_filter;
|
||||
unsigned int num_discarded;
|
||||
int checksum_mode;
|
||||
int current_filter = 0;
|
||||
unsigned int num_discarded = 0;
|
||||
int checksum_mode = 0;
|
||||
|
||||
int socket_fd;
|
||||
RX_Ring *rx_ring;
|
||||
struct pcap_pkthdr current_hdr;
|
||||
int socket_fd = -1;
|
||||
RX_Ring *rx_ring = nullptr;
|
||||
struct pcap_pkthdr current_hdr = {0};
|
||||
|
||||
struct InterfaceInfo {
|
||||
int index = -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue