| 33 | #include "pcap.h" |
| 34 | |
| 35 | PcapHandle::PcapHandle(const std::string& dev) : handle_() { |
| 36 | char errbuf[PCAP_ERRBUF_SIZE]; |
| 37 | handle_ = pcap_open_live(dev.c_str(), PCAP_SNAPLEN, 1, -1, errbuf); |
| 38 | } |
| 39 | |
| 40 | PcapHandle::PcapHandle(pcap_t *handle) : handle_(handle) {} |
| 41 |
nothing calls this directly
no outgoing calls
no test coverage detected