From e7435d39742c909e16088213e938a1b12ae02b8e Mon Sep 17 00:00:00 2001 From: Matias Fontanini Date: Fri, 17 Oct 2014 12:03:18 -0300 Subject: [PATCH] BaseSniffer::get_pcap_handle is now public. --- include/sniffer.h | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/include/sniffer.h b/include/sniffer.h index 58e9340..ad1acae 100644 --- a/include/sniffer.h +++ b/include/sniffer.h @@ -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;