LibC: Add missing definitions for ifreq members

This commit is contained in:
Bananymous 2024-12-02 01:41:38 +02:00
parent c02de2580d
commit d1ef380e6b
1 changed files with 5 additions and 0 deletions

View File

@ -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 */