Lines Matching defs:dname
478 char dname[100];
498 strlcpy(dname, device, sizeof(dname));
500 strlcpy(dname, cp + 1, sizeof(dname));
504 * chop off the unit number, so "dname" is just a device type name.
506 cp = split_dname(dname, &ppa, ebuf);
548 ppa = get_dlpi_ppa(p->fd, dname, ppa, ebuf);
559 strlcpy(dname, device, sizeof(dname));
561 snprintf(dname, sizeof(dname), "%s/%s", PCAP_DEV_PREFIX,
568 cp = split_dname(dname, &ppa, ebuf);
576 strlcpy(dname2, dname, sizeof(dname));
580 if ((p->fd = open(dname, O_RDWR)) < 0) {
582 dname,
1618 char dname[100];
1749 snprintf(dname, sizeof(dname), "/dev/%s%d", device, unit);
1750 if (stat(dname, &statbuf) < 0) {
1752 dname, pcap_strerror(errno));