Home
last modified time | relevance | path

Searched refs:ifr0 (Results 1 – 2 of 2) sorted by relevance

/external/iputils/
Darping.c841 struct ifreq *ifr0, *ifr, *ifr_end; in find_device_by_ioctl() local
863 ifr0 = malloc(ifrsize); in find_device_by_ioctl()
864 if (!ifr0) { in find_device_by_ioctl()
869 ifc.ifc_buf = (char *)ifr0; in find_device_by_ioctl()
878 …if (ifc.ifc_len + sizeof(*ifr0) + sizeof(struct sockaddr_storage) - sizeof(struct sockaddr) <= ifr… in find_device_by_ioctl()
881 free(ifr0); in find_device_by_ioctl()
882 ifr0 = NULL; in find_device_by_ioctl()
885 if (!ifr0) { in find_device_by_ioctl()
890 ifr_end = (struct ifreq *)(((char *)ifr0) + ifc.ifc_len - sizeof(*ifr0)); in find_device_by_ioctl()
891 for (ifr = ifr0; ifr <= ifr_end; ifr++) { in find_device_by_ioctl()
/external/iproute2/ip/
Diplink.c1057 struct ifreq ifr0, ifr1; in do_set() local
1175 if (parse_address(dev, htype, halen, newaddr, &ifr0) < 0) in do_set()
1205 if (set_address(&ifr0, 0) < 0) in do_set()