30 #ifndef TINS_RESOLVE_UTILS_H 31 #define TINS_RESOLVE_UTILS_H 34 #include <tins/macros.h> 39 class NetworkInterface;
55 TINS_API IPv4Address
resolve_domain(
const std::string& to_resolve);
78 TINS_API HWAddress<6>
resolve_hwaddr(
const NetworkInterface& iface,
80 PacketSender& sender);
95 TINS_API HWAddress<6>
resolve_hwaddr(IPv4Address ip, PacketSender& sender);
100 #endif // TINS_RESOLVE_UTILS_H TINS_API HWAddress< 6 > resolve_hwaddr(const NetworkInterface &iface, IPv4Address ip, PacketSender &sender)
Resolves the hardware address for a given ip.
Definition: resolve_utils.cpp:97
The Tins namespace.
Definition: address_range.h:38
TINS_API IPv4Address resolve_domain(const std::string &to_resolve)
Resolves a domain name and returns its corresponding ip address.
TINS_API IPv6Address resolve_domain6(const std::string &to_resolve)
Resolves a domain name and returns its corresponding ip address.