BLOG | DOCUMENTATION | GITHUB

Home --> Documentations --> PJLIB-UTIL Reference

pcap.h File Reference

Simple PCAP file reader. More...

Go to the source code of this file.

Data Structures

struct  pj_pcap_udp_hdr
 
struct  pj_pcap_filter
 

Typedefs

typedef struct pj_pcap_file pj_pcap_file
 

Enumerations

enum  pj_pcap_link_type { PJ_PCAP_LINK_TYPE_ETH = 1 }
 
enum  pj_pcap_proto_type { PJ_PCAP_PROTO_TYPE_UDP = 17 }
 

Functions

void pj_pcap_filter_default (pj_pcap_filter *filter)
 
pj_status_t pj_pcap_open (pj_pool_t *pool, const char *path, pj_pcap_file **p_file)
 
pj_status_t pj_pcap_close (pj_pcap_file *file)
 
pj_status_t pj_pcap_set_filter (pj_pcap_file *file, const pj_pcap_filter *filter)
 
pj_status_t pj_pcap_read_udp (pj_pcap_file *file, pj_pcap_udp_hdr *udp_hdr, pj_uint8_t *udp_payload, pj_size_t *udp_payload_size)
 

Detailed Description

Simple PCAP file reader.

 


PJLIB-UTIL Open Source, small footprint, and portable asynchronous/caching DNS resolver, text scanner, STUN client, and XML library
Copyright (C) 2006-2009 Teluu Inc.