TAS
TCP Acceleration as an OS Service
|
IP routing. More...
![]() |
Functions | |
int | routing_init (void) |
int | routing_resolve (struct nicif_completion *comp, uint32_t ip, uint64_t *mac) |
IP routing.
int routing_init | ( | void | ) |
Initialize IP routing subsystem
Definition at line 48 of file routing.c.
References routing_table_entry::dest_ip, routing_table_entry::dest_mask, configuration::ip, config_route::ip, configuration::ip_prefix, config_route::ip_prefix, config_route::next, routing_table_entry::next_hop, config_route::next_hop_ip, and configuration::routes.
int routing_resolve | ( | struct nicif_completion * | comp, |
uint32_t | ip, | ||
uint64_t * | mac | ||
) |
Resolve IP address to MAC address using routing and ARP.
This function can either return success immediately, or asynchronously.
comp | Context for asynchronous return |
ip | IP address to be resolved |
mac | Pointer of memory location where destination MAC should be stored. |
Definition at line 89 of file routing.c.
References arp_request(), routing_table_entry::dest_ip, routing_table_entry::dest_mask, and routing_table_entry::next_hop.
Referenced by tcp_open().