Skip to content

Commit

Permalink
Added exception when an unknown direction is supplied. (#1666)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimi1010 authored Dec 25, 2024
1 parent 8b20f90 commit ab75534
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Pcap++/src/PcapLiveDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ab75534

Please sign in to comment.