This commit is contained in:
Baptiste Wicht 2016-09-05 23:11:22 +02:00
parent b21d14c03b
commit 4bc88f79a4

View File

@ -22,7 +22,20 @@ void update_cache(uint64_t mac, network::ip::address ip);
bool is_mac_cached(uint64_t mac);
bool is_ip_cached(network::ip::address ip);
/*!
* \brief Returns the IP address of the given MAC address.
* The address must be in cache.
* \param ip The MAC address to look for in the cache
* \return The IP address of the MAC address
*/
network::ip::address get_ip(uint64_t mac);
/*!
* \brief Returns the MAC address of the given IP address.
* The address must be in cache.
* \param ip The IP address to look for in the cache
* \return The MAC address of the IP address
*/
uint64_t get_mac(network::ip::address ip);
uint64_t get_mac_force(network::interface_descriptor& interface, network::ip::address ip);