pcap_is_swapped (3)
Leading comments
Copyright (c) 1994, 1996, 1997 The Regents of the University of California. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that: (1) source code distributions retain the above copyright notice and this paragraph in its entirety, (2) distributions including binary code include the above copyright notice and this paragraph in its entirety in the documentation or other materials provided with the distribution...
NAME
pcap_is_swapped - find out whether a savefile has the native byte orderSYNOPSIS
#include <pcap/pcap.h> int pcap_is_swapped(pcap_t *p);
DESCRIPTION
pcap_is_swapped() returns true (1) if p refers to a ``savefile'' that uses a different byte order than the current system. For a live capture, it always returns false (0).It must not be called on a pcap descriptor created by pcap_create() that has not yet been activated by pcap_activate().