aboutgitcodebugslistschat
path: root/iov.c
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-03-06 16:58:30 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-03-06 08:03:30 +0100
commit94502fa15e0b7386318e4a7dad78ea05462010d0 (patch)
treea62bc9725f1cd13f73ca198c10c9947f8969a2c0 /iov.c
parent3b9098aa49bd083a7900dc6e0219bf76e389afd4 (diff)
downloadpasst-94502fa15e0b7386318e4a7dad78ea05462010d0.tar
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.tar.gz
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.tar.bz2
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.tar.lz
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.tar.xz
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.tar.zst
passt-94502fa15e0b7386318e4a7dad78ea05462010d0.zip
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 <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Message-ID: <20240303135114.1023026-2-lvivier@redhat.com> [dwg: Fixed trivial cppcheck regressions] Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'iov.c')
-rw-r--r--iov.c1
1 files changed, 0 insertions, 1 deletions
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;