SerenityOS / serenity

The Serenity Operating System 🐞
https://serenityos.org
BSD 2-Clause "Simplified" License
30.69k stars 3.19k forks source link

Kernel: IP routing tables #180

Open awesomekling opened 5 years ago

awesomekling commented 5 years ago

We need static routing tables to know which network adapter should be used for which networks.

IdanHo commented 3 years ago

i assume this can be closed as done? (due to 6d1418aa7ad008bff949827fd6a66cb5092665c7 and many others)

awesomekling commented 3 years ago

Well.. not quite. There's still no way to define static routes :)

IdanHo commented 3 years ago

i see, should that be available via something like linux's ip utility? or a config file somewhere?

supercomputer7 commented 3 years ago

i see, should that be available via something like linux's ip utility? or a config file somewhere?

well, we should ideally allow people to define static routes in a config file and add more or delete some dynamically via the commandline. iirc linux uses a netlink interface between the userland to the Kernel to do this, so I think we can definitely think about this, although I'm not fond of the idea to create lots of interfaces (we already have the sysctl, ioctl, syscalls) if not needed.