1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-23 02:35:57 +01:00

Use TINS_DEPRECATED on old Sniffer constructors

This commit is contained in:
Matias Fontanini
2017-05-13 11:04:05 -07:00
parent 1ef5be352a
commit 80f424b6b3

View File

@@ -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;