1PCAP_SNAPSHOT(3PCAP)                                      PCAP_SNAPSHOT(3PCAP)
2
3
4

NAME

6       pcap_snapshot - get the snapshot length
7

SYNOPSIS

9       #include <pcap/pcap.h>
10
11       int pcap_snapshot(pcap_t *p);
12

DESCRIPTION

14       pcap_snapshot()    returns   the   snapshot   length   specified   when
15       pcap_set_snapshot() or pcap_open_live() was called, for a live capture,
16       or the snapshot length from the capture file, for a ``savefile''.
17
18       It  must  not  be  called on a pcap descriptor created by pcap_create()
19       that has not yet been activated by pcap_activate().
20

RETURN VALUE

22       pcap_snapshot()  returns   the   snapshot   length   on   success   and
23       PCAP_ERROR_NOT_ACTIVATED  if  called  on a capture handle that has been
24       created but not activated.
25

SEE ALSO

27       pcap(3PCAP)
28
29
30
31                                 7 April 2014             PCAP_SNAPSHOT(3PCAP)
Impressum