aboutsummaryrefslogtreecommitdiff
path: root/etherent.c
diff options
context:
space:
mode:
Diffstat (limited to 'etherent.c')
-rw-r--r--etherent.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/etherent.c b/etherent.c
index 69da9a54..e0e5023c 100644
--- a/etherent.c
+++ b/etherent.c
@@ -33,6 +33,8 @@
#include <pcap/namedb.h>
+#include "thread-local.h"
+
#ifdef HAVE_OS_PROTO_H
#include "os-proto.h"
#endif
@@ -87,7 +89,7 @@ pcap_next_etherent(FILE *fp)
u_char d;
char *bp;
size_t namesize;
- static struct pcap_etherent e;
+ static thread_local struct pcap_etherent e;
memset((char *)&e, 0, sizeof(e));
for (;;) {