From d61aefe2fc4d8549f459bdfc2749c9f163449ebc Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Sat, 24 Oct 2026 17:23:32 +0200 Subject: Replace libowfat's ip scanner and formatters with own own --- ot_udp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ot_udp.c') 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 @@ /* Libowfat */ #include "io.h" -#include "ip6.h" #include "socket.h" /* Opentracker */ +#include "ot_ip.h" #include "ot_random.h" #include "ot_rijndael.h" #include "ot_stats.h" @@ -176,7 +176,7 @@ int handle_udp6(int64 serversocket, struct ot_workstruct *ws) { } else { /* Limit amount of peers to OT_MAX_PEERS_UDP */ uint32_t numwant = ntohl(inpacket[92 / 4]); - size_t max_peers = ip6_isv4mapped(remoteip) ? OT_MAX_PEERS_UDP4 : OT_MAX_PEERS_UDP6; + size_t max_peers = ip_is_v4mapped(remoteip) ? OT_MAX_PEERS_UDP4 : OT_MAX_PEERS_UDP6; if (numwant > max_peers) numwant = max_peers; -- cgit v1.3