1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:48:12 +00:00

Kernel: Add support for the MSG_DONTROUTE sys$sendmsg flag

This commit is contained in:
Idan Horowitz 2021-12-02 00:27:24 +02:00 committed by Andreas Kling
parent 1f16250de9
commit 5514d60d8d
5 changed files with 13 additions and 5 deletions

View file

@ -25,7 +25,13 @@ enum class UpdateArp {
};
void update_arp_table(IPv4Address const&, MACAddress const&, UpdateArp update);
RoutingDecision route_to(IPv4Address const& target, IPv4Address const& source, RefPtr<NetworkAdapter> const through = nullptr);
enum class AllowUsingGateway {
Yes,
No,
};
RoutingDecision route_to(IPv4Address const& target, IPv4Address const& source, RefPtr<NetworkAdapter> const through = nullptr, AllowUsingGateway = AllowUsingGateway::Yes);
MutexProtected<HashMap<IPv4Address, MACAddress>>& arp_table();