1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-30 21:44:26 +01:00

ARP now uses HWAddress. Utils have been updated as well.

This commit is contained in:
Matias Fontanini
2012-08-07 17:28:46 -03:00
parent e64eb11f1c
commit ad11d3c244
5 changed files with 79 additions and 113 deletions

View File

@@ -33,6 +33,7 @@
#include <stdint.h>
#include "packetsender.h"
#include "ipaddress.h"
#include "hwaddress.h"
namespace Tins {
/** \brief Network utils namespace.
@@ -124,7 +125,7 @@ namespace Tins {
* false otherwise.
*/
bool resolve_hwaddr(const std::string &iface, IPv4Address ip,
uint8_t *buffer, PacketSender *sender);
HWAddress<6> *address, PacketSender *sender);
/** \brief List all network interfaces.
*
@@ -168,7 +169,7 @@ namespace Tins {
*
* \return bool indicating wether the operation was successfull.
*/
bool interface_hwaddr(const std::string &iface, uint8_t *buffer);
bool interface_hwaddr(const std::string &iface, HWAddress<6> *address);
/**
* \brief Lookup the interface identifier.