mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +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:
parent
a3575f3c60
commit
2482fc3538
Notes:
sideshowbarker
2024-07-19 11:59:51 +09:00
Author: https://github.com/awesomekling
Commit: 2482fc3538
7 changed files with 117 additions and 1 deletions
|
@ -34,6 +34,8 @@ public:
|
|||
virtual KResult setsockopt(int level, int option, const void*, socklen_t) override;
|
||||
virtual KResult getsockopt(int level, int option, void*, socklen_t*) override;
|
||||
|
||||
virtual int ioctl(FileDescription&, unsigned request, unsigned arg) override;
|
||||
|
||||
void did_receive(const IPv4Address& peer_address, u16 peer_port, KBuffer&&);
|
||||
|
||||
const IPv4Address& local_address() const { return m_local_address; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue