mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:37:36 +00:00
Kernel+route: Support global routing table deletion
This commit is contained in:
parent
863c14c4f4
commit
0866a0cd1e
3 changed files with 21 additions and 8 deletions
|
@ -179,11 +179,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
if (action_add)
|
||||
TRY(Core::System::ioctl(fd, SIOCADDRT, &rt));
|
||||
|
||||
// FIXME: Add support for route deletion.
|
||||
if (action_del) {
|
||||
warnln("Route deletion currently not implemented.");
|
||||
return 1;
|
||||
}
|
||||
if (action_del)
|
||||
TRY(Core::System::ioctl(fd, SIOCDELRT, &rt));
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue