1PCAP_SET_SNAPLEN(3PCAP) PCAP_SET_SNAPLEN(3PCAP)
2
3
4
6 pcap_set_snaplen - set the snapshot length for a not-yet-activated cap‐
7 ture handle
8
10 #include <pcap/pcap.h>
11
12 int pcap_set_snaplen(pcap_t *p, int snaplen);
13
15 pcap_set_snaplen() sets the snapshot length to be used on a capture
16 handle when the handle is activated to snaplen.
17
19 pcap_set_snaplen() returns 0 on success or PCAP_ERROR_ACTIVATED if
20 called on a capture handle that has been activated.
21
23 pcap(3PCAP), pcap_create(3PCAP), pcap_activate(3PCAP)
24
25
26
27 5 April 2008 PCAP_SET_SNAPLEN(3PCAP)