1PCAP_SET_SNAPLEN(3PCAP)                                PCAP_SET_SNAPLEN(3PCAP)
2
3
4

NAME

6       pcap_set_snaplen - set the snapshot length for a not-yet-activated cap‐
7       ture handle
8

SYNOPSIS

10       #include <pcap/pcap.h>
11
12       int pcap_set_snaplen(pcap_t *p, int snaplen);
13

DESCRIPTION

15       pcap_set_snaplen() sets the snapshot length to be  used  on  a  capture
16       handle when the handle is activated to snaplen.
17

RETURN VALUE

19       pcap_set_snaplen()  returns  0  on  success  or PCAP_ERROR_ACTIVATED if
20       called on a capture handle that has been activated.
21

SEE ALSO

23       pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
24
25
26
27                                3 January 2014         PCAP_SET_SNAPLEN(3PCAP)
Impressum