mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 10:45:57 +01:00
Added small_uint class.
This commit is contained in:
@@ -122,7 +122,7 @@ bool Utils::resolve_hwaddr(const NetworkInterface &iface, IPv4Address ip,
|
||||
std::auto_ptr<PDU> packet(ARP::make_arp_request(iface, ip, info.ip_addr, info.hw_addr));
|
||||
std::auto_ptr<PDU> response(sender->send_recv(packet.get()));
|
||||
if(response.get()) {
|
||||
ARP *arp_resp = response->find_inner_pdu<ARP>();
|
||||
ARP *arp_resp = response->find_pdu<ARP>();
|
||||
if(arp_resp)
|
||||
*address = arp_resp->sender_hw_addr();
|
||||
return arp_resp;
|
||||
|
||||
Reference in New Issue
Block a user