mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Removed tins_direction_t typedef in favor of native pcap_direction_t
This commit is contained in:
@@ -47,8 +47,6 @@ namespace Tins {
|
||||
class SnifferIterator;
|
||||
class SnifferConfiguration;
|
||||
|
||||
typedef pcap_direction_t tins_direction_t;
|
||||
|
||||
/**
|
||||
* \class BaseSniffer
|
||||
* \brief Base class for sniffers.
|
||||
@@ -220,7 +218,7 @@ namespace Tins {
|
||||
* This calls pcap_setdirection using the provided parameter.
|
||||
* \param d The direction for the sniffer.
|
||||
*/
|
||||
int set_direction(tins_direction_t d);
|
||||
int set_direction(pcap_direction_t d);
|
||||
|
||||
/**
|
||||
* \brief Sets whether to extract RawPDUs or fully parsed packets.
|
||||
@@ -580,7 +578,7 @@ namespace Tins {
|
||||
* Sets the direction option.
|
||||
* \param direction The direction to be set.
|
||||
*/
|
||||
void set_direction(tins_direction_t direction);
|
||||
void set_direction(pcap_direction_t direction);
|
||||
|
||||
/**
|
||||
* Sets the immediate mode option.
|
||||
@@ -612,7 +610,7 @@ namespace Tins {
|
||||
bool _promisc;
|
||||
bool _rfmon;
|
||||
bool _immediate_mode;
|
||||
tins_direction_t _direction;
|
||||
pcap_direction_t _direction;
|
||||
};
|
||||
|
||||
template<class Functor>
|
||||
|
||||
Reference in New Issue
Block a user