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 --- trackerlogic.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'trackerlogic.c') diff --git a/trackerlogic.c b/trackerlogic.c index d8a2f9b..f5e3dc0 100644 --- a/trackerlogic.c +++ b/trackerlogic.c @@ -13,19 +13,19 @@ /* Libowfat */ #include "io.h" #include "iob.h" -#include "ip6.h" /* Opentracker */ #include "ot_accesslist.h" #include "ot_clean.h" #include "ot_fullscrape.h" #include "ot_http.h" +#include "ot_ip.h" #include "ot_livesync.h" #include "ot_mutex.h" #include "ot_random.h" #include "ot_stats.h" -#include "ot_vector.h" #include "ot_udp.h" +#include "ot_vector.h" #include "trackerlogic.h" /* Forward declaration */ @@ -511,7 +511,7 @@ void iterate_all_torrents(int (*for_each)(ot_torrent *torrent, uintptr_t data), ot_peer *peer_from_peer6(ot_peer6 *peer, size_t *peer_size) { ot_ip6 *ip = (ot_ip6 *)peer; - if (!ip6_isv4mapped(ip)) { + if (!ip_is_v4mapped(ip)) { *peer_size = OT_PEER_SIZE6; return (ot_peer *)peer; } @@ -521,7 +521,7 @@ ot_peer *peer_from_peer6(ot_peer6 *peer, size_t *peer_size) { size_t peer_size_from_peer6(ot_peer6 *peer) { ot_ip6 *ip = (ot_ip6 *)peer; - if (!ip6_isv4mapped(ip)) + if (!ip_is_v4mapped(ip)) return OT_PEER_SIZE6; return OT_PEER_SIZE4; } -- cgit v1.3