Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app/dumpcap: allow multiple invocations
[ upstream commit e0235c0e4d40a6d93dfef8b1316e03c32f2f8b43 ] If dumpcap is run twice with each instance pointing a different interface, it would fail because of overlap in ring a pool names. Fix by putting process id in the name. It is still not allowed to do multiple invocations on the same interface because only one callback is allowed and only one copy of mbuf is done. Dumpcap will fail with error in this case: pdump_prepare_client_request(): client request for pdump enable/disable failed EAL: Error - exiting with code: 1 Cause: Packet dump enable on 0:net_null0 failed File exists Fixes: cbb4414 ("app/dumpcap: add new packet capture application") Reported-by: Isaac Boukris <iboukris@gmail.com> Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
- Loading branch information