aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-generic/include/odp_pcapng.h
blob: 6f2a3dda5689b7801da2181d036db66e7413d05a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/* Copyright (c) 2018, Linaro Limited
 * Copyright (c) 2019, Nokia
 * All rights reserved.
 *
 * SPDX-License-Identifier:     BSD-3-Clause
 */

#ifndef ODP_PCAPNG_H_
#define ODP_PCAPNG_H_

#ifdef __cplusplus
extern "C" {
#endif

#include <odp/api/packet.h>
#include <odp_packet_io_internal.h>

#include <stdint.h>

int _odp_pcapng_start(pktio_entry_t *entry);
void _odp_pcapng_stop(pktio_entry_t *entry);
int _odp_pcapng_dump_pkts(pktio_entry_t *entry, int qidx,
			  const odp_packet_t packets[], int num);

#ifdef __cplusplus
}
#endif

#endif /* ODP_PCAPNG_H_ */