MCPcopy Create free account
hub / github.com/aguinet/usbtop / pcap_loop_callback

Function pcap_loop_callback

src/main.cpp:82–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void pcap_loop_callback(u_char* user, const struct pcap_pkthdr *h, const u_char* bytes)
83{
84 usbtop::UsbBus* bus = (usbtop::UsbBus*) (user);
85 assert(bus);
86 bus->push(h, bytes);
87}
88
89void clean_pcap_live(pcap_buses_t const& pcap_hs)
90{

Callers

nothing calls this directly

Calls 2

assertClass · 0.85
pushMethod · 0.45

Tested by

no test coverage detected