use sys/endian.h for byte swapping

This commit is contained in:
XANTRONIX 2019-03-21 17:35:05 -05:00
parent 0b957e97ed
commit 77350166a9
2 changed files with 2 additions and 0 deletions

View file

@ -5,6 +5,7 @@
#include <inttypes.h> #include <inttypes.h>
#include <unistd.h> #include <unistd.h>
#include <fcntl.h> #include <fcntl.h>
#include <sys/endian.h>
#include <hexagram/capture.h> #include <hexagram/capture.h>
#include <hexagram/pcapng.h> #include <hexagram/pcapng.h>

View file

@ -6,6 +6,7 @@
#include <fcntl.h> #include <fcntl.h>
#include <unistd.h> #include <unistd.h>
#include <sys/types.h> #include <sys/types.h>
#include <sys/endian.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <sys/ioctl.h> #include <sys/ioctl.h>