From 9962381fc7594c9cacfb6ea1409a4b84621ed796 Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sat, 9 Nov 2013 14:41:08 -0300 Subject: [PATCH] Added the --disable-dot11 configure switch. --- configure | 15 + configure.ac | 9 + include/config.h.in | 3 + include/crypto.h | 5 +- include/dot11.h | 4 +- include/dot11/dot11_assoc.h | 4 +- include/dot11/dot11_auth.h | 4 +- include/dot11/dot11_base.h | 4 +- include/dot11/dot11_beacon.h | 4 +- include/dot11/dot11_control.h | 5 +- include/dot11/dot11_data.h | 4 +- include/dot11/dot11_mgmt.h | 5 +- include/dot11/dot11_probe.h | 5 +- include/exceptions.h | 14 +- include/handshake_capturer.h | 4 +- include/radiotap.h | 4 +- include/sniffer.h | 7 - src/crypto.cpp | 5 + src/dot11/dot11_assoc.cpp | 8 +- src/dot11/dot11_auth.cpp | 8 +- src/dot11/dot11_base.cpp | 8 +- src/dot11/dot11_beacon.cpp | 8 +- src/dot11/dot11_control.cpp | 8 +- src/dot11/dot11_data.cpp | 6 +- src/dot11/dot11_mgmt.cpp | 8 +- src/dot11/dot11_probe.cpp | 9 +- src/handshake_capturer.cpp | 5 + src/internals.cpp | 52 +- src/packet_sender.cpp | 14 +- src/ppi.cpp | 13 +- src/radiotap.cpp | 7 +- src/sniffer.cpp | 28 +- tests/depends.d | 1846 ++----------------------- tests/src/dot11/ack.cpp | 6 +- tests/src/dot11/assoc_request.cpp | 6 +- tests/src/dot11/assoc_response.cpp | 6 +- tests/src/dot11/authentication.cpp | 6 +- tests/src/dot11/beacon.cpp | 7 +- tests/src/dot11/block_ack_request.cpp | 7 +- tests/src/dot11/cfend.cpp | 6 + tests/src/dot11/cfendack.cpp | 5 + tests/src/dot11/data.cpp | 6 + tests/src/dot11/deauthentication.cpp | 6 +- tests/src/dot11/disassoc.cpp | 7 +- tests/src/dot11/dot11.cpp | 6 +- tests/src/dot11/probe_request.cpp | 6 +- tests/src/dot11/probe_response.cpp | 7 +- tests/src/dot11/pspoll.cpp | 6 + tests/src/dot11/reassoc_request.cpp | 7 +- tests/src/dot11/reassoc_response.cpp | 6 +- tests/src/dot11/rts.cpp | 6 + tests/src/ppi.cpp | 7 +- tests/src/radiotap.cpp | 7 +- tests/src/tcp_stream.cpp | 1 + tests/src/wep_decrypt.cpp | 6 + tests/src/wpa2_decrypt.cpp | 6 + 56 files changed, 465 insertions(+), 1807 deletions(-) diff --git a/configure b/configure index a958bc0..1535da0 100755 --- a/configure +++ b/configure @@ -775,6 +775,7 @@ enable_maintainer_mode with_pcap_include_path with_pcap_lib_path enable_c__11 +enable_dot11 enable_wpa2 ' ac_precious_vars='build_alias @@ -1419,6 +1420,7 @@ Optional Features: --disable-maintainer-mode disable make rules and dependencies not useful (and sometimes confusing) to the casual installer --enable-c++11 enable C++11 features + --disable-dot11 disable IEEE 802.11 support --disable-wpa2 disable WPA2 decryption features Optional Packages: @@ -15328,6 +15330,19 @@ $as_echo "#define HAVE_CXX11 1" >>confdefs.h fi +fi + + +# Check whether --enable-dot11 was given. +if test "${enable_dot11+set}" = set; then : + enableval=$enable_dot11; +else + + +$as_echo "#define HAVE_DOT11 1" >>confdefs.h + + + fi diff --git a/configure.ac b/configure.ac index a9ebe7a..0850670 100644 --- a/configure.ac +++ b/configure.ac @@ -44,6 +44,15 @@ AC_ARG_ENABLE( [AX_CXX_COMPILE_STDCXX_11(noext)] ) +AC_ARG_ENABLE( + dot11, + [ --disable-dot11 disable IEEE 802.11 support], + [], + [ + AC_DEFINE([HAVE_DOT11], 1, Have IEEE 802.11 support) + ] +) + AC_ARG_ENABLE( wpa2, [ --disable-wpa2 disable WPA2 decryption features], diff --git a/include/config.h.in b/include/config.h.in index 1898be8..023aea3 100644 --- a/include/config.h.in +++ b/include/config.h.in @@ -6,6 +6,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_DLFCN_H +/* Have IEEE 802.11 support */ +#undef HAVE_DOT11 + /* Define to 1 if you have the header file. */ #undef HAVE_INTTYPES_H diff --git a/include/crypto.h b/include/crypto.h index 6b55855..c057805 100644 --- a/include/crypto.h +++ b/include/crypto.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_CRYPTO_H +#include "config.h" + +#if !defined(TINS_CRYPTO_H) && defined(HAVE_DOT11) #define TINS_CRYPTO_H #include @@ -38,7 +40,6 @@ #include "snap.h" #include "rawpdu.h" #include "handshake_capturer.h" -#include "config.h" namespace Tins { class PDU; diff --git a/include/dot11.h b/include/dot11.h index ac89a79..1337fa4 100644 --- a/include/dot11.h +++ b/include/dot11.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT_11 +#include "config.h" + +#if !defined(TINS_DOT_11) && defined(HAVE_DOT11) #define TINS_DOT_11 #include "dot11/dot11_base.h" diff --git a/include/dot11/dot11_assoc.h b/include/dot11/dot11_assoc.h index d72631e..77979d1 100644 --- a/include/dot11/dot11_assoc.h +++ b/include/dot11/dot11_assoc.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT11_DOT11_ASSOC_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_ASSOC_H) && defined(HAVE_DOT11) #define TINS_DOT11_DOT11_ASSOC_H #include "../dot11/dot11_mgmt.h" diff --git a/include/dot11/dot11_auth.h b/include/dot11/dot11_auth.h index 8579868..494636f 100644 --- a/include/dot11/dot11_auth.h +++ b/include/dot11/dot11_auth.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT11_DOT11_AUTH_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_AUTH_H) && defined(HAVE_DOT11) #define TINS_DOT11_DOT11_AUTH_H #include "../dot11/dot11_mgmt.h" diff --git a/include/dot11/dot11_base.h b/include/dot11/dot11_base.h index 085906a..bdb9bd4 100644 --- a/include/dot11/dot11_base.h +++ b/include/dot11/dot11_base.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT11_DOT11_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_H) && defined(HAVE_DOT11) #define TINS_DOT11_DOT11_H #include diff --git a/include/dot11/dot11_beacon.h b/include/dot11/dot11_beacon.h index c8d299b..b3f6499 100644 --- a/include/dot11/dot11_beacon.h +++ b/include/dot11/dot11_beacon.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT11_DOT11_BEACON_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_BEACON_H) && defined(HAVE_DOT11) #define TINS_DOT11_DOT11_BEACON_H #include "../dot11/dot11_mgmt.h" diff --git a/include/dot11/dot11_control.h b/include/dot11/dot11_control.h index 5be4026..dee4af9 100644 --- a/include/dot11/dot11_control.h +++ b/include/dot11/dot11_control.h @@ -27,7 +27,10 @@ * */ -#ifndef TINS_DOT11_DOT11_CONTROL_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_CONTROL_H) && defined(HAVE_DOT11) + #define TINS_DOT11_DOT11_CONTROL_H #include "../dot11/dot11_base.h" diff --git a/include/dot11/dot11_data.h b/include/dot11/dot11_data.h index e11a489..dbf4e26 100644 --- a/include/dot11/dot11_data.h +++ b/include/dot11/dot11_data.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_DOT11_DOT11_DATA_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_DATA_H) && defined(HAVE_DOT11) #define TINS_DOT11_DOT11_DATA_H #include "../dot11/dot11_base.h" diff --git a/include/dot11/dot11_mgmt.h b/include/dot11/dot11_mgmt.h index 4292c8a..18e1903 100644 --- a/include/dot11/dot11_mgmt.h +++ b/include/dot11/dot11_mgmt.h @@ -27,7 +27,10 @@ * */ -#ifndef TINS_DOT11_DOT11_MGMT_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_MGMT_H) && defined(HAVE_DOT11) + #define TINS_DOT11_DOT11_MGMT_H #include diff --git a/include/dot11/dot11_probe.h b/include/dot11/dot11_probe.h index 05b6bc1..7c1c8c2 100644 --- a/include/dot11/dot11_probe.h +++ b/include/dot11/dot11_probe.h @@ -27,7 +27,10 @@ * */ -#ifndef TINS_DOT11_DOT11_PROBE_H +#include "config.h" + +#if !defined(TINS_DOT11_DOT11_PROBE_H) && defined(HAVE_DOT11) + #define TINS_DOT11_DOT11_PROBE_H #include "../dot11/dot11_mgmt.h" diff --git a/include/exceptions.h b/include/exceptions.h index 338ce48..6963082 100644 --- a/include/exceptions.h +++ b/include/exceptions.h @@ -155,6 +155,18 @@ public: return "Bad Tins cast"; } }; -} + +/** + * \brief Exception thrown when sniffing a protocol that + * has been disabled at compile time. + */ +class protocol_disabled : public std::exception { +public: + const char *what() const throw() { + return "Protocol disabled"; + } +}; + +} // Tins #endif // TINS_EXCEPTIONS_H diff --git a/include/handshake_capturer.h b/include/handshake_capturer.h index e54bc71..a916298 100644 --- a/include/handshake_capturer.h +++ b/include/handshake_capturer.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_HANDSHAKE_CAPTURER_H +#include "config.h" + +#if !defined(TINS_HANDSHAKE_CAPTURER_H) && defined(HAVE_DOT11) #define TINS_HANDSHAKE_CAPTURER_H #include diff --git a/include/radiotap.h b/include/radiotap.h index f37947d..5258e16 100644 --- a/include/radiotap.h +++ b/include/radiotap.h @@ -27,7 +27,9 @@ * */ -#ifndef TINS_RADIOTAP_H +#include "config.h" + +#if !defined(TINS_RADIOTAP_H) && defined(HAVE_DOT11) #define TINS_RADIOTAP_H #include "macros.h" diff --git a/include/sniffer.h b/include/sniffer.h index fe722f3..005c8e6 100644 --- a/include/sniffer.h +++ b/include/sniffer.h @@ -38,17 +38,10 @@ #include #include #include "pdu.h" -#include "ethernetII.h" -#include "radiotap.h" #include "packet.h" -#include "loopback.h" -#include "dot11/dot11_base.h" -#include "dot3.h" -#include "sll.h" #include "cxxstd.h" #include "exceptions.h" #include "internals.h" -#include "ppi.h" namespace Tins { class SnifferIterator; diff --git a/src/crypto.cpp b/src/crypto.cpp index 4e0822a..546c0ab 100644 --- a/src/crypto.cpp +++ b/src/crypto.cpp @@ -28,6 +28,9 @@ */ #include "crypto.h" + +#ifdef HAVE_DOT11 + #ifdef HAVE_WPA2_DECRYPTION #include #include @@ -542,3 +545,5 @@ bool WPA2Decrypter::decrypt(PDU &pdu) { #endif // HAVE_WPA2_DECRYPTION } // namespace Crypto } // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_assoc.cpp b/src/dot11/dot11_assoc.cpp index b236c2f..7c3fa8f 100644 --- a/src/dot11/dot11_assoc.cpp +++ b/src/dot11/dot11_assoc.cpp @@ -27,9 +27,11 @@ * */ +#include "dot11/dot11_assoc.h" +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_assoc.h" namespace Tins { /* Diassoc */ @@ -246,4 +248,6 @@ uint32_t Dot11ReAssocResponse::write_fixed_parameters(uint8_t *buffer, uint32_t memcpy(buffer, &this->_body, sz); return sz; } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_auth.cpp b/src/dot11/dot11_auth.cpp index c46d97d..2e9473d 100644 --- a/src/dot11/dot11_auth.cpp +++ b/src/dot11/dot11_auth.cpp @@ -27,9 +27,11 @@ * */ +#include "dot11/dot11_auth.h" +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_auth.h" namespace Tins { /* Auth */ @@ -120,4 +122,6 @@ uint32_t Dot11Deauthentication::write_fixed_parameters(uint8_t *buffer, uint32_t memcpy(buffer, &this->_body, sz); return sz; } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_base.cpp b/src/dot11/dot11_base.cpp index 18347ce..3a5d0a3 100644 --- a/src/dot11/dot11_base.cpp +++ b/src/dot11/dot11_base.cpp @@ -27,6 +27,9 @@ * */ +#include "dot11/dot11_base.h" + +#ifdef HAVE_DOT11 #include #include @@ -35,7 +38,6 @@ #include #include "macros.h" #include "exceptions.h" -#include "dot11/dot11_base.h" #ifndef WIN32 #if defined(__FreeBSD_kernel__) || defined(BSD) || defined(__APPLE__) @@ -272,4 +274,6 @@ Dot11 *Dot11::from_bytes(const uint8_t *buffer, uint32_t total_sz) { ret = new Dot11(buffer, total_sz); return ret; } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_beacon.cpp b/src/dot11/dot11_beacon.cpp index 14d4397..40e85cf 100644 --- a/src/dot11/dot11_beacon.cpp +++ b/src/dot11/dot11_beacon.cpp @@ -27,9 +27,11 @@ * */ +#include "dot11/dot11_beacon.h" +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_beacon.h" namespace Tins { /* Dot11Beacon */ @@ -76,4 +78,6 @@ uint32_t Dot11Beacon::write_fixed_parameters(uint8_t *buffer, uint32_t total_sz) std::memcpy(buffer, &this->_body, sz); return sz; } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_control.cpp b/src/dot11/dot11_control.cpp index 1faa8a4..a6d104d 100644 --- a/src/dot11/dot11_control.cpp +++ b/src/dot11/dot11_control.cpp @@ -27,9 +27,11 @@ * */ +#include "dot11/dot11_control.h" +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_control.h" namespace Tins { /* Dot11Control */ @@ -280,4 +282,6 @@ uint32_t Dot11BlockAck::write_ext_header(uint8_t *buffer, uint32_t total_sz) { uint32_t Dot11BlockAck::header_size() const { return Dot11ControlTA::header_size() + sizeof(_start_sequence) + sizeof(_start_sequence) + sizeof(_bitmap); } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_data.cpp b/src/dot11/dot11_data.cpp index 4db8cb2..39b81d4 100644 --- a/src/dot11/dot11_data.cpp +++ b/src/dot11/dot11_data.cpp @@ -27,9 +27,11 @@ * */ +#include "dot11/dot11_data.h" +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_data.h" #include "rawpdu.h" #include "snap.h" @@ -180,3 +182,5 @@ uint32_t Dot11QoSData::write_fixed_parameters(uint8_t *buffer, uint32_t total_sz return sz; } } // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_mgmt.cpp b/src/dot11/dot11_mgmt.cpp index d4d0281..58dfac8 100644 --- a/src/dot11/dot11_mgmt.cpp +++ b/src/dot11/dot11_mgmt.cpp @@ -27,8 +27,10 @@ * */ -#include #include "dot11/dot11_mgmt.h" +#ifdef HAVE_DOT11 + +#include #include "rsn_information.h" namespace Tins { @@ -638,4 +640,6 @@ Dot11ManagementFrame::vendor_specific_type ); } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/dot11/dot11_probe.cpp b/src/dot11/dot11_probe.cpp index 0cb328d..e1121c3 100644 --- a/src/dot11/dot11_probe.cpp +++ b/src/dot11/dot11_probe.cpp @@ -27,9 +27,12 @@ * */ +#include "dot11/dot11_probe.h" + +#ifdef HAVE_DOT11 + #include #include -#include "dot11/dot11_probe.h" namespace Tins { /* Probe Request */ @@ -94,4 +97,6 @@ uint32_t Dot11ProbeResponse::write_fixed_parameters(uint8_t *buffer, uint32_t to memcpy(buffer, &this->_body, sz); return sz; } -} // namespace Tins \ No newline at end of file +} // namespace Tins + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/handshake_capturer.cpp b/src/handshake_capturer.cpp index fa411a1..dfec2f4 100644 --- a/src/handshake_capturer.cpp +++ b/src/handshake_capturer.cpp @@ -28,6 +28,9 @@ */ #include "handshake_capturer.h" + +#ifdef HAVE_DOT11 + #include "dot11/dot11_data.h" namespace Tins { @@ -93,3 +96,5 @@ namespace Tins { return false; } } // namespace Tins; + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/internals.cpp b/src/internals.cpp index d2dc7bb..837fab2 100644 --- a/src/internals.cpp +++ b/src/internals.cpp @@ -146,33 +146,35 @@ Tins::PDU *pdu_from_flag(PDU::PDUType type, const uint8_t *buffer, uint32_t size return new Tins::ARP(buffer, size); case Tins::PDU::IEEE802_3: return new Tins::IEEE802_3(buffer, size); - case Tins::PDU::RADIOTAP: - return new Tins::RadioTap(buffer, size); case Tins::PDU::PPPOE: return new Tins::PPPoE(buffer, size); - case Tins::PDU::DOT11: - case Tins::PDU::DOT11_ACK: - case Tins::PDU::DOT11_ASSOC_REQ: - case Tins::PDU::DOT11_ASSOC_RESP: - case Tins::PDU::DOT11_AUTH: - case Tins::PDU::DOT11_BEACON: - case Tins::PDU::DOT11_BLOCK_ACK: - case Tins::PDU::DOT11_BLOCK_ACK_REQ: - case Tins::PDU::DOT11_CF_END: - case Tins::PDU::DOT11_DATA: - case Tins::PDU::DOT11_CONTROL: - case Tins::PDU::DOT11_DEAUTH: - case Tins::PDU::DOT11_DIASSOC: - case Tins::PDU::DOT11_END_CF_ACK: - case Tins::PDU::DOT11_MANAGEMENT: - case Tins::PDU::DOT11_PROBE_REQ: - case Tins::PDU::DOT11_PROBE_RESP: - case Tins::PDU::DOT11_PS_POLL: - case Tins::PDU::DOT11_REASSOC_REQ: - case Tins::PDU::DOT11_REASSOC_RESP: - case Tins::PDU::DOT11_RTS: - case Tins::PDU::DOT11_QOS_DATA: - return Tins::Dot11::from_bytes(buffer, size); + #ifdef HAVE_DOT11 + case Tins::PDU::RADIOTAP: + return new Tins::RadioTap(buffer, size); + case Tins::PDU::DOT11: + case Tins::PDU::DOT11_ACK: + case Tins::PDU::DOT11_ASSOC_REQ: + case Tins::PDU::DOT11_ASSOC_RESP: + case Tins::PDU::DOT11_AUTH: + case Tins::PDU::DOT11_BEACON: + case Tins::PDU::DOT11_BLOCK_ACK: + case Tins::PDU::DOT11_BLOCK_ACK_REQ: + case Tins::PDU::DOT11_CF_END: + case Tins::PDU::DOT11_DATA: + case Tins::PDU::DOT11_CONTROL: + case Tins::PDU::DOT11_DEAUTH: + case Tins::PDU::DOT11_DIASSOC: + case Tins::PDU::DOT11_END_CF_ACK: + case Tins::PDU::DOT11_MANAGEMENT: + case Tins::PDU::DOT11_PROBE_REQ: + case Tins::PDU::DOT11_PROBE_RESP: + case Tins::PDU::DOT11_PS_POLL: + case Tins::PDU::DOT11_REASSOC_REQ: + case Tins::PDU::DOT11_REASSOC_RESP: + case Tins::PDU::DOT11_RTS: + case Tins::PDU::DOT11_QOS_DATA: + return Tins::Dot11::from_bytes(buffer, size); + #endif // HAVE_DOT11 default: return 0; }; diff --git a/src/packet_sender.cpp b/src/packet_sender.cpp index e3cd246..741a9a0 100644 --- a/src/packet_sender.cpp +++ b/src/packet_sender.cpp @@ -235,12 +235,14 @@ void PacketSender::send(PDU &pdu, const NetworkInterface &iface) { case PDU::ETHERNET_II: send(pdu, iface); break; - case PDU::DOT11: - send(pdu, iface); - break; - case PDU::RADIOTAP: - send(pdu, iface); - break; + #ifdef HAVE_DOT11 + case PDU::DOT11: + send(pdu, iface); + break; + case PDU::RADIOTAP: + send(pdu, iface); + break; + #endif // HAVE_DOT11 case PDU::IEEE802_3: send(pdu, iface); break; diff --git a/src/ppi.cpp b/src/ppi.cpp index 52a989f..71e6a2e 100644 --- a/src/ppi.cpp +++ b/src/ppi.cpp @@ -41,6 +41,7 @@ #include "sll.h" #include "ppi.h" #include "internals.h" +#include "exceptions.h" namespace Tins { PPI::PPI(const uint8_t *buffer, uint32_t total_sz) { @@ -61,7 +62,11 @@ PPI::PPI(const uint8_t *buffer, uint32_t total_sz) { if(total_sz > 0) { switch(dlt()) { case DLT_IEEE802_11: - inner_pdu(Dot11::from_bytes(buffer, total_sz)); + #ifdef HAVE_DOT11 + inner_pdu(Dot11::from_bytes(buffer, total_sz)); + #else + throw protocol_disabled(); + #endif break; case DLT_EN10MB: if(Internals::is_dot3(buffer, total_sz)) @@ -70,7 +75,11 @@ PPI::PPI(const uint8_t *buffer, uint32_t total_sz) { inner_pdu(new EthernetII(buffer, total_sz)); break; case DLT_IEEE802_11_RADIO: - inner_pdu(new RadioTap(buffer, total_sz)); + #ifdef HAVE_DOT11 + inner_pdu(new RadioTap(buffer, total_sz)); + #else + throw protocol_disabled(); + #endif break; case DLT_NULL: inner_pdu(new Loopback(buffer, total_sz)); diff --git a/src/radiotap.cpp b/src/radiotap.cpp index 063a38a..80beed1 100644 --- a/src/radiotap.cpp +++ b/src/radiotap.cpp @@ -27,6 +27,10 @@ * */ +#include "radiotap.h" + +#ifdef HAVE_DOT11 + #include #ifdef TINS_DEBUG #include @@ -41,7 +45,6 @@ #endif #include #endif -#include "radiotap.h" #include "dot11/dot11_base.h" #include "utils.h" #include "packet_sender.h" @@ -385,3 +388,5 @@ void RadioTap::write_serialization(uint8_t *buffer, uint32_t total_sz, const PDU } } } + +#endif // HAVE_DOT11 \ No newline at end of file diff --git a/src/sniffer.cpp b/src/sniffer.cpp index 81e76eb..cedef83 100644 --- a/src/sniffer.cpp +++ b/src/sniffer.cpp @@ -29,7 +29,13 @@ #include #include "sniffer.h" - +#include "dot11/dot11_base.h" +#include "ethernetII.h" +#include "radiotap.h" +#include "loopback.h" +#include "dot3.h" +#include "sll.h" +#include "ppi.h" using std::string; using std::runtime_error; @@ -92,6 +98,7 @@ void sniff_loop_eth_handler(u_char *user, const struct pcap_pkthdr *h, const u_c data->pdu = safe_alloc((const uint8_t*)bytes, h->caplen); } +#ifdef HAVE_DOT11 void sniff_loop_dot11_handler(u_char *user, const struct pcap_pkthdr *h, const u_char *bytes) { sniff_data *data = (sniff_data*)user; data->packet_processed = true; @@ -103,6 +110,7 @@ void sniff_loop_dot11_handler(u_char *user, const struct pcap_pkthdr *h, const u } } +#endif PtrPacket BaseSniffer::next_packet() { sniff_data data; @@ -110,10 +118,20 @@ PtrPacket BaseSniffer::next_packet() { pcap_handler handler = 0; if(iface_type == DLT_EN10MB) handler = sniff_loop_eth_handler; - else if(iface_type == DLT_IEEE802_11_RADIO) - handler = &sniff_loop_handler; - else if(iface_type == DLT_IEEE802_11) - handler = sniff_loop_dot11_handler; + else if(iface_type == DLT_IEEE802_11_RADIO) { + #ifdef HAVE_DOT11 + handler = &sniff_loop_handler; + #else + throw protocol_disabled(); + #endif + } + else if(iface_type == DLT_IEEE802_11) { + #ifdef HAVE_DOT11 + handler = sniff_loop_dot11_handler; + #else + throw protocol_disabled(); + #endif + } else if(iface_type == DLT_LOOP) handler = &sniff_loop_handler; else if(iface_type == DLT_LINUX_SLL) diff --git a/tests/depends.d b/tests/depends.d index 9a0fa81..1219d4e 100644 --- a/tests/depends.d +++ b/tests/depends.d @@ -85,86 +85,12 @@ ../include/hw_address.h: ../include/exceptions.h: -../src/crypto.o: ../src/crypto.cpp ../include/crypto.h ../include/utils.h \ - ../include/macros.h ../include/ip_address.h ../include/cxxstd.h \ - ../include/ipv6_address.h ../include/hw_address.h ../include/internals.h \ - ../include/constants.h ../include/pdu.h ../include/exceptions.h \ - ../include/snap.h ../include/endianness.h ../include/small_uint.h \ - ../include/rawpdu.h ../include/handshake_capturer.h ../include/eapol.h \ - ../include/config.h ../include/dot11/dot11_data.h \ - ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h ../include/dot11/dot11_beacon.h \ - ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h +../src/crypto.o: ../src/crypto.cpp ../include/crypto.h \ + ../include/config.h ../include/crypto.h: -../include/utils.h: - -../include/macros.h: - -../include/ip_address.h: - -../include/cxxstd.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: - -../include/pdu.h: - -../include/exceptions.h: - -../include/snap.h: - -../include/endianness.h: - -../include/small_uint.h: - -../include/rawpdu.h: - -../include/handshake_capturer.h: - -../include/eapol.h: - ../include/config.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/dot11_beacon.h: - -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: ../src/dhcp.o: ../src/dhcp.cpp ../include/endianness.h \ ../include/macros.h ../include/dhcp.h ../include/bootp.h \ ../include/pdu.h ../include/cxxstd.h ../include/exceptions.h \ @@ -261,375 +187,53 @@ ../include/exceptions.h: ../src/dot11/dot11_assoc.o: ../src/dot11/dot11_assoc.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: +../include/config.h: ../src/dot11/dot11_auth.o: ../src/dot11/dot11_auth.cpp \ - ../include/dot11/dot11_auth.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h + ../include/dot11/dot11_auth.h ../include/config.h ../include/dot11/dot11_auth.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: +../include/config.h: ../src/dot11/dot11_base.o: ../src/dot11/dot11_base.cpp \ - ../include/macros.h ../include/exceptions.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../macros.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../exceptions.h ../include/dot11/../pdu_option.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../endianness.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../macros.h ../include/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_data.h \ - ../include/dot11/../dot11/dot11_base.h ../include/dot11/dot11_mgmt.h \ - ../include/dot11/dot11_beacon.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/dot11_assoc.h ../include/dot11/dot11_auth.h \ - ../include/dot11/dot11_probe.h ../include/dot11/dot11_control.h \ - ../include/rawpdu.h ../include/pdu.h ../include/rsn_information.h \ - ../include/endianness.h ../include/packet_sender.h \ - ../include/network_interface.h ../include/hw_address.h \ - ../include/ip_address.h ../include/cxxstd.h ../include/macros.h \ - ../include/snap.h ../include/small_uint.h - -../include/macros.h: - -../include/exceptions.h: + ../include/dot11/dot11_base.h ../include/config.h ../include/dot11/dot11_base.h: -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: - -../include/dot11/dot11_beacon.h: - -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/dot11_assoc.h: - -../include/dot11/dot11_auth.h: - -../include/dot11/dot11_probe.h: - -../include/dot11/dot11_control.h: - -../include/rawpdu.h: - -../include/pdu.h: - -../include/rsn_information.h: - -../include/endianness.h: - -../include/packet_sender.h: - -../include/network_interface.h: - -../include/hw_address.h: - -../include/ip_address.h: - -../include/cxxstd.h: - -../include/macros.h: - -../include/snap.h: - -../include/small_uint.h: +../include/config.h: ../src/dot11/dot11_beacon.o: ../src/dot11/dot11_beacon.cpp \ - ../include/dot11/dot11_beacon.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h + ../include/dot11/dot11_beacon.h ../include/config.h ../include/dot11/dot11_beacon.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: +../include/config.h: ../src/dot11/dot11_control.o: ../src/dot11/dot11_control.cpp \ - ../include/dot11/dot11_control.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h ../include/dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h + ../include/dot11/dot11_control.h ../include/config.h ../include/dot11/dot11_control.h: -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: +../include/config.h: ../src/dot11/dot11_data.o: ../src/dot11/dot11_data.cpp \ - ../include/dot11/dot11_data.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h ../include/dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h ../include/rawpdu.h \ - ../include/pdu.h ../include/snap.h ../include/macros.h \ - ../include/endianness.h ../include/small_uint.h + ../include/dot11/dot11_data.h ../include/config.h ../include/dot11/dot11_data.h: -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -../include/rawpdu.h: - -../include/pdu.h: - -../include/snap.h: - -../include/macros.h: - -../include/endianness.h: - -../include/small_uint.h: +../include/config.h: ../src/dot11/dot11_mgmt.o: ../src/dot11/dot11_mgmt.cpp \ - ../include/dot11/dot11_mgmt.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h ../include/dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h ../include/rsn_information.h \ - ../include/endianness.h + ../include/dot11/dot11_mgmt.h ../include/config.h ../include/dot11/dot11_mgmt.h: -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -../include/rsn_information.h: - -../include/endianness.h: +../include/config.h: ../src/dot11/dot11_probe.o: ../src/dot11/dot11_probe.cpp \ - ../include/dot11/dot11_probe.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h + ../include/dot11/dot11_probe.h ../include/config.h ../include/dot11/dot11_probe.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: +../include/config.h: ../src/dot1q.o: ../src/dot1q.cpp ../include/dot1q.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/small_uint.h ../include/internals.h \ @@ -763,57 +367,11 @@ ../include/exceptions.h: ../src/handshake_capturer.o: ../src/handshake_capturer.cpp \ - ../include/handshake_capturer.h ../include/hw_address.h \ - ../include/cxxstd.h ../include/eapol.h ../include/pdu.h \ - ../include/macros.h ../include/exceptions.h ../include/small_uint.h \ - ../include/endianness.h ../include/dot11/dot11_data.h \ - ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h + ../include/handshake_capturer.h ../include/config.h ../include/handshake_capturer.h: -../include/hw_address.h: - -../include/cxxstd.h: - -../include/eapol.h: - -../include/pdu.h: - -../include/macros.h: - -../include/exceptions.h: - -../include/small_uint.h: - -../include/endianness.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: +../include/config.h: ../src/icmp.o: ../src/icmp.cpp ../include/icmp.h ../include/macros.h \ ../include/pdu.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/rawpdu.h ../include/utils.h \ @@ -897,10 +455,7 @@ ../include/ip.h ../include/small_uint.h ../include/endianness.h \ ../include/ip_address.h ../include/pdu_option.h ../include/ethernetII.h \ ../include/ieee802_3.h ../include/dot3.h ../include/radiotap.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ + ../include/config.h ../include/dot11/dot11_base.h ../include/config.h \ ../include/ipv6.h ../include/ipv6_address.h ../include/tcp.h \ ../include/udp.h ../include/ipsec.h ../include/icmp.h \ ../include/icmpv6.h ../include/arp.h ../include/eapol.h \ @@ -940,21 +495,11 @@ ../include/radiotap.h: +../include/config.h: + ../include/dot11/dot11_base.h: -../include/dot11/../pdu.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: +../include/config.h: ../include/ipv6.h: @@ -1265,13 +810,9 @@ ../include/macros.h ../include/pdu.h ../include/exceptions.h \ ../include/macros.h ../include/network_interface.h \ ../include/ethernetII.h ../include/pdu.h ../include/endianness.h \ - ../include/radiotap.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../pdu_option.h \ - ../include/dot11/../exceptions.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/ieee802_3.h ../include/dot3.h ../include/internals.h \ - ../include/constants.h + ../include/radiotap.h ../include/config.h ../include/dot11/dot11_base.h \ + ../include/config.h ../include/ieee802_3.h ../include/dot3.h \ + ../include/internals.h ../include/constants.h ../include/packet_sender.h: @@ -1301,23 +842,11 @@ ../include/radiotap.h: +../include/config.h: + ../include/dot11/dot11_base.h: -../include/dot11/../pdu.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: +../include/config.h: ../include/ieee802_3.h: @@ -1381,38 +910,16 @@ ../include/ip_address.h: ../src/ppi.o: ../src/ppi.cpp ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../macros.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../exceptions.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot3.h ../include/macros.h ../include/pdu.h \ + ../include/config.h ../include/dot3.h ../include/macros.h \ + ../include/pdu.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/hw_address.h ../include/ethernetII.h \ - ../include/radiotap.h ../include/loopback.h ../include/sll.h \ - ../include/ppi.h ../include/small_uint.h ../include/internals.h \ - ../include/constants.h + ../include/radiotap.h ../include/config.h ../include/loopback.h \ + ../include/sll.h ../include/ppi.h ../include/small_uint.h \ + ../include/internals.h ../include/constants.h ../include/exceptions.h ../include/dot11/dot11_base.h: -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: +../include/config.h: ../include/dot3.h: @@ -1420,6 +927,10 @@ ../include/pdu.h: +../include/cxxstd.h: + +../include/exceptions.h: + ../include/endianness.h: ../include/hw_address.h: @@ -1428,6 +939,8 @@ ../include/radiotap.h: +../include/config.h: + ../include/loopback.h: ../include/sll.h: @@ -1439,6 +952,8 @@ ../include/internals.h: ../include/constants.h: + +../include/exceptions.h: ../src/pppoe.o: ../src/pppoe.cpp ../include/pppoe.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/small_uint.h ../include/pdu_option.h \ @@ -1461,70 +976,12 @@ ../include/pdu_option.h: ../include/exceptions.h: -../src/radiotap.o: ../src/radiotap.cpp ../include/macros.h \ - ../include/radiotap.h ../include/macros.h ../include/pdu.h \ - ../include/cxxstd.h ../include/exceptions.h ../include/endianness.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../exceptions.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/utils.h ../include/ip_address.h ../include/ipv6_address.h \ - ../include/hw_address.h ../include/internals.h ../include/constants.h \ - ../include/packet_sender.h ../include/network_interface.h \ - ../include/exceptions.h - -../include/macros.h: +../src/radiotap.o: ../src/radiotap.cpp ../include/radiotap.h \ + ../include/config.h ../include/radiotap.h: -../include/macros.h: - -../include/pdu.h: - -../include/cxxstd.h: - -../include/exceptions.h: - -../include/endianness.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/utils.h: - -../include/ip_address.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: - -../include/packet_sender.h: - -../include/network_interface.h: - -../include/exceptions.h: +../include/config.h: ../src/rawpdu.o: ../src/rawpdu.cpp ../include/rawpdu.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h @@ -1614,16 +1071,12 @@ ../include/exceptions.h: ../src/sniffer.o: ../src/sniffer.cpp ../include/sniffer.h \ ../include/pdu.h ../include/macros.h ../include/cxxstd.h \ - ../include/exceptions.h ../include/ethernetII.h ../include/endianness.h \ - ../include/hw_address.h ../include/radiotap.h ../include/packet.h \ - ../include/timestamp.h ../include/loopback.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../exceptions.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../endianness.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../macros.h ../include/dot3.h ../include/sll.h \ - ../include/internals.h ../include/constants.h ../include/ppi.h \ - ../include/small_uint.h + ../include/exceptions.h ../include/packet.h ../include/timestamp.h \ + ../include/internals.h ../include/constants.h ../include/hw_address.h \ + ../include/dot11/dot11_base.h ../include/config.h \ + ../include/ethernetII.h ../include/endianness.h ../include/radiotap.h \ + ../include/config.h ../include/loopback.h ../include/dot3.h \ + ../include/sll.h ../include/ppi.h ../include/small_uint.h ../include/sniffer.h: @@ -1635,46 +1088,34 @@ ../include/exceptions.h: -../include/ethernetII.h: - -../include/endianness.h: - -../include/hw_address.h: - -../include/radiotap.h: - ../include/packet.h: ../include/timestamp.h: -../include/loopback.h: +../include/internals.h: + +../include/constants.h: + +../include/hw_address.h: ../include/dot11/dot11_base.h: -../include/dot11/../pdu.h: +../include/config.h: -../include/dot11/../pdu_option.h: +../include/ethernetII.h: -../include/dot11/../exceptions.h: +../include/endianness.h: -../include/dot11/../small_uint.h: +../include/radiotap.h: -../include/dot11/../hw_address.h: +../include/config.h: -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: +../include/loopback.h: ../include/dot3.h: ../include/sll.h: -../include/internals.h: - -../include/constants.h: - ../include/ppi.h: ../include/small_uint.h: @@ -1748,17 +1189,11 @@ ../src/tcp_stream.o: ../src/tcp_stream.cpp ../include/rawpdu.h \ ../include/pdu.h ../include/macros.h ../include/cxxstd.h \ ../include/exceptions.h ../include/tcp_stream.h ../include/sniffer.h \ - ../include/ethernetII.h ../include/endianness.h ../include/hw_address.h \ - ../include/radiotap.h ../include/packet.h ../include/timestamp.h \ - ../include/loopback.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../pdu_option.h \ - ../include/dot11/../exceptions.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot3.h ../include/sll.h ../include/internals.h \ - ../include/constants.h ../include/ppi.h ../include/small_uint.h \ - ../include/tcp.h ../include/pdu_option.h ../include/utils.h \ - ../include/ip_address.h ../include/ipv6_address.h ../include/ip.h + ../include/packet.h ../include/timestamp.h ../include/internals.h \ + ../include/constants.h ../include/hw_address.h ../include/tcp.h \ + ../include/endianness.h ../include/small_uint.h ../include/pdu_option.h \ + ../include/utils.h ../include/ip_address.h ../include/ipv6_address.h \ + ../include/ip.h ../include/rawpdu.h: @@ -1774,52 +1209,22 @@ ../include/sniffer.h: -../include/ethernetII.h: - -../include/endianness.h: - -../include/hw_address.h: - -../include/radiotap.h: - ../include/packet.h: ../include/timestamp.h: -../include/loopback.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot3.h: - -../include/sll.h: - ../include/internals.h: ../include/constants.h: -../include/ppi.h: - -../include/small_uint.h: +../include/hw_address.h: ../include/tcp.h: +../include/endianness.h: + +../include/small_uint.h: + ../include/pdu_option.h: ../include/utils.h: @@ -2116,823 +1521,95 @@ src/dns.o: src/dns.cpp ../include/dns.h ../include/macros.h \ ../include/constants.h: src/dot11/ack.o: src/dot11/ack.cpp ../include/dot11/dot11_control.h \ - ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h ../include/dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h + ../include/config.h ../include/dot11/dot11_control.h: -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: +../include/config.h: src/dot11/assoc_request.o: src/dot11/assoc_request.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/assoc_response.o: src/dot11/assoc_response.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/authentication.o: src/dot11/authentication.cpp \ - ../include/dot11/dot11_auth.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_auth.h ../include/config.h ../include/dot11/dot11_auth.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/beacon.o: src/dot11/beacon.cpp ../include/dot11/dot11_beacon.h \ - ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/rsn_information.h ../include/endianness.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/config.h ../include/dot11/dot11_beacon.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/rsn_information.h: - -../include/endianness.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/block_ack_request.o: src/dot11/block_ack_request.cpp \ - ../include/dot11/dot11_control.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h ../include/dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h + ../include/dot11/dot11_control.h ../include/config.h ../include/dot11/dot11_control.h: -../include/dot11/../dot11/dot11_base.h: +../include/config.h: +src/dot11/cfend.o: src/dot11/cfend.cpp ../include/config.h -../include/dot11/../dot11/../pdu.h: +../include/config.h: +src/dot11/cfendack.o: src/dot11/cfendack.cpp ../include/config.h -../include/dot11/../dot11/../macros.h: +../include/config.h: +src/dot11/data.o: src/dot11/data.cpp ../include/config.h -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: -src/dot11/cfend.o: src/dot11/cfend.cpp include/tests/dot11_control.h \ - include/tests/dot11.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../macros.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../exceptions.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot11/dot11_control.h ../include/dot11/../dot11/dot11_base.h - -include/tests/dot11_control.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11/dot11_control.h: - -../include/dot11/../dot11/dot11_base.h: -src/dot11/cfendack.o: src/dot11/cfendack.cpp \ - include/tests/dot11_control.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../macros.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../exceptions.h ../include/dot11/../pdu_option.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../endianness.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../macros.h ../include/dot11/dot11_control.h \ - ../include/dot11/../dot11/dot11_base.h - -include/tests/dot11_control.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11/dot11_control.h: - -../include/dot11/../dot11/dot11_base.h: -src/dot11/data.o: src/dot11/data.cpp include/tests/dot11_data.h \ - include/tests/dot11.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../macros.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../exceptions.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot11/dot11_data.h ../include/dot11/../dot11/dot11_base.h - -include/tests/dot11_data.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: +../include/config.h: src/dot11/deauthentication.o: src/dot11/deauthentication.cpp \ - ../include/dot11/dot11_auth.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_auth.h ../include/config.h ../include/dot11/dot11_auth.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/disassoc.o: src/dot11/disassoc.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: +../include/config.h: +src/dot11/dot11.o: src/dot11/dot11.cpp ../include/config.h -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: -src/dot11/dot11.o: src/dot11/dot11.cpp include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../macros.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../exceptions.h ../include/dot11/../pdu_option.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../endianness.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../macros.h ../include/utils.h ../include/macros.h \ - ../include/ip_address.h ../include/cxxstd.h ../include/ipv6_address.h \ - ../include/hw_address.h ../include/internals.h ../include/constants.h \ - ../include/pdu.h - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/utils.h: - -../include/macros.h: - -../include/ip_address.h: - -../include/cxxstd.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: - -../include/pdu.h: +../include/config.h: src/dot11/probe_request.o: src/dot11/probe_request.cpp \ - ../include/dot11/dot11_probe.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_probe.h ../include/config.h ../include/dot11/dot11_probe.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/probe_response.o: src/dot11/probe_response.cpp \ - ../include/dot11/dot11_probe.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_probe.h ../include/config.h ../include/dot11/dot11_probe.h: -../include/dot11/../dot11/dot11_mgmt.h: +../include/config.h: +src/dot11/pspoll.o: src/dot11/pspoll.cpp ../include/config.h -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: -src/dot11/pspoll.o: src/dot11/pspoll.cpp include/tests/dot11_control.h \ - include/tests/dot11.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../macros.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../exceptions.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot11/dot11_control.h ../include/dot11/../dot11/dot11_base.h - -include/tests/dot11_control.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11/dot11_control.h: - -../include/dot11/../dot11/dot11_base.h: +../include/config.h: src/dot11/reassoc_request.o: src/dot11/reassoc_request.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: +../include/config.h: src/dot11/reassoc_response.o: src/dot11/reassoc_response.cpp \ - ../include/dot11/dot11_assoc.h ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../dot11/../macros.h \ - include/tests/dot11_mgmt.h include/tests/dot11.h \ - ../include/dot11/dot11_base.h ../include/dot11/dot11_mgmt.h + ../include/dot11/dot11_assoc.h ../include/config.h ../include/dot11/dot11_assoc.h: -../include/dot11/../dot11/dot11_mgmt.h: +../include/config.h: +src/dot11/rts.o: src/dot11/rts.cpp ../include/config.h -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../dot11/../macros.h: - -include/tests/dot11_mgmt.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/dot11_mgmt.h: -src/dot11/rts.o: src/dot11/rts.cpp include/tests/dot11_control.h \ - include/tests/dot11.h ../include/dot11/dot11_base.h \ - ../include/dot11/../pdu.h ../include/dot11/../macros.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../exceptions.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../small_uint.h \ - ../include/dot11/../hw_address.h ../include/dot11/../endianness.h \ - ../include/dot11/../cxxstd.h ../include/dot11/../macros.h \ - ../include/dot11/dot11_control.h ../include/dot11/../dot11/dot11_base.h - -include/tests/dot11_control.h: - -include/tests/dot11.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../macros.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot11/dot11_control.h: - -../include/dot11/../dot11/dot11_base.h: +../include/config.h: src/dot1q.o: src/dot1q.cpp ../include/dot1q.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/small_uint.h ../include/arp.h \ @@ -3365,57 +2042,11 @@ src/pdu.o: src/pdu.cpp ../include/ip.h ../include/pdu.h \ ../include/packet.h: ../include/timestamp.h: -src/ppi.o: src/ppi.cpp ../include/ppi.h ../include/pdu.h \ - ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ - ../include/endianness.h ../include/small_uint.h \ - ../include/dot11/dot11_data.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h ../include/udp.h - -../include/ppi.h: - -../include/pdu.h: - -../include/macros.h: - -../include/cxxstd.h: - -../include/exceptions.h: - -../include/endianness.h: - -../include/small_uint.h: +src/ppi.o: src/ppi.cpp ../include/dot11/dot11_data.h ../include/config.h ../include/dot11/dot11_data.h: -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -../include/udp.h: +../include/config.h: src/pppoe.o: src/pppoe.cpp ../include/pppoe.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ ../include/endianness.h ../include/small_uint.h ../include/pdu_option.h \ @@ -3441,74 +2072,11 @@ src/pppoe.o: src/pppoe.cpp ../include/pppoe.h ../include/pdu.h \ ../include/hw_address.h: src/radiotap.o: src/radiotap.cpp ../include/radiotap.h \ - ../include/macros.h ../include/pdu.h ../include/cxxstd.h \ - ../include/exceptions.h ../include/endianness.h \ - ../include/dot11/dot11_data.h ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h ../include/dot11/dot11_beacon.h \ - ../include/dot11/../dot11/dot11_mgmt.h \ - ../include/dot11/../dot11/../dot11/dot11_base.h ../include/utils.h \ - ../include/ip_address.h ../include/ipv6_address.h \ - ../include/hw_address.h ../include/internals.h ../include/constants.h + ../include/config.h ../include/radiotap.h: -../include/macros.h: - -../include/pdu.h: - -../include/cxxstd.h: - -../include/exceptions.h: - -../include/endianness.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: - -../include/dot11/dot11_beacon.h: - -../include/dot11/../dot11/dot11_mgmt.h: - -../include/dot11/../dot11/../dot11/dot11_base.h: - -../include/utils.h: - -../include/ip_address.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: +../include/config.h: src/rc4eapol.o: src/rc4eapol.cpp ../include/eapol.h ../include/pdu.h \ ../include/macros.h ../include/cxxstd.h ../include/exceptions.h \ ../include/small_uint.h ../include/endianness.h ../include/utils.h \ @@ -3698,18 +2266,12 @@ src/tcp.o: src/tcp.cpp ../include/tcp.h ../include/pdu.h \ ../include/constants.h: src/tcp_stream.o: src/tcp_stream.cpp ../include/tcp_stream.h \ ../include/sniffer.h ../include/pdu.h ../include/macros.h \ - ../include/cxxstd.h ../include/exceptions.h ../include/ethernetII.h \ - ../include/endianness.h ../include/hw_address.h ../include/radiotap.h \ - ../include/packet.h ../include/timestamp.h ../include/loopback.h \ - ../include/dot11/dot11_base.h ../include/dot11/../pdu.h \ - ../include/dot11/../pdu_option.h ../include/dot11/../exceptions.h \ - ../include/dot11/../small_uint.h ../include/dot11/../hw_address.h \ - ../include/dot11/../endianness.h ../include/dot11/../cxxstd.h \ - ../include/dot11/../macros.h ../include/dot3.h ../include/sll.h \ - ../include/internals.h ../include/constants.h ../include/ppi.h \ - ../include/small_uint.h ../include/tcp.h ../include/pdu_option.h \ - ../include/utils.h ../include/ip_address.h ../include/ipv6_address.h \ - ../include/ip.h ../include/tcp.h ../include/utils.h + ../include/cxxstd.h ../include/exceptions.h ../include/packet.h \ + ../include/timestamp.h ../include/internals.h ../include/constants.h \ + ../include/hw_address.h ../include/tcp.h ../include/endianness.h \ + ../include/small_uint.h ../include/pdu_option.h ../include/utils.h \ + ../include/ip_address.h ../include/ipv6_address.h ../include/ip.h \ + ../include/tcp.h ../include/ethernetII.h ../include/utils.h ../include/tcp_stream.h: @@ -3723,52 +2285,22 @@ src/tcp_stream.o: src/tcp_stream.cpp ../include/tcp_stream.h \ ../include/exceptions.h: -../include/ethernetII.h: - -../include/endianness.h: - -../include/hw_address.h: - -../include/radiotap.h: - ../include/packet.h: ../include/timestamp.h: -../include/loopback.h: - -../include/dot11/dot11_base.h: - -../include/dot11/../pdu.h: - -../include/dot11/../pdu_option.h: - -../include/dot11/../exceptions.h: - -../include/dot11/../small_uint.h: - -../include/dot11/../hw_address.h: - -../include/dot11/../endianness.h: - -../include/dot11/../cxxstd.h: - -../include/dot11/../macros.h: - -../include/dot3.h: - -../include/sll.h: - ../include/internals.h: ../include/constants.h: -../include/ppi.h: - -../include/small_uint.h: +../include/hw_address.h: ../include/tcp.h: +../include/endianness.h: + +../include/small_uint.h: + ../include/pdu_option.h: ../include/utils.h: @@ -3781,6 +2313,8 @@ src/tcp_stream.o: src/tcp_stream.cpp ../include/tcp_stream.h \ ../include/tcp.h: +../include/ethernetII.h: + ../include/utils.h: src/udp.o: src/udp.cpp ../include/udp.h ../include/macros.h \ ../include/pdu.h ../include/cxxstd.h ../include/exceptions.h \ @@ -3837,131 +2371,9 @@ src/utils.o: src/utils.cpp ../include/utils.h ../include/macros.h \ ../include/ip_address.h: ../include/ipv6_address.h: -src/wep_decrypt.o: src/wep_decrypt.cpp ../include/crypto.h \ - ../include/utils.h ../include/macros.h ../include/ip_address.h \ - ../include/cxxstd.h ../include/ipv6_address.h ../include/hw_address.h \ - ../include/internals.h ../include/constants.h ../include/pdu.h \ - ../include/exceptions.h ../include/snap.h ../include/endianness.h \ - ../include/small_uint.h ../include/rawpdu.h \ - ../include/handshake_capturer.h ../include/eapol.h ../include/config.h \ - ../include/arp.h ../include/dot11/dot11_data.h \ - ../include/dot11/../dot11/dot11_base.h \ - ../include/dot11/../dot11/../pdu.h \ - ../include/dot11/../dot11/../pdu_option.h \ - ../include/dot11/../dot11/../exceptions.h \ - ../include/dot11/../dot11/../small_uint.h \ - ../include/dot11/../dot11/../hw_address.h \ - ../include/dot11/../dot11/../endianness.h \ - ../include/dot11/../dot11/../cxxstd.h \ - ../include/dot11/../dot11/../macros.h - -../include/crypto.h: - -../include/utils.h: - -../include/macros.h: - -../include/ip_address.h: - -../include/cxxstd.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: - -../include/pdu.h: - -../include/exceptions.h: - -../include/snap.h: - -../include/endianness.h: - -../include/small_uint.h: - -../include/rawpdu.h: - -../include/handshake_capturer.h: - -../include/eapol.h: +src/wep_decrypt.o: src/wep_decrypt.cpp ../include/config.h ../include/config.h: - -../include/arp.h: - -../include/dot11/dot11_data.h: - -../include/dot11/../dot11/dot11_base.h: - -../include/dot11/../dot11/../pdu.h: - -../include/dot11/../dot11/../pdu_option.h: - -../include/dot11/../dot11/../exceptions.h: - -../include/dot11/../dot11/../small_uint.h: - -../include/dot11/../dot11/../hw_address.h: - -../include/dot11/../dot11/../endianness.h: - -../include/dot11/../dot11/../cxxstd.h: - -../include/dot11/../dot11/../macros.h: -src/wpa2_decrypt.o: src/wpa2_decrypt.cpp ../include/crypto.h \ - ../include/utils.h ../include/macros.h ../include/ip_address.h \ - ../include/cxxstd.h ../include/ipv6_address.h ../include/hw_address.h \ - ../include/internals.h ../include/constants.h ../include/pdu.h \ - ../include/exceptions.h ../include/snap.h ../include/endianness.h \ - ../include/small_uint.h ../include/rawpdu.h \ - ../include/handshake_capturer.h ../include/eapol.h ../include/config.h \ - ../include/radiotap.h ../include/udp.h ../include/tcp.h \ - ../include/pdu_option.h - -../include/crypto.h: - -../include/utils.h: - -../include/macros.h: - -../include/ip_address.h: - -../include/cxxstd.h: - -../include/ipv6_address.h: - -../include/hw_address.h: - -../include/internals.h: - -../include/constants.h: - -../include/pdu.h: - -../include/exceptions.h: - -../include/snap.h: - -../include/endianness.h: - -../include/small_uint.h: - -../include/rawpdu.h: - -../include/handshake_capturer.h: - -../include/eapol.h: +src/wpa2_decrypt.o: src/wpa2_decrypt.cpp ../include/config.h ../include/config.h: - -../include/radiotap.h: - -../include/udp.h: - -../include/tcp.h: - -../include/pdu_option.h: diff --git a/tests/src/dot11/ack.cpp b/tests/src/dot11/ack.cpp index 20eb857..7cc98ae 100644 --- a/tests/src/dot11/ack.cpp +++ b/tests/src/dot11/ack.cpp @@ -1,5 +1,7 @@ -#include #include "dot11/dot11_control.h" +#ifdef HAVE_DOT11 + +#include #include "tests/dot11.h" @@ -98,3 +100,5 @@ TEST_F(Dot11AckTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/assoc_request.cpp b/tests/src/dot11/assoc_request.cpp index 86ecb84..7272609 100644 --- a/tests/src/dot11/assoc_request.cpp +++ b/tests/src/dot11/assoc_request.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_assoc.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -87,3 +90,4 @@ TEST_F(Dot11AssocRequestTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/assoc_response.cpp b/tests/src/dot11/assoc_response.cpp index 01717b2..ae94d0b 100644 --- a/tests/src/dot11/assoc_response.cpp +++ b/tests/src/dot11/assoc_response.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_assoc.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -95,3 +98,4 @@ TEST_F(Dot11AssocResponseTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/authentication.cpp b/tests/src/dot11/authentication.cpp index 2582dea..cccae68 100644 --- a/tests/src/dot11/authentication.cpp +++ b/tests/src/dot11/authentication.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_auth.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -103,3 +106,4 @@ TEST_F(Dot11AuthenticationTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/beacon.cpp b/tests/src/dot11/beacon.cpp index bca2a2c..73e64cb 100644 --- a/tests/src/dot11/beacon.cpp +++ b/tests/src/dot11/beacon.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_beacon.h" + +#ifdef HAVE_DOT11 + +#include #include "rsn_information.h" #include "tests/dot11_mgmt.h" @@ -456,3 +459,5 @@ TEST_F(Dot11BeaconTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/block_ack_request.cpp b/tests/src/dot11/block_ack_request.cpp index 52764dc..1fe928e 100644 --- a/tests/src/dot11/block_ack_request.cpp +++ b/tests/src/dot11/block_ack_request.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_control.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11.h" @@ -90,3 +93,5 @@ TEST_F(Dot11BlockAckRequestTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/cfend.cpp b/tests/src/dot11/cfend.cpp index f5d686d..301671e 100644 --- a/tests/src/dot11/cfend.cpp +++ b/tests/src/dot11/cfend.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11_control.h" @@ -73,3 +77,5 @@ TEST_F(Dot11CFEndTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/cfendack.cpp b/tests/src/dot11/cfendack.cpp index 7c582d8..866a6e1 100644 --- a/tests/src/dot11/cfendack.cpp +++ b/tests/src/dot11/cfendack.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11_control.h" @@ -74,3 +78,4 @@ TEST_F(Dot11EndCFAckTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/data.cpp b/tests/src/dot11/data.cpp index e8eb782..1975fbc 100644 --- a/tests/src/dot11/data.cpp +++ b/tests/src/dot11/data.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11_data.h" @@ -163,3 +167,5 @@ TEST_F(Dot11DataTest, Source_Dest_BSSID_Address3) { EXPECT_EQ(data.dst_addr(), "00:18:f8:f5:c2:c6"); EXPECT_EQ(data.bssid_addr(), "00:18:f8:f5:c2:c6"); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/deauthentication.cpp b/tests/src/dot11/deauthentication.cpp index a852913..f1ca54e 100644 --- a/tests/src/dot11/deauthentication.cpp +++ b/tests/src/dot11/deauthentication.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_auth.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -85,3 +88,4 @@ TEST_F(Dot11DeauthenticationTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/disassoc.cpp b/tests/src/dot11/disassoc.cpp index 327ca5b..b4f26e2 100644 --- a/tests/src/dot11/disassoc.cpp +++ b/tests/src/dot11/disassoc.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_assoc.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -85,3 +88,5 @@ TEST_F(Dot11DisassocTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/dot11.cpp b/tests/src/dot11/dot11.cpp index 72ed614..42b58d4 100644 --- a/tests/src/dot11/dot11.cpp +++ b/tests/src/dot11/dot11.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11.h" #include "utils.h" @@ -161,4 +165,4 @@ TEST_F(Dot11Test, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } - +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/probe_request.cpp b/tests/src/dot11/probe_request.cpp index f66d704..554fa98 100644 --- a/tests/src/dot11/probe_request.cpp +++ b/tests/src/dot11/probe_request.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_probe.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -69,3 +72,4 @@ TEST_F(Dot11ProbeRequestTest, FromBytes) { test_equals_expected(*inner); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/probe_response.cpp b/tests/src/dot11/probe_response.cpp index cf09514..ddbcc5c 100644 --- a/tests/src/dot11/probe_response.cpp +++ b/tests/src/dot11/probe_response.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_probe.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -93,3 +96,5 @@ TEST_F(Dot11ProbeResponseTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/pspoll.cpp b/tests/src/dot11/pspoll.cpp index da2fd87..93ff174 100644 --- a/tests/src/dot11/pspoll.cpp +++ b/tests/src/dot11/pspoll.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11_control.h" @@ -73,3 +77,5 @@ TEST_F(Dot11PSPollTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/reassoc_request.cpp b/tests/src/dot11/reassoc_request.cpp index 15e7854..7a3622f 100644 --- a/tests/src/dot11/reassoc_request.cpp +++ b/tests/src/dot11/reassoc_request.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_assoc.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -93,3 +96,5 @@ TEST_F(Dot11ReAssocRequestTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/reassoc_response.cpp b/tests/src/dot11/reassoc_response.cpp index 8cc4064..a070802 100644 --- a/tests/src/dot11/reassoc_response.cpp +++ b/tests/src/dot11/reassoc_response.cpp @@ -1,5 +1,8 @@ -#include #include "dot11/dot11_assoc.h" + +#ifdef HAVE_DOT11 + +#include #include "tests/dot11_mgmt.h" @@ -83,3 +86,4 @@ TEST_F(Dot11ReAssocResponseTest, Serialize) { EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } +#endif // HAVE_DOT11 diff --git a/tests/src/dot11/rts.cpp b/tests/src/dot11/rts.cpp index 09f61dd..ad176e9 100644 --- a/tests/src/dot11/rts.cpp +++ b/tests/src/dot11/rts.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include "tests/dot11_control.h" @@ -73,3 +77,5 @@ TEST_F(Dot11RTSTest, Serialize) { ASSERT_EQ(sizeof(expected_packet), buffer.size()); EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/ppi.cpp b/tests/src/ppi.cpp index a418953..6268d19 100644 --- a/tests/src/ppi.cpp +++ b/tests/src/ppi.cpp @@ -1,9 +1,12 @@ +#include "dot11/dot11_data.h" + +#ifdef HAVE_DOT11 + #include #include #include #include #include "ppi.h" -#include "dot11/dot11_data.h" #include "udp.h" using namespace Tins; @@ -36,3 +39,5 @@ TEST_F(PPITest, ConstructorFromBuffer) { EXPECT_TRUE(pdu.find_pdu()); EXPECT_TRUE(pdu.find_pdu()); } + +#endif // HAVE_DOT11 diff --git a/tests/src/radiotap.cpp b/tests/src/radiotap.cpp index 7fbb297..6bf6955 100644 --- a/tests/src/radiotap.cpp +++ b/tests/src/radiotap.cpp @@ -1,8 +1,11 @@ +#include "radiotap.h" + +#ifdef HAVE_DOT11 + #include #include #include #include -#include "radiotap.h" #include "dot11/dot11_data.h" #include "dot11/dot11_beacon.h" #include "utils.h" @@ -195,3 +198,5 @@ TEST_F(RadioTapTest, TSFT) { radio.tsft(0x7afb9a8d); EXPECT_EQ(radio.tsft(), 0x7afb9a8dU); } + +#endif // HAVE_DOT11 diff --git a/tests/src/tcp_stream.cpp b/tests/src/tcp_stream.cpp index b8a947e..d7b102f 100644 --- a/tests/src/tcp_stream.cpp +++ b/tests/src/tcp_stream.cpp @@ -4,6 +4,7 @@ #include #include "tcp_stream.h" #include "tcp.h" +#include "ethernetII.h" #include "utils.h" using namespace Tins; diff --git a/tests/src/wep_decrypt.cpp b/tests/src/wep_decrypt.cpp index 60ce16a..52213bb 100644 --- a/tests/src/wep_decrypt.cpp +++ b/tests/src/wep_decrypt.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include #include @@ -41,3 +45,5 @@ TEST_F(WEPDecryptTest, Decrypt1) { decrypter.add_password("00:12:bf:12:32:29", "\x1f\x1f\x1f\x1f\x1e"); EXPECT_FALSE(decrypter.decrypt(dot11)); } + +#endif // HAVE_DOT11 diff --git a/tests/src/wpa2_decrypt.cpp b/tests/src/wpa2_decrypt.cpp index 1ba1a56..0008185 100644 --- a/tests/src/wpa2_decrypt.cpp +++ b/tests/src/wpa2_decrypt.cpp @@ -1,3 +1,7 @@ +#include "config.h" + +#ifdef HAVE_DOT11 + #include #include #include @@ -216,3 +220,5 @@ TEST_F(WPA2DecryptTest, DecryptCCMPAndTKIPWithoutUsingBeacon) { ASSERT_FALSE(decrypter.decrypt(radio)); } } + +#endif // HAVE_DOT11