spandsp 3.0.0
pcap_parse.h File Reference

Go to the source code of this file.

Typedefs

typedef int pcap_timing_update_handler_t(void *user_data, struct timeval *ts)
 
typedef int pcap_packet_handler_t(void *user_data, const uint8_t *pkt, int len, bool forward)
 

Functions

int pcap_scan_pkts (const char *file, const uint8_t src_addr[INET6_ADDRSTRLEN], uint16_t src_port, const uint8_t dest_addr[INET6_ADDRSTRLEN], uint16_t dest_port, bool bothways, pcap_timing_update_handler_t *timing_update_handler, pcap_packet_handler_t *packet_handler, void *user_data)