1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 09:37:34 +00:00

IPv4: Implement socket ioctls SIOCGIFADDR and SIOCSIFADDR

This allows userspace programs to get and set (superuser-only) the IPv4
address of a network adapter. :^)
This commit is contained in:
Andreas Kling 2019-09-23 19:06:03 +02:00
parent a3575f3c60
commit 2482fc3538
7 changed files with 117 additions and 1 deletions

View file

@ -33,4 +33,6 @@ enum IOCtlNumber {
FB_IOCTL_SET_RESOLUTION,
FB_IOCTL_GET_BUFFER,
FB_IOCTL_SET_BUFFER,
SIOCSIFADDR,
SIOCGIFADDR,
};