Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
interface: use the correct condition for checking if the pcap fd is open
[vpp.git]
/
src
/
vnet
/
interface_output.c
diff --git
a/src/vnet/interface_output.c
b/src/vnet/interface_output.c
index
1506db9
..
721236a
100644
(file)
--- a/
src/vnet/interface_output.c
+++ b/
src/vnet/interface_output.c
@@
-1467,7
+1467,7
@@
pcap_drop_trace_command_fn (vlib_main_t * vm,
im->pcap_main.n_packets_to_capture =
im->pcap_main.n_packets_captured;
error = pcap_write (&im->pcap_main);
im->pcap_main.n_packets_to_capture =
im->pcap_main.n_packets_captured;
error = pcap_write (&im->pcap_main);
- if (im->pcap_main.f
ile_descriptor >= 0
)
+ if (im->pcap_main.f
lags & PCAP_MAIN_INIT_DONE
)
pcap_close (&im->pcap_main);
if (error)
clib_error_report (error);
pcap_close (&im->pcap_main);
if (error)
clib_error_report (error);