-#ifdef LIFNAMSIZ
- struct lifreq ifr;
-
- if (strlen(name) >= sizeof(ifr.lifr_name)) {
- /* The name is too long, so it can't possibly exist. */
- return (PCAP_ERROR_NO_SUCH_DEVICE);
- }
- (void)pcap_strlcpy(ifr.lifr_name, name, sizeof(ifr.lifr_name));
- status = ioctl(fd, SIOCGLIFFLAGS, (caddr_t)&ifr);
-#else