diff options
author | Coren[m] <Break@Ocean> | 2013-09-09 14:16:40 +0200 |
---|---|---|
committer | Coren[m] <Break@Ocean> | 2013-09-09 14:16:40 +0200 |
commit | 29d777ef67bc964229722db073a2abdd1eb737b6 (patch) | |
tree | aaa91593de5c47199d1124456266e7da4483e2ad /toxcore/LAN_discovery.c | |
parent | a128e3ff8f09250757ed4ed73fcc088cb5fd15ee (diff) |
network.h:
- IP: add in_addr_t as part of the union
- IP: rename IP to IP4
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index fe9f748b..73337539 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -81,9 +81,9 @@ static uint32_t send_broadcasts(Networking_Core *net, uint16_t port, uint8_t * d | |||
81 | #endif | 81 | #endif |
82 | 82 | ||
83 | /* Return the broadcast ip. */ | 83 | /* Return the broadcast ip. */ |
84 | static IP broadcast_ip(void) | 84 | static IP4 broadcast_ip(void) |
85 | { | 85 | { |
86 | IP ip; | 86 | IP4 ip; |
87 | ip.uint32 = ~0; | 87 | ip.uint32 = ~0; |
88 | return ip; | 88 | return ip; |
89 | } | 89 | } |
@@ -91,7 +91,7 @@ static IP broadcast_ip(void) | |||
91 | /* return 0 if ip is a LAN ip. | 91 | /* return 0 if ip is a LAN ip. |
92 | * return -1 if it is not. | 92 | * return -1 if it is not. |
93 | */ | 93 | */ |
94 | static int LAN_ip(IP ip) | 94 | static int LAN_ip(IP4 ip) |
95 | { | 95 | { |
96 | if (ip.uint8[0] == 127) /* Loopback. */ | 96 | if (ip.uint8[0] == 127) /* Loopback. */ |
97 | return 0; | 97 | return 0; |