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

BaseSniffer::get_pcap_handle is now public.

This commit is contained in:
Matias Fontanini
2014-10-17 12:03:18 -03:00
parent 3ad96422b9
commit e7435d3974

View File

@@ -234,6 +234,16 @@ namespace Tins {
* Retrieves an end iterator.
*/
iterator end();
/**
* Retrieves the pcap handle used by this sniffer.
*/
pcap_t* get_pcap_handle();
/**
* Retrieves the pcap handle used by this sniffer.
*/
const pcap_t* get_pcap_handle() const;
protected:
/**
* Default constructor.
@@ -242,10 +252,6 @@ namespace Tins {
void set_pcap_handle(pcap_t* const pcap_handle);
pcap_t* get_pcap_handle();
const pcap_t* get_pcap_handle() const;
void set_if_mask(bpf_u_int32 if_mask);
bpf_u_int32 get_if_mask() const;