1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 22:58:11 +00:00

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
parent efb69508f4
commit 468ae105d8
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