1
Fork 0
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:
brapru 2022-04-29 21:49:00 -04:00 committed by Andreas Kling
parent 863c14c4f4
commit 0866a0cd1e
3 changed files with 21 additions and 8 deletions

View file

@ -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;