mirror of
https://github.com/mfontanini/libtins
synced 2026-01-26 20:01:35 +01:00
Add TCP and Utils::resolve_hwaddress active tests
[ci skip]
This commit is contained in:
@@ -27,12 +27,26 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(__unix__) || (defined(__APPLE__) && defined(__MACH__))
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
#include "configuration.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
using Tins::NetworkInterface;
|
||||
|
||||
Configuration::Configuration() {
|
||||
#ifdef _WIN32
|
||||
current_platform_ = WINDOWS;
|
||||
#elif defined(BSD) || defined(__FreeBSD_kernel__)
|
||||
current_platform_ = BSD;
|
||||
#else
|
||||
current_platform_ = LINUX;
|
||||
#endif
|
||||
}
|
||||
|
||||
void Configuration::interface(const NetworkInterface& interface) {
|
||||
interface_ = interface;
|
||||
}
|
||||
@@ -57,3 +71,6 @@ uint16_t Configuration::destination_port() const {
|
||||
return destination_port_;
|
||||
}
|
||||
|
||||
Configuration::Platform Configuration::current_platform() const {
|
||||
return current_platform_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user