Home | History | Annotate | Download | only in dist

Lines Matching refs:snf

1 /*	$NetBSD: pcap-snf.c,v 1.9 2026/03/18 23:43:20 christos Exp $	*/
4 __RCSID("$NetBSD: pcap-snf.c,v 1.9 2026/03/18 23:43:20 christos Exp $");
25 #include <snf.h>
31 #include "pcap-snf.h"
34 * Private data for capturing on SNF devices.
239 pcapint_strlcpy(p->errbuf, "Sending packets isn't supported with this snf version",
276 0, /* let SNF API parse SNF_NUM_RINGS, if set */
321 * "select()" and "poll()" don't work on snf descriptors.
381 * Myricom SNF adapter ports may appear as regular
384 * if this isn't an SNF-only version of libpcap.
388 * opened using the SNF API instead.
486 (void)snprintf(name,MAX_DESC_LENGTH,"snf%d",allports);
487 (void)snprintf(desc,MAX_DESC_LENGTH,"Myricom Merge Bitmask All Ports snf%d",
521 /* Can't initialize the API, so no SNF devices */
531 /* Can't get SNF addresses */
552 sscanf(device, "snf%d", &boardnum) != 1) {
588 * This libpcap build supports only SNF cards, not regular network
593 * There are no regular interfaces, just SNF interfaces.
607 snprintf(errbuf, PCAP_ERRBUF_SIZE, PCAP_ENODEV_MESSAGE, "SNF");
617 return (PCAP_VERSION_STRING_WITH_ADDITIONAL_INFO("SNF-only"));