From fcad90b5e9fefd135fb7c602954de9ee93702eac Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Sat, 13 May 2017 11:04:05 -0700 Subject: [PATCH] Use TINS_DEPRECATED on old Sniffer constructors --- include/tins/sniffer.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/tins/sniffer.h b/include/tins/sniffer.h index d0c8f11..cd0383b 100644 --- a/include/tins/sniffer.h +++ b/include/tins/sniffer.h @@ -328,8 +328,8 @@ public: * \param filter A capture filter to be used on the sniffing session.(optional); * \param rfmon Indicates if the interface should be put in monitor mode.(optional); */ - Sniffer(const std::string& device, unsigned max_packet_size, - bool promisc = false, const std::string& filter = "", bool rfmon = false); + TINS_DEPRECATED(Sniffer(const std::string& device, unsigned max_packet_size, + bool promisc = false, const std::string& filter = "", bool rfmon = false)); /** * \brief Constructs an instance of Sniffer. @@ -344,8 +344,8 @@ public: * \param filter A capture filter to be used on the sniffing session.(optional); * \param rfmon Indicates if the interface should be put in monitor mode.(optional); */ - Sniffer(const std::string& device, promisc_type promisc = NON_PROMISC, - const std::string& filter = "", bool rfmon = false); + TINS_DEPRECATED(Sniffer(const std::string& device, promisc_type promisc = NON_PROMISC, + const std::string& filter = "", bool rfmon = false)); private: friend class SnifferConfiguration;