mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 10:32:43 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			310 B
		
	
	
	
		
			C
		
	
	
	
	
	
| #pragma once
 | |
| 
 | |
| #include <Kernel/Net/NetworkAdapter.h>
 | |
| 
 | |
| struct RoutingDecision
 | |
| {
 | |
|     WeakPtr<NetworkAdapter> adapter;
 | |
|     MACAddress next_hop;
 | |
| 
 | |
|     bool is_zero() const;
 | |
| };
 | |
| 
 | |
| RoutingDecision route_to(const IPv4Address& target, const IPv4Address& source);
 | |
| 
 | |
| Lockable<HashMap<IPv4Address, MACAddress>>& arp_table();
 | 
