ladybird/Kernel/API/POSIX
brapru 8596b1e0c3 Kernel: Add a global routing table
Previously the system had no concept of assigning different routes for
different destination addresses as the default gateway IP address was
directly assigned to a network adapter. This default gateway was
statically assigned and any update  would remove the previously existing
route.

This patch is a beginning step towards implementing #180. It implements
a simple global routing table that is referenced during the routing
process. With this implementation it is now possible for a user or
service (i.e. DHCP) to dynamically add routes to the table.

The routing table will select the most specific route when possible. It
will select any direct match between the destination and routing entry
addresses. If the destination address overlaps between multiple entries,
the Kernel will use the longest prefix match, or the longest number of
matching bits between the destination address and the routing address.
In the event that there is no entries found for a specific destination
address, this implementation supports entries for a default route to be
set for any specified interface.

This is a small first step towards enhancing the system's routing
capabilities. Future enhancements would include referencing a
configuration file at boot to load pre-defined static routes.
2022-04-28 08:41:11 -07:00
..
net Kernel: Add a global routing table 2022-04-28 08:41:11 -07:00
netinet LibC: Add in6addr_loopback and IN6ADDR_LOOPBACK_INIT constant 2021-12-28 11:00:51 +01:00
sys Kernel: Implement f_basetype in statvfs 2022-04-03 19:15:14 +02:00
dirent.h Kernel+LibC: Share definitions for dirent.h 2021-08-14 19:58:11 +02:00
errno.h Kernel: Add ESTALE errno code (stale network file handle) 2022-04-26 14:05:49 +02:00
fcntl.h Kernel+LibC+LibCore: Implement the unlinkat(2) syscall 2022-04-23 10:43:32 -07:00
futex.h Kernel+Userland: Remove global futexes 2021-08-17 01:21:47 +02:00
ifaddrs.h Kernel+LibC: Stub out getifaddrs() and freeifaddrs() 2021-12-22 00:02:36 -08:00
poll.h Kernel: Add support for the POLLWRBAND poll event 2021-12-05 12:53:29 +01:00
sched.h Kernel+LibC: Share definitions for sched.h 2021-08-14 19:58:11 +02:00
serenity.h Kernel/Profiling: Add profiling to read syscall 2022-02-14 11:38:13 +01:00
signal.h Kernel: Add the si_errno and si_band siginfo_t members 2021-12-22 22:53:56 +02:00
stdio.h Kernel+LibC: Share definitions for stdio.h 2021-08-14 19:58:11 +02:00
termios.h Kernel+LibC: Share definitions for termios.h 2021-08-14 19:58:11 +02:00
time.h Kernel+LibC: Share definitions for time.h and sys/stat.h 2021-08-14 19:58:11 +02:00
ucontext.h Kernel: Fill some siginfo and ucontext fields on SA_SIGINFO 2022-03-04 20:07:05 +01:00
unistd.h Kernel: Define MS_WXALLOWED mount option 2022-03-22 12:20:19 +01:00