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_snaplen(3PCAP) or pcap_open_live(3PCAP) was called, for a live
16       capture,  or  the  snapshot length from the capture file, for a ``save‐
17       file''.
18
19       It  must  not   be   called   on   a   pcap   descriptor   created   by
20       pcap_create(3PCAP)    that    has    not    yet   been   activated   by
21       pcap_activate(3PCAP).
22

RETURN VALUE

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

SEE ALSO

29       pcap(3PCAP)
30
31
32
33                                 7 April 2014             PCAP_SNAPSHOT(3PCAP)
Impressum