X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=src%2Fvnet%2Funix%2Fpcap.c;h=e91b8792c2aba47b9e84c45b6b67b6efb448e440;hb=f91080c01104a5999fe6c08e699b3426fea62dad;hp=473430a670e0ab3b454c3bf79888811a72f18eb9;hpb=9594b56e6f795751cfef562920ded7874376e91c;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));