Kernel+LibC: Stub out if_nameindex() and if_freenameindex()

These should allow users to receive the names of network interfaces in
the system, but for now these are only stubs required to compile some
ports.
This commit is contained in:
Idan Horowitz 2021-12-05 01:45:27 +02:00 committed by Brian Gianforcaro
commit 468ae105d8
Notes: sideshowbarker 2024-07-17 22:23:54 +09:00
3 changed files with 19 additions and 0 deletions

View file

@ -79,6 +79,11 @@ struct ifreq {
#define ifr_hwaddr ifr_ifru.ifru_hwaddr // MAC address
};
struct if_nameindex {
unsigned int if_index;
char* if_name;
};
#ifdef __cplusplus
}
#endif