mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
Kernel: Add support for route flags
Previously the routing table did not store the route flags. This adds basic support and exposes them in the /proc directory so that a userspace caller can query the route and identify the type of each route.
This commit is contained in:
parent
210c3f24cd
commit
7a4e41f8f8
5 changed files with 12 additions and 8 deletions
|
@ -114,6 +114,7 @@ private:
|
|||
TRY(obj.add("gateway", gateway->view()));
|
||||
auto netmask = TRY(it.netmask.to_string());
|
||||
TRY(obj.add("genmask", netmask->view()));
|
||||
TRY(obj.add("flags", it.flags));
|
||||
TRY(obj.add("interface", it.adapter->name()));
|
||||
TRY(obj.finish());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue