mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Fixed compilation issues.
This commit is contained in:
@@ -29,6 +29,7 @@
|
||||
#include <string>
|
||||
#include <set>
|
||||
#include <stdint.h>
|
||||
#include "packetsender.h"
|
||||
|
||||
namespace Tins {
|
||||
/** \brief Network utils namespace.
|
||||
|
||||
@@ -46,7 +46,7 @@ Tins::PacketSender::PacketSender(uint32_t recv_timeout) : _sockets(SOCKETS_END,
|
||||
Tins::PacketSender::~PacketSender() {
|
||||
for(unsigned i(0); i < _sockets.size(); ++i) {
|
||||
if(_sockets[i] != INVALID_RAW_SOCKET)
|
||||
::close(sockets[i]);
|
||||
::close(_sockets[i]);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ uint32_t Tins::Utils::resolve_ip(const string &to_resolve) {
|
||||
}
|
||||
|
||||
bool Tins::Utils::resolve_hwaddr(uint32_t ip, uint8_t *buffer, PacketSender *sender) {
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
set<string> Tins::Utils::network_interfaces() {
|
||||
|
||||
Reference in New Issue
Block a user