1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-28 12:44:25 +01:00

Fixed some issues with Endian::change_endian triggered in OSX.

This commit is contained in:
Matias Fontanini
2012-11-29 21:30:13 -03:00
parent e2426b493e
commit 9bdee61e5b
6 changed files with 1625 additions and 1086 deletions

View File

@@ -55,6 +55,7 @@
#include "ip_address.h"
#include "ipv6_address.h"
#include "hw_address.h"
#include "internals.h"
namespace Tins {
class NetworkInterface;
@@ -250,27 +251,6 @@ namespace Tins {
}
#endif // WIN32
/**
* \cond
*/
namespace Internals {
void skip_line(std::istream &input);
bool from_hex(const std::string &str, uint32_t &result);
template<bool, typename>
struct enable_if {
};
template<typename T>
struct enable_if<true, T> {
typedef T type;
};
}
/**
* \endcond
*/
template <typename T>
struct is_pdu {
template <typename U>
@@ -372,7 +352,7 @@ void Tins::Utils::route_entries(ForwardIterator output) {
#else
template<class ForwardIterator>
void Tins::Utils::route_entries(ForwardIterator output) {
using namespace Utils::Internals;
using namespace Tins::Internals;
std::ifstream input("/proc/net/route");
std::string destination, mask, gw;
uint32_t dummy;