From d1ef380e6bced047161112cee5412802104fb0cc Mon Sep 17 00:00:00 2001 From: Bananymous Date: Mon, 2 Dec 2024 01:41:38 +0200 Subject: [PATCH] LibC: Add missing definitions for ifreq members --- userspace/libraries/LibC/include/net/if.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/userspace/libraries/LibC/include/net/if.h b/userspace/libraries/LibC/include/net/if.h index 84f00e845d..6d7b52bb8a 100644 --- a/userspace/libraries/LibC/include/net/if.h +++ b/userspace/libraries/LibC/include/net/if.h @@ -31,6 +31,11 @@ struct ifreq unsigned char __min_storage[sizeof(struct sockaddr) + 6]; } ifr_ifru; }; +#define ifr_name ifr_ifrn.ifrn_name +#define ifr_addr ifr_ifru.ifru_addr +#define ifr_netmask ifr_ifru.ifru_addrnetmask +#define ifr_gwaddr ifr_ifru.ifru_addrgwaddr +#define ifr_hwaddr ifr_ifru.ifru_addrhwaddr #define SIOCGIFADDR 1 /* Get interface address */ #define SIOCSIFADDR 2 /* Set interface address */