April 2005
Intermediate to advanced
344 pages
11h 59m
English
pcap_is_swapped — Prototype: int pcap_is_swapped(pcap_t *p)
Purpose: pcap_is_swapped returns
1 if the saved file referred to by
p is in a different byte order than the byte order
used in the underlying platform, or 0 if it is the
same. If the saved file is in a different byte order, most platforms
provide the ntohs( ) and ntohl() functions for converting network order to host order
(i.e., big endian to little endian) and/or htons() and htonl( ) for converting host order
to network order (i.e., little endian to big endian).
Read now
Unlock full access