From 1b7a8f1c6eb17bba00c9ff198dca528a10c3b61b Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 9 Apr 2008 20:20:17 +0000 Subject: Document the extra error information supplied for PCAP_ERROR_NO_SUCH_DEVICE and PCAP_ERROR_PERM_DENIED. --- pcap_activate.3pcap | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'pcap_activate.3pcap') diff --git a/pcap_activate.3pcap b/pcap_activate.3pcap index 43bad033..6368a8c1 100644 --- a/pcap_activate.3pcap +++ b/pcap_activate.3pcap @@ -1,4 +1,4 @@ -.\" @(#) $Header: /tcpdump/master/libpcap/pcap_activate.3pcap,v 1.2 2008-04-09 19:58:02 guy Exp $ +.\" @(#) $Header: /tcpdump/master/libpcap/pcap_activate.3pcap,v 1.3 2008-04-09 20:20:17 guy Exp $ .\" .\" Copyright (c) 1994, 1996, 1997 .\" The Regents of the University of California. All rights reserved. @@ -61,5 +61,18 @@ or may be called with .I p as an argument to fetch or display the error text. +If +.B PCAP_ERROR_NO_SUCH_DEVICE +or +.B PCAP_ERROR_PERM_DENIED +is returned, +.B pcap_geterr() +or +.B pcap_perror() +may be called with +.I p +as an argument to fetch or display an error message giving additional +details about the error that might be useful for debugging the error if +it's unexpected. .SH SEE ALSO pcap(3PCAP) -- cgit v1.2.1