1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-09-22 22:20:56 +02:00

Made promisc code platform independable

This commit is contained in:
Pavel Odintsov 2015-06-19 03:47:56 -04:00
parent 6af9c1f65c
commit f6718afba6

View File

@ -5,7 +5,11 @@
#include <sys/socket.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <linux/if.h>
#include <net/if.h>
#include <netinet/in.h>
// This code compiles on FreeBSD and Linux but did not work on FreeBSD
int main() {
// We need really any socket for ioctl