BLOG | DOCUMENTATION | TRAC

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

pj_pcap_filter Struct Reference

Data Fields

pj_pcap_link_type link
 
pj_pcap_proto_type proto
 
pj_uint32_t ip_src
 
pj_uint32_t ip_dst
 
pj_uint16_t src_port
 
pj_uint16_t dst_port
 

Detailed Description

This structure describes the filter to be used when reading packets from a PCAP file. When a filter is configured, only packets matching all the filter specifications will be read from PCAP file.

Field Documentation

pj_uint16_t pj_pcap_filter::dst_port

Specify destination port of the packets, or zero to include packets with any destination port number. Note that the port number must be in network byte order.

pj_uint32_t pj_pcap_filter::ip_dst

Specify destination IP address of the packets, or zero to include packets destined to any IP addresses. Note that IP address here must be in network byte order.

pj_uint32_t pj_pcap_filter::ip_src

Specify source IP address of the packets, or zero to include packets from any IP addresses. Note that IP address here must be in network byte order.

pj_pcap_link_type pj_pcap_filter::link

Select data link type, or zero to include any supported data links.

pj_pcap_proto_type pj_pcap_filter::proto

Select protocol, or zero to include all supported protocols.

pj_uint16_t pj_pcap_filter::src_port

Specify source port of the packets, or zero to include packets with any source port number. Note that the port number must be in network byte order.


The documentation for this struct was generated from the following file:

 


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.