mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Allow disabling TCPIP classes
This commit is contained in:
@@ -13,6 +13,9 @@
|
||||
/* Use pcap_sendpacket to send l2 packets */
|
||||
#cmakedefine TINS_HAVE_PACKET_SENDER_PCAP_SENDPACKET
|
||||
|
||||
/* Have TCPIP classes */
|
||||
#cmakedefine TINS_HAVE_TCPIP
|
||||
|
||||
/* Have TCP ACK tracking */
|
||||
#cmakedefine TINS_HAVE_ACK_TRACKER
|
||||
|
||||
|
||||
@@ -30,10 +30,9 @@
|
||||
#ifndef TINS_TCP_IP_FLOW_H
|
||||
#define TINS_TCP_IP_FLOW_H
|
||||
|
||||
#include "../cxxstd.h"
|
||||
#include "../config.h"
|
||||
|
||||
// This classes use C++11 features
|
||||
#if TINS_IS_CXX11
|
||||
#ifdef TINS_HAVE_TCPIP
|
||||
|
||||
#include <vector>
|
||||
#include <array>
|
||||
@@ -331,6 +330,6 @@ private:
|
||||
} // TCPIP
|
||||
} // TINS
|
||||
|
||||
#endif // TINS_IS_CXX11
|
||||
#endif // TINS_HAVE_TCPIP
|
||||
#endif // TINS_TCP_IP_FLOW_H
|
||||
|
||||
|
||||
@@ -30,10 +30,9 @@
|
||||
#ifndef TINS_TCP_IP_STREAM_H
|
||||
#define TINS_TCP_IP_STREAM_H
|
||||
|
||||
#include "../cxxstd.h"
|
||||
#include "../config.h"
|
||||
|
||||
// This classes use C++11 features
|
||||
#if TINS_IS_CXX11
|
||||
#ifdef TINS_HAVE_TCPIP
|
||||
|
||||
#include <vector>
|
||||
#include <array>
|
||||
@@ -393,6 +392,6 @@ private:
|
||||
} // TCPIP
|
||||
} // Tins
|
||||
|
||||
#endif // TINS_IS_CXX11
|
||||
#endif // TINS_HAVE_TCPIP
|
||||
|
||||
#endif // TINS_TCP_IP_STREAM_H
|
||||
|
||||
@@ -30,10 +30,9 @@
|
||||
#ifndef TINS_TCP_IP_STREAM_FOLLOWER_H
|
||||
#define TINS_TCP_IP_STREAM_FOLLOWER_H
|
||||
|
||||
#include "../cxxstd.h"
|
||||
#include "../config.h"
|
||||
|
||||
// This classes use C++11 features
|
||||
#if TINS_IS_CXX11
|
||||
#ifdef TINS_HAVE_TCPIP
|
||||
|
||||
#include <map>
|
||||
#include "stream.h"
|
||||
@@ -210,6 +209,6 @@ private:
|
||||
} // TCPIP
|
||||
} // Tins
|
||||
|
||||
#endif // TINS_IS_CXX11
|
||||
#endif // TINS_HAVE_TCPIP
|
||||
|
||||
#endif // TINS_TCP_IP_STREAM_FOLLOWER_H
|
||||
|
||||
@@ -30,10 +30,9 @@
|
||||
#ifndef TINS_TCP_IP_STREAM_ID_H
|
||||
#define TINS_TCP_IP_STREAM_ID_H
|
||||
|
||||
#include "../cxxstd.h"
|
||||
#include "../config.h"
|
||||
|
||||
// This classes use C++11 features
|
||||
#if TINS_IS_CXX11
|
||||
#ifdef TINS_HAVE_TCPIP
|
||||
|
||||
#include <array>
|
||||
#include <stdint.h>
|
||||
@@ -100,6 +99,6 @@ struct StreamIdentifier {
|
||||
} // TCPIP
|
||||
} // Tins
|
||||
|
||||
#endif // TINS_IS_CXX11
|
||||
#endif // TINS_HAVE_TCPIP
|
||||
#endif // TINS_TCP_IP_STREAM_ID_H
|
||||
|
||||
|
||||
Reference in New Issue
Block a user