Kernel: Stop exposing gateway field

It doesn't make sense after introduction of routing table which allows
having multiple gateways for every interface, and isn't used by any of
the userspace programs now.
This commit is contained in:
Maciej 2022-04-30 23:25:51 +02:00 committed by Andreas Kling
parent 06c90b35ec
commit 66ab4d61a4
Notes: sideshowbarker 2024-07-17 11:25:07 +09:00
4 changed files with 0 additions and 13 deletions

View file

@ -67,7 +67,6 @@ void NetworkTask_main(void*)
if (adapter.class_name() == "LoopbackAdapter"sv) {
adapter.set_ipv4_address({ 127, 0, 0, 1 });
adapter.set_ipv4_netmask({ 255, 0, 0, 0 });
adapter.set_ipv4_gateway({ 0, 0, 0, 0 });
}
adapter.on_receive = [&]() {