diff options
author | Xin LI <delphij@FreeBSD.org> | 2015-01-06 22:29:12 +0000 |
---|---|---|
committer | Xin LI <delphij@FreeBSD.org> | 2015-01-06 22:29:12 +0000 |
commit | 681ed54caa769e19ddacdf0658fcc5ac5ea7cf3f (patch) | |
tree | 771f596cd1897c196b7372e4a2744d0a8594958d /contrib/libpcap/pcap_snapshot.3pcap | |
parent | 22598009750fcc6ad4756534d936e6021368e4db (diff) | |
parent | 50224b10fa4e157f09ee1cd03c790c9e61e76c5e (diff) | |
download | src-681ed54caa769e19ddacdf0658fcc5ac5ea7cf3f.tar.gz src-681ed54caa769e19ddacdf0658fcc5ac5ea7cf3f.zip |
MFV r276759: libpcap 1.6.2.
MFC after: 1 month
Notes
Notes:
svn path=/head/; revision=276768
Diffstat (limited to 'contrib/libpcap/pcap_snapshot.3pcap')
-rw-r--r-- | contrib/libpcap/pcap_snapshot.3pcap | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/contrib/libpcap/pcap_snapshot.3pcap b/contrib/libpcap/pcap_snapshot.3pcap index 3025312fb576..47eb42a3843f 100644 --- a/contrib/libpcap/pcap_snapshot.3pcap +++ b/contrib/libpcap/pcap_snapshot.3pcap @@ -1,5 +1,3 @@ -.\" @(#) $Header: /tcpdump/master/libpcap/pcap_snapshot.3pcap,v 1.3 2008-04-06 02:53:22 guy Exp $ -.\" .\" Copyright (c) 1994, 1996, 1997 .\" The Regents of the University of California. All rights reserved. .\" @@ -19,7 +17,7 @@ .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. .\" -.TH PCAP_SNAPSHOT 3PCAP "5 April 2008" +.TH PCAP_SNAPSHOT 3PCAP "17 September 2013" .SH NAME pcap_snapshot \- get the snapshot length .SH SYNOPSIS @@ -40,5 +38,15 @@ or .B pcap_open_live() was called, for a live capture, or the snapshot length from the capture file, for a ``savefile''. +.PP +It must not be called on a pcap descriptor created by +.B pcap_create() +that has not yet been activated by +.BR pcap_activate() . +.SH RETURN VALUE +.B pcap_snapshot() +returns the snapshot length on success and +.B PCAP_ERROR_NOT_ACTIVATED +if called on a capture handle that has been created but not activated. .SH SEE ALSO pcap(3PCAP) |