summaryrefslogtreecommitdiff
path: root/ot_udp.c
diff options
context:
space:
mode:
authorDirk Engling <erdgeist@erdgeist.org>2026-10-24 17:23:32 +0200
committerDirk Engling <erdgeist@erdgeist.org>2026-10-24 17:23:32 +0200
commitd61aefe2fc4d8549f459bdfc2749c9f163449ebc (patch)
treedf7502281c2c073dc0a07a5b8e2ebc238fbda851 /ot_udp.c
parent0f4892b186312ddd5f836121124e21cb99e5682d (diff)
Replace libowfat's ip scanner and formatters with own own
Diffstat (limited to 'ot_udp.c')
-rw-r--r--ot_udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ot_udp.c b/ot_udp.c
index 82aa8bd..d17f3ff 100644
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -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