• Home
  • Raw
  • Download

Lines Matching refs:ps

47 snf_pcap_stats(pcap_t *p, struct pcap_stat *ps)  in snf_pcap_stats()  argument
58 ps->ps_recv = stats.ring_pkt_recv + stats.ring_pkt_overflow; in snf_pcap_stats()
59 ps->ps_drop = stats.ring_pkt_overflow; in snf_pcap_stats()
60 ps->ps_ifdrop = stats.nic_pkt_overflow + stats.nic_pkt_bad; in snf_pcap_stats()
67 struct pcap_snf *ps = p->priv; in snf_platform_cleanup() local
70 if (ps->snf_inj) in snf_platform_cleanup()
71 snf_inject_close(ps->snf_inj); in snf_platform_cleanup()
73 snf_ring_close(ps->snf_ring); in snf_platform_cleanup()
74 snf_close(ps->snf_handle); in snf_platform_cleanup()
81 struct pcap_snf *ps = p->priv; in snf_getnonblock() local
83 return (ps->snf_timeout == 0); in snf_getnonblock()
89 struct pcap_snf *ps = p->priv; in snf_setnonblock() local
92 ps->snf_timeout = 0; in snf_setnonblock()
95 ps->snf_timeout = -1; /* forever */ in snf_setnonblock()
97 ps->snf_timeout = p->opt.timeout; in snf_setnonblock()
129 struct pcap_snf *ps = p->priv; in snf_read() local
139 timeout = ps->snf_timeout; in snf_read()
153 err = snf_ring_recv(ps->snf_ring, timeout, &req); in snf_read()
214 struct pcap_snf *ps = p->priv; in snf_inject() local
216 if (ps->snf_inj == NULL) { in snf_inject()
217 rc = snf_inject_open(ps->snf_boardnum, 0, &ps->snf_inj); in snf_inject()
225 rc = snf_inject_send(ps->snf_inj, -1, 0, buf, size); in snf_inject()
244 struct pcap_snf *ps = p->priv; in snf_activate() local
265 err = snf_open(ps->snf_boardnum, in snf_activate()
270 &ps->snf_handle); in snf_activate()
280 err = snf_ring_open_id(ps->snf_handle, ring_id, &ps->snf_ring); in snf_activate()
289 ps->snf_timeout = -1; in snf_activate()
291 ps->snf_timeout = p->opt.timeout; in snf_activate()
293 err = snf_start(ps->snf_handle); in snf_activate()
315 ps->snf_inj = NULL; in snf_activate()
426 struct pcap_snf *ps; in snf_create() local
473 ps = p->priv; in snf_create()
490 ps->snf_boardnum = boardnum; in snf_create()