MCPcopy Create free account
hub / github.com/NetSys/bess / PcapHandle

Method PcapHandle

core/utils/pcap_handle.cc:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33#include "pcap.h"
34
35PcapHandle::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
40PcapHandle::PcapHandle(pcap_t *handle) : handle_(handle) {}
41

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected