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 pcap_create()
19 that has not yet been activated by pcap_activate().
20
22 pcap_datalink() returns true (1) or false (0) on success and
23 PCAP_ERROR_NOT_ACTIVATED if called on a capture handle that has been
24 created but not activated.
25
27 pcap(3PCAP)
28
29
30
31 5 April 2008 PCAP_IS_SWAPPED(3PCAP)