mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 20:28:11 +00:00
Kernel: Generalize the UpdateArp table to UpdateTable
We can use the same enum cases to apply to updates on different networking tables within the Kernel (i.e. a routing table)
This commit is contained in:
parent
03d38e3ab8
commit
0718b20df0
4 changed files with 9 additions and 9 deletions
|
@ -19,12 +19,12 @@ struct RoutingDecision {
|
|||
bool is_zero() const;
|
||||
};
|
||||
|
||||
enum class UpdateArp {
|
||||
enum class UpdateTable {
|
||||
Set,
|
||||
Delete,
|
||||
};
|
||||
|
||||
void update_arp_table(IPv4Address const&, MACAddress const&, UpdateArp update);
|
||||
void update_arp_table(IPv4Address const&, MACAddress const&, UpdateTable update);
|
||||
|
||||
enum class AllowUsingGateway {
|
||||
Yes,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue