mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 17:49:40 +00:00
Kernel: Add netmask and gateway to NetworkAdapter
This commit is contained in:
parent
61bdf09d78
commit
1aa7437ad7
Notes:
sideshowbarker
2024-07-19 12:28:03 +09:00
Author: https://github.com/deoxxa
Commit: 1aa7437ad7
Pull-request: https://github.com/SerenityOS/serenity/pull/499
Reviewed-by: https://github.com/awesomekling
2 changed files with 16 additions and 0 deletions
|
@ -103,6 +103,16 @@ void NetworkAdapter::set_ipv4_address(const IPv4Address& address)
|
|||
m_ipv4_address = address;
|
||||
}
|
||||
|
||||
void NetworkAdapter::set_ipv4_netmask(const IPv4Address& netmask)
|
||||
{
|
||||
m_ipv4_netmask = netmask;
|
||||
}
|
||||
|
||||
void NetworkAdapter::set_ipv4_gateway(const IPv4Address& gateway)
|
||||
{
|
||||
m_ipv4_gateway = gateway;
|
||||
}
|
||||
|
||||
void NetworkAdapter::set_interface_name(const StringView& basename)
|
||||
{
|
||||
// FIXME: Find a unique name for this interface, starting with $basename.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue