summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibC
diff options
context:
space:
mode:
authorBrian Gianforcaro <bgianf@serenityos.org>2021-12-28 00:10:49 -0800
committerAndreas Kling <kling@serenityos.org>2021-12-28 11:00:51 +0100
commit4fdff1ba632be8d2ae81563578f1b998d6dc28c5 (patch)
tree11285420b795b871203c7895babdee6e2d620036 /Userland/Libraries/LibC
parentfb8df01036dc5d2b427f58e13ab819d8ad7235d4 (diff)
downloadserenity-4fdff1ba632be8d2ae81563578f1b998d6dc28c5.zip
LibC: Add in6addr_loopback and IN6ADDR_LOOPBACK_INIT constant
Much like the existing in6addr_any global and the IN6ADDR_ANY_INIT macro, our LibC is also expected to export the in6addr_loopback global and the IN6ADDR_LOOPBACK_INIT constant. These were found by the stress-ng port.
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r--Userland/Libraries/LibC/net.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Libraries/LibC/net.cpp b/Userland/Libraries/LibC/net.cpp
index 145ef4b153..aa76ec0a6c 100644
--- a/Userland/Libraries/LibC/net.cpp
+++ b/Userland/Libraries/LibC/net.cpp
@@ -8,7 +8,8 @@
#include <LibC/net/if.h>
#include <LibC/netinet/in.h>
-in6_addr in6addr_any = IN6ADDR_ANY_INIT;
+const in6_addr in6addr_any = IN6ADDR_ANY_INIT;
+const in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
unsigned int if_nametoindex([[maybe_unused]] const char* ifname)
{