Skip to content

Commit b91640f

Browse files
authored
Make filterable device inherit device. (#2025)
1 parent 5d345e2 commit b91640f

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Pcap++/header/Device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ namespace pcpp
4040
/// An abstract interface representing all devices that have BPF (Berkeley Packet Filter) filtering capabilities,
4141
/// meaning devices that can filter packets based on the BPF filtering syntax.
4242
/// This is an abstract class that cannot be instantiated
43-
class IFilterableDevice
43+
class IFilterableDevice : public IDevice
4444
{
4545
protected:
4646
// c'tor should not be public

Pcap++/header/PcapDevice.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,13 @@ namespace pcpp
138138
/// @class IPcapDevice
139139
/// An abstract class representing all libpcap-based packet capturing devices: files, libPcap, WinPcap/Npcap and
140140
/// RemoteCapture. This class is abstract and cannot be instantiated
141-
class IPcapDevice : public IDevice, public IFilterableDevice, public IPcapStatisticsProvider
141+
class IPcapDevice : public IFilterableDevice, public IPcapStatisticsProvider
142142
{
143143
protected:
144144
internal::PcapHandle m_PcapDescriptor;
145145

146146
// c'tor should not be public
147-
IPcapDevice() : IDevice()
148-
{}
147+
IPcapDevice() = default;
149148

150149
public:
151150
virtual ~IPcapDevice() = default;

Pcap++/header/PfRingDevice.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ namespace pcpp
3131

3232
/// @class PfRingDevice
3333
/// A class representing a PF_RING port
34-
class PfRingDevice : public IDevice, public IFilterableDevice
34+
class PfRingDevice : public IFilterableDevice
3535
{
3636
friend class PfRingDeviceList;
3737

0 commit comments

Comments
 (0)