From 7a558d16b08ffca477e29be9b0cafba084dff681 Mon Sep 17 00:00:00 2001 From: Luke Date: Wed, 9 Sep 2020 08:23:29 +0100 Subject: LibC: Add some missing netinet macros required by OpenSSH Not used anywhere in Serenity right now, but required for OpenSSH. --- Libraries/LibC/netinet/in.h | 2 ++ Libraries/LibC/netinet/tcp.h | 2 ++ 2 files changed, 4 insertions(+) (limited to 'Libraries/LibC') diff --git a/Libraries/LibC/netinet/in.h b/Libraries/LibC/netinet/in.h index 71802d633e..a08040ca2a 100644 --- a/Libraries/LibC/netinet/in.h +++ b/Libraries/LibC/netinet/in.h @@ -39,6 +39,8 @@ in_addr_t inet_addr(const char*); #define INADDR_NONE ((in_addr_t)-1) #define INADDR_LOOPBACK 0x7f000001 +#define IN_LOOPBACKNET 127 + #define IP_TTL 2 #define IPPORT_RESERVED 1024 diff --git a/Libraries/LibC/netinet/tcp.h b/Libraries/LibC/netinet/tcp.h index 48e7634d64..8dc5da8e32 100644 --- a/Libraries/LibC/netinet/tcp.h +++ b/Libraries/LibC/netinet/tcp.h @@ -25,3 +25,5 @@ */ #pragma once + +#define TCP_NODELAY 10 -- cgit v1.2.3