static void snf_platform_cleanup(pcap_t *p) { if (p == NULL) return; snf_ring_close(p->md.snf_ring); snf_close(p->md.snf_handle); pcap_cleanup_live_common(p); }
static void snf_platform_cleanup(pcap_t *p) { struct pcap_snf *ps = p->priv; #ifdef SNF_HAVE_INJECT_API if (ps->snf_inj) snf_inject_close(ps->snf_inj); #endif snf_ring_close(ps->snf_ring); snf_close(ps->snf_handle); pcap_cleanup_live_common(p); }
static void snf_platform_cleanup(pcap_t *p) { struct pcap_snf *ps; if (p == NULL) return; ps = p->priv; snf_ring_close(ps->snf_ring); snf_close(ps->snf_handle); pcap_cleanup_live_common(p); }