From 615d9d4abe925c215f4ec67660c8bb64ad13b75d Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 5 Aug 2024 00:56:42 +0300 Subject: [PATCH] LibC: Add INADDR_LOOPBACK Some port was using this. Loopback addresses are not supported, but they will be 127.0.0.1. --- userspace/libraries/LibC/include/netinet/in.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/userspace/libraries/LibC/include/netinet/in.h b/userspace/libraries/LibC/include/netinet/in.h index c28f07ba..4aa0c268 100644 --- a/userspace/libraries/LibC/include/netinet/in.h +++ b/userspace/libraries/LibC/include/netinet/in.h @@ -26,7 +26,8 @@ __BEGIN_DECLS #define IPV6_V6ONLY 7 #define INADDR_ANY 0 -#define INADDR_BROADCAST UINT32_MAX +#define INADDR_BROADCAST 0xFFFFFFFF +#define INADDR_LOOPBACK 0x7F000001 #define INET_ADDRSTRLEN 16 #define INET6_ADDRSTRLEN 46