WARNING: The online documentation has moved to https://docs.pjsip.org.

Visit the new documentation at https://docs.pjsip.org:

BLOG | DOCUMENTATION | GITHUB

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

pj_pcap_filter Struct Reference

#include <pcap.h>

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

◆ dst_port

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.

◆ ip_dst

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.

◆ ip_src

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.

◆ link

pj_pcap_link_type pj_pcap_filter::link

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

◆ proto

pj_pcap_proto_type pj_pcap_filter::proto

Select protocol, or zero to include all supported protocols.

◆ src_port

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.