1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Utils::resolve_hwaddr is not working.

This commit is contained in:
Matias Fontanini
2011-08-16 18:11:47 -03:00
parent 9734510cbd
commit 9b897db21f
3 changed files with 26 additions and 10 deletions

View File

@@ -80,13 +80,14 @@ namespace Tins {
/** \brief Resolves the hardware address for a given ip.
*
* \param iface The interface in which the packet will be sent.
* \param ip The ip to resolve, in integer format.
* \param buffer The buffer in which the host's hardware address will be stored.
* \param sender The sender to use to send and receive the ARP requests.(optional)
* \param sender The sender to use to send and receive the ARP requests.
* \return Returns true if the hardware address was resolved successfully,
* false otherwise.
*/
bool resolve_hwaddr(uint32_t ip, uint8_t *buffer, PacketSender *sender = 0);
bool resolve_hwaddr(const std::string &iface, uint32_t ip, uint8_t *buffer, PacketSender *sender);
/** \brief List all network interfaces.
*