Lines Matching refs:pn
68 struct pcap_netmap *pn = p->priv; in pcap_netmap_stats() local
70 ps->ps_recv = pn->rx_pkts; in pcap_netmap_stats()
81 struct pcap_netmap *pn = p->priv; in pcap_netmap_filter() local
84 ++pn->rx_pkts; in pcap_netmap_filter()
86 pn->cb(pn->cb_arg, h, buf); in pcap_netmap_filter()
94 struct pcap_netmap *pn = p->priv; in pcap_netmap_dispatch() local
95 struct nm_desc *d = pn->d; in pcap_netmap_dispatch()
98 pn->cb = cb; in pcap_netmap_dispatch()
99 pn->cb_arg = user; in pcap_netmap_dispatch()
122 struct pcap_netmap *pn = p->priv; in pcap_netmap_inject() local
123 struct nm_desc *d = pn->d; in pcap_netmap_inject()
132 struct pcap_netmap *pn = p->priv; in pcap_netmap_ioctl() local
133 struct nm_desc *d = pn->d; in pcap_netmap_ioctl()
208 struct pcap_netmap *pn = p->priv; in pcap_netmap_close() local
209 struct nm_desc *d = pn->d; in pcap_netmap_close()
212 if (pn->must_clear_promisc) { in pcap_netmap_close()
227 struct pcap_netmap *pn = p->priv; in pcap_netmap_activate() local
244 pn->d = d; in pcap_netmap_activate()
261 pn->must_clear_promisc = 1; in pcap_netmap_activate()