diff options
author | irungentoo <irungentoo@gmail.com> | 2014-11-11 08:03:11 -0500 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-11-11 08:03:11 -0500 |
commit | ab42c91a491823e67cdbe99c62d16654323d9666 (patch) | |
tree | f3aafba7311112575de1b525065e746f19b9a63c /toxcore/LAN_discovery.c | |
parent | f0f68efee8408f6306b4a1f2e1d07e9e76189f5e (diff) |
Prevent connection ips from switching on LAN.
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 436b16fd..74f10c98 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -28,6 +28,13 @@ | |||
28 | #include "LAN_discovery.h" | 28 | #include "LAN_discovery.h" |
29 | #include "util.h" | 29 | #include "util.h" |
30 | 30 | ||
31 | /* Used for get_broadcast(). */ | ||
32 | #ifdef __linux | ||
33 | #include <sys/ioctl.h> | ||
34 | #include <arpa/inet.h> | ||
35 | #include <linux/netdevice.h> | ||
36 | #endif | ||
37 | |||
31 | #define MAX_INTERFACES 16 | 38 | #define MAX_INTERFACES 16 |
32 | 39 | ||
33 | 40 | ||