1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Fixed compilation issues.

This commit is contained in:
Matias Fontanini
2011-08-16 13:50:32 -03:00
parent ee0b934b20
commit 80705ac249
3 changed files with 3 additions and 2 deletions

View File

@@ -29,6 +29,7 @@
#include <string>
#include <set>
#include <stdint.h>
#include "packetsender.h"
namespace Tins {
/** \brief Network utils namespace.

View File

@@ -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]);
}
}

View File

@@ -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() {