1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-25 11:41:35 +01:00

Added another overload of Utils::resolv_hwaddr.

This commit is contained in:
Matias Fontanini
2013-04-23 15:19:48 -03:00
parent ec05a49cce
commit 7e85058ef1
2 changed files with 19 additions and 0 deletions

View File

@@ -117,6 +117,10 @@ HWAddress<6> resolve_hwaddr(const NetworkInterface &iface, IPv4Address ip, Packe
throw std::runtime_error("Could not resolve hardware address");
}
HWAddress<6> resolve_hwaddr(IPv4Address ip, PacketSender &sender) {
return resolve_hwaddr(sender.default_interface(), ip, sender);
}
bool gateway_from_ip(IPv4Address ip, IPv4Address &gw_addr) {
typedef std::vector<RouteEntry> entries_type;
entries_type entries;