pcap_minor_version Subroutine

Purpose

Obtains the minor version number of the packet capture format used to write the savefile.

Library

pcap Library (libpcap.a)

Syntax

#include <pcap.h>

int pcap_minor_version(pcap_t * p);

Description

The pcap_minor_version subroutine returns the minor version number of the packet capture format used to write the savefile. This subroutine should only be called after a successful call to the pcap_open_offline subroutine and before any calls to the pcap_close subroutine.

Parameters

Item Description
p Points to a packet capture descriptor as returned from the pcap_open_offline subroutine.

Return Values

The minor version number of the packet capture format used to write the savefile.