From c28c0928145955983d8d404bb851a597dd8c0b0e Mon Sep 17 00:00:00 2001 From: Jeff Date: Sat, 30 Jul 2022 09:52:06 -0400 Subject: [PATCH] squelch warnings from sid --- llarp/net/sock_addr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/llarp/net/sock_addr.cpp b/llarp/net/sock_addr.cpp index b0ed8f2eb1..f19bf07da9 100644 --- a/llarp/net/sock_addr.cpp +++ b/llarp/net/sock_addr.cpp @@ -16,6 +16,12 @@ namespace llarp { return memcmp(&lh, &rh, sizeof(in6_addr)) == 0; } + + bool + operator<(const in6_addr& lh, const in6_addr& rh) + { + return memcmp(&lh, &rh, sizeof(in6_addr)) < 0; + } /// shared utility functions ///