diff --git a/Pcap++/src/PcapLiveDevice.cpp b/Pcap++/src/PcapLiveDevice.cpp index 6eef2111d..831db8350 100644 --- a/Pcap++/src/PcapLiveDevice.cpp +++ b/Pcap++/src/PcapLiveDevice.cpp @@ -80,6 +80,8 @@ namespace pcpp return PCAP_D_OUT; case PcapLiveDevice::PCPP_INOUT: return PCAP_D_INOUT; + default: + throw std::invalid_argument("Unknown direction type"); } } #endif