Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #if !defined(_SPANDSP_PCAP_PARSE_H_)
00029 #define _SPANDSP_PCAP_PARSE_H_
00030
00031 #if defined(__cplusplus)
00032 extern "C"
00033 {
00034 #endif
00035
00036 typedef int (pcap_timing_update_handler_t)(void *user_data, struct timeval *ts);
00037 typedef int (pcap_packet_handler_t)(void *user_data, const uint8_t *pkt, int len);
00038
00039
00040 int pcap_scan_pkts(const char *file,
00041 uint32_t src_addr,
00042 uint16_t src_port,
00043 uint32_t dest_addr,
00044 uint16_t dest_port,
00045 pcap_timing_update_handler_t *timing_update_handler,
00046 pcap_packet_handler_t *packet_handler,
00047 void *user_data);
00048
00049 #if defined(__cplusplus)
00050 }
00051 #endif
00052
00053 #endif
00054