fd8334b25d
The offset is passed directly to pcap_frame() and allows any headers that are not part of the frame to capture to be skipped. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Reviewed-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
15 lines
428 B
C
15 lines
428 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later
|
|
* Copyright (c) 2021 Red Hat GmbH
|
|
* Author: Stefano Brivio <sbrivio@redhat.com>
|
|
*/
|
|
|
|
#ifndef PCAP_H
|
|
#define PCAP_H
|
|
|
|
void pcap(const char *pkt, size_t l2len);
|
|
void pcap_multiple(const struct iovec *iov, size_t frame_parts, unsigned int n,
|
|
size_t offset);
|
|
void pcap_iov(const struct iovec *iov, size_t iovcnt, size_t offset);
|
|
void pcap_init(struct ctx *c);
|
|
|
|
#endif /* PCAP_H */
|