diff options
author | Idan Horowitz <idan.horowitz@gmail.com> | 2021-12-05 01:45:27 +0200 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-22 00:02:36 -0800 |
commit | 468ae105d87ff7f381565958444030a4f55729fc (patch) | |
tree | 194c883470622a79aa59595f27190166a9a3cdd9 /Kernel/API | |
parent | efb69508f48645e1dc84d89e49ea8636fe4d95e9 (diff) | |
download | serenity-468ae105d87ff7f381565958444030a4f55729fc.zip |
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.
Diffstat (limited to 'Kernel/API')
-rw-r--r-- | Kernel/API/POSIX/net/if.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Kernel/API/POSIX/net/if.h b/Kernel/API/POSIX/net/if.h index 9c63d9ff82..3a90a8ec33 100644 --- a/Kernel/API/POSIX/net/if.h +++ b/Kernel/API/POSIX/net/if.h @@ -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 |