[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]

Technical Reference: Base Operating System and Extensions, Volume 1


pcap_perror Subroutine

Purpose

Prints the passed-in prefix, followed by the most recent error text.

Library

pcap Library (libpcap.a)

Syntax


#include <pcap.h>


void pcap_perror(pcap_t * p, char * prefix);

Description

The pcap_perror subroutine prints the text of the last pcap library error to stderr, prefixed by prefix. If there were no previous errors, only prefix is printed.

Parameters


p Points to a packet capture descriptor as returned by the pcap_open_live subroutine or the pcap_open_offline subroutine.
prefix Specifies the string that is to be printed before the stored error message.

Related Information

The pcap_geterr (pcap_geterr Subroutine) subroutine, pcap_open_live (pcap_open_live Subroutine) subroutine, pcap_open_offline (pcap_open_offline Subroutine) subroutine, pcap_strerror (pcap_strerror Subroutine) subroutine.


[ Previous | Next | Table of Contents | Index | Library Home | Legal | Search ]