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:
parent
6af9c1f65c
commit
f6718afba6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user