28#include <rte_compat.h>
36typedef struct rte_pcapng rte_pcapng_t;
60 const char *osname,
const char *hardware,
61 const char *appname,
const char *comment);
78 RTE_PCAPNG_DIRECTION_UNKNOWN = 0,
79 RTE_PCAPNG_DIRECTION_IN = 1,
80 RTE_PCAPNG_DIRECTION_OUT = 2,
113 uint32_t length, uint64_t timestamp,
154 struct rte_mbuf *pkts[], uint16_t nb_pkts);
186 uint64_t start_time, uint64_t end_time,
187 uint64_t ifrecv, uint64_t ifdrop);
__rte_experimental rte_pcapng_t * rte_pcapng_fdopen(int fd, const char *osname, const char *hardware, const char *appname, const char *comment)
__rte_experimental ssize_t rte_pcapng_write_packets(rte_pcapng_t *self, struct rte_mbuf *pkts[], uint16_t nb_pkts)
__rte_experimental ssize_t rte_pcapng_write_stats(rte_pcapng_t *self, uint16_t port, const char *comment, uint64_t start_time, uint64_t end_time, uint64_t ifrecv, uint64_t ifdrop)
__rte_experimental struct rte_mbuf * rte_pcapng_copy(uint16_t port_id, uint32_t queue, const struct rte_mbuf *m, struct rte_mempool *mp, uint32_t length, uint64_t timestamp, enum rte_pcapng_direction direction)
__rte_experimental uint32_t rte_pcapng_mbuf_size(uint32_t length)
__rte_experimental void rte_pcapng_close(rte_pcapng_t *self)