From 94502fa15e0b7386318e4a7dad78ea05462010d0 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Wed, 6 Mar 2024 16:58:30 +1100 Subject: pcap: add pcap_iov() Introduce a new function pcap_iov() to capture packet desribed by an IO vector. Update pcap_frame() to manage iovcnt > 1. Signed-off-by: Laurent Vivier Reviewed-by: David Gibson Message-ID: <20240303135114.1023026-2-lvivier@redhat.com> [dwg: Fixed trivial cppcheck regressions] Signed-off-by: David Gibson Signed-off-by: Stefano Brivio --- iov.c | 1 - 1 file changed, 1 deletion(-) (limited to 'iov.c') diff --git a/iov.c b/iov.c index e331262..e7b4eb7 100644 --- a/iov.c +++ b/iov.c @@ -146,7 +146,6 @@ size_t iov_to_buf(const struct iovec *iov, size_t iov_cnt, * * Returns: The total size in bytes. */ -/* cppcheck-suppress unusedFunction */ size_t iov_size(const struct iovec *iov, size_t iov_cnt) { unsigned int i; -- cgit v1.2.3