mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00:00
Kernel/Net: Implement SIOCGIFINDEX and SIOCGIFNAME for sockets
These ioctls exist on Linux and can be used to implement libc functions if_indextoname and if_nametoindex (without needing to parse any JSON).
This commit is contained in:
parent
47c21cc349
commit
38dc54317c
Notes:
sideshowbarker
2024-07-17 18:23:22 +09:00
Author: https://github.com/kuzux
Commit: 38dc54317c
Pull-request: https://github.com/SerenityOS/serenity/pull/17000
Reviewed-by: https://github.com/supercomputer7 ✅
3 changed files with 54 additions and 0 deletions
|
@ -157,6 +157,8 @@ HANDLE(KEYBOARD_IOCTL_SET_CAPS_LOCK)
|
|||
HANDLE(SIOCSIFADDR)
|
||||
HANDLE(SIOCGIFADDR)
|
||||
HANDLE(SIOCGIFHWADDR)
|
||||
HANDLE(SIOCGIFNAME)
|
||||
HANDLE(SIOCGIFINDEX)
|
||||
HANDLE(SIOCGIFNETMASK)
|
||||
HANDLE(SIOCSIFNETMASK)
|
||||
HANDLE(SIOCGIFBRDADDR)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue