diff options
Diffstat (limited to 'ot_udp.c')
| -rw-r--r-- | ot_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -12,10 +12,10 @@ | |||
| 12 | 12 | ||
| 13 | /* Libowfat */ | 13 | /* Libowfat */ |
| 14 | #include "io.h" | 14 | #include "io.h" |
| 15 | #include "ip6.h" | ||
| 16 | #include "socket.h" | 15 | #include "socket.h" |
| 17 | 16 | ||
| 18 | /* Opentracker */ | 17 | /* Opentracker */ |
| 18 | #include "ot_ip.h" | ||
| 19 | #include "ot_random.h" | 19 | #include "ot_random.h" |
| 20 | #include "ot_rijndael.h" | 20 | #include "ot_rijndael.h" |
| 21 | #include "ot_stats.h" | 21 | #include "ot_stats.h" |
| @@ -176,7 +176,7 @@ int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { | |||
| 176 | } else { | 176 | } else { |
| 177 | /* Limit amount of peers to OT_MAX_PEERS_UDP */ | 177 | /* Limit amount of peers to OT_MAX_PEERS_UDP */ |
| 178 | uint32_t numwant = ntohl(inpacket[92 / 4]); | 178 | uint32_t numwant = ntohl(inpacket[92 / 4]); |
| 179 | size_t max_peers = ip6_isv4mapped(remoteip) ? OT_MAX_PEERS_UDP4 : OT_MAX_PEERS_UDP6; | 179 | size_t max_peers = ip_is_v4mapped(remoteip) ? OT_MAX_PEERS_UDP4 : OT_MAX_PEERS_UDP6; |
| 180 | if (numwant > max_peers) | 180 | if (numwant > max_peers) |
| 181 | numwant = max_peers; | 181 | numwant = max_peers; |
| 182 | 182 | ||
