| rte_pcapng.h(3) | Library Functions Manual | rte_pcapng.h(3) |
rte_pcapng.h
#include <stdint.h>
#include <sys/types.h>
#include <rte_mempool.h>
enum rte_pcapng_direction
rte_pcapng_t * rte_pcapng_fdopen (int fd, const char
*osname, const char *hardware, const char *appname, const char *comment)
void rte_pcapng_close (rte_pcapng_t *self)
int rte_pcapng_add_interface (rte_pcapng_t *self, uint16_t port, const
char *ifname, const char *ifdescr, const char *filter)
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, enum rte_pcapng_direction direction, const char
*comment)
uint32_t rte_pcapng_mbuf_size (uint32_t length)
ssize_t rte_pcapng_write_packets (rte_pcapng_t *self, struct
rte_mbuf *pkts[], uint16_t nb_pkts)
ssize_t rte_pcapng_write_stats (rte_pcapng_t *self, uint16_t port,
uint64_t ifrecv, uint64_t ifdrop, const char *comment)
RTE pcapng
Pcapng is an evolution from the pcap format, created to address some of its deficiencies. Namely, the lack of extensibility and inability to store additional information.
For details about the file format see RFC: https://www.ietf.org/id/draft-tuexen-opsawg-pcapng-03.html and https://github.com/pcapng/pcapng/
Definition in file rte_pcapng.h.
Direction flag These should match Enhanced Packet Block flag bits
Definition at line 95 of file rte_pcapng.h.
Write data to existing open file
Parameters
Returns
Close capture file
Parameters
Add interface information to the capture file
Parameters
Interfaces must be added to the output file after opening and before any packet record. All ports used in packet capture must be added.
Format an mbuf for writing to file.
Parameters
Returns
Determine optimum mbuf data size.
Parameters
Returns
Write packets to the capture file.
Packets to be captured are copied by rte_pcapng_copy() and then this function is called to write them to the file.
Warning
Parameters
Returns
Write an Interface statistics block. For statistics, use 0 if don't know or care to report it. Should be called before closing capture to report results.
Parameters
Returns
Generated automatically by Doxygen for DPDK from the source code.
| Version 24.11.3 | DPDK |