Home | History | Annotate | Download | only in libpcap

Lines Matching refs:unit

375 	 * Split the device name into a device type name and a unit number;
376 * chop off the unit number, so "dname" is just a device type name.
422 * table for the specified device type name and unit number.
443 * Get the unit number, and a pointer to the end of the device
453 * Make a copy of the device pathname, and then remove the unit
459 /* Try device without unit number */
469 /* Try again with unit number */
505 /* XXX Assume unit zero */
786 * Split a device name into a device type name and a unit number;
787 * return the a pointer to the beginning of the unit number, which
788 * is the end of the device type name, and set "*unitp" to the unit
798 long unit;
805 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s missing unit number",
810 /* Digits at end of string are unit number */
815 unit = strtol(cp, &eos, 10);
817 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s bad unit number", device);
820 if (errno == ERANGE || unit > INT_MAX) {
821 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number too large",
825 if (unit < 0) {
826 snprintf(ebuf, PCAP_ERRBUF_SIZE, "%s unit number is negative",
830 *unitp = (int)unit;
1089 * unit numbers.
1095 * the PPA is just the unit number.
1097 return ("Specified PPA (device unit) was invalid");
1137 return ("Previous data unit could not be delivered");
1442 get_dlpi_ppa(register int fd, register const char *device, register int unit,
1537 * name for the device that comes before the unit number,
1550 ip->dl_instance_num == unit)
1576 * device number of a device with the name "/dev/<dev><unit>",
1579 snprintf(dname, sizeof(dname), "/dev/%s%d", device, unit);
1591 ip->dl_instance_num == unit)
1599 "can't find /dev/dlpi PPA for %s%d", device, unit);
1604 "%s%d: hardware state: DOWN\n", device, unit);
1629 get_dlpi_ppa(register int fd, register const char *ifname, register int unit,
1672 if (strcmp(if_name, ifname) == 0 && ifnet.if_unit == unit)