]> The Tcpdump Group git mirrors - libpcap/blobdiff - pcap.c
Merge pull request #595 from buytenh/pcap_protocol
[libpcap] / pcap.c
diff --git a/pcap.c b/pcap.c
index 643b909dc17aec38b12ec0ac43b02d1e76bae7e8..ce395de4e7d5f4ad7a6faac0263150b53c35663b 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -1338,6 +1338,9 @@ pcap_create_common(char *ebuf, size_t size)
        p->opt.timeout = 0;             /* no timeout specified */
        p->opt.buffer_size = 0;         /* use the platform's default */
        p->opt.promisc = 0;
+#ifdef __linux__
+       p->opt.protocol = 0;
+#endif
        p->opt.rfmon = 0;
        p->opt.immediate = 0;
        p->opt.tstamp_type = -1;        /* default to not setting time stamp type */