1PCAP_IS_SWAPPED(3PCAP) PCAP_IS_SWAPPED(3PCAP)
2
3
4
6 pcap_is_swapped - find out whether a savefile has the native byte order
7
9 #include <pcap/pcap.h>
10
11 int pcap_is_swapped(pcap_t *p);
12
14 pcap_is_swapped() returns true (1) if p refers to a ``savefile'' that
15 uses a different byte order than the current system. For a live cap‐
16 ture, it always returns false (0).
17
18 It must not be called on a pcap descriptor created by
19 pcap_create(3PCAP) that has not yet been activated by
20 pcap_activate(3PCAP).
21
23 pcap_is_swapped() returns true (1) or false (0) on success and
24 PCAP_ERROR_NOT_ACTIVATED if called on a capture handle that has been
25 created but not activated.
26
28 pcap(3PCAP)
29
30
31
32 7 April 2014 PCAP_IS_SWAPPED(3PCAP)