X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Fpcap.c;h=e91b8792c2aba47b9e84c45b6b67b6efb448e440;hb=refs%2Fchanges%2F77%2F15077%2F2;hp=473430a670e0ab3b454c3bf79888811a72f18eb9;hpb=78c568905724af785e90185fd89fa8717b3b35c2;p=vpp.git diff --git a/src/vnet/unix/pcap.c b/src/vnet/unix/pcap.c index 473430a670e..e91b8792c2a 100644 --- a/src/vnet/unix/pcap.c +++ b/src/vnet/unix/pcap.c @@ -110,6 +110,7 @@ pcap_write (pcap_main_t * pm) pm->flags |= PCAP_MAIN_INIT_DONE; pm->n_packets_captured = 0; pm->n_pcap_data_written = 0; + clib_spinlock_init (&pm->lock); /* Write file header. */ memset (&fh, 0, sizeof (fh));