Searched refs:ifr (Results 1 – 8 of 8) sorted by relevance
/glibc-2.36/sysdeps/gnu/ |
D | ifaddrs.c | 66 struct ifreq *ifr; in __getifaddrs() local 78 ifr = ifreqs; in __getifaddrs() 86 storage[i].ia.ifa_name = strncpy (storage[i].name, ifr->ifr_name, in __getifaddrs() 88 storage[i].addr = ifr->ifr_addr; in __getifaddrs() 93 if (__ioctl (fd, SIOCGIFFLAGS, ifr) < 0) in __getifaddrs() 95 storage[i].ia.ifa_flags = ifr->ifr_flags; in __getifaddrs() 97 ifr->ifr_addr = storage[i].addr; in __getifaddrs() 99 if (__ioctl (fd, SIOCGIFNETMASK, ifr) < 0) in __getifaddrs() 104 storage[i].netmask = ifr->ifr_netmask; in __getifaddrs() 107 if (ifr->ifr_flags & IFF_BROADCAST) in __getifaddrs() [all …]
|
/glibc-2.36/sysdeps/mach/hurd/ |
D | if_index.c | 34 struct ifreq ifr; in __if_nametoindex() local 46 strncpy (ifr.ifr_name, ifname, IFNAMSIZ); in __if_nametoindex() 47 if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0) in __if_nametoindex() 56 return ifr.ifr_ifindex; in __if_nametoindex() 129 struct ifreq *ifr = &ifc.ifc_req[i]; in weak_alias() local 130 idx[i].if_name = __strdup (ifr->ifr_name); in weak_alias() 132 || __ioctl (fd, SIOCGIFINDEX, ifr) < 0) in weak_alias() 148 idx[i].if_index = ifr->ifr_ifindex; in weak_alias() 171 struct ifreq ifr; in weak_alias() local 177 ifr.ifr_ifindex = ifindex; in weak_alias() [all …]
|
/glibc-2.36/include/ |
D | ifreq.h | 4 __if_nextreq (struct ifreq *ifr) in __if_nextreq() argument 7 if (ifr->ifr_addr.sa_len > sizeof ifr->ifr_addr) in __if_nextreq() 8 return (struct ifreq *) ((char *) &ifr->ifr_addr + ifr->ifr_addr.sa_len); in __if_nextreq() 10 return ifr + 1; in __if_nextreq()
|
/glibc-2.36/sysdeps/unix/sysv/linux/ |
D | if_index.c | 40 struct ifreq ifr; in __if_nametoindex() 47 strncpy (ifr.ifr_name, ifname, sizeof (ifr.ifr_name)); in __if_nametoindex() 54 if (__ioctl (fd, SIOCGIFINDEX, &ifr) < 0) in __if_nametoindex() 63 return ifr.ifr_ifindex; in __if_nametoindex() 222 struct ifreq ifr; in weak_alias() local 231 ifr.ifr_ifindex = ifindex; in weak_alias() 232 status = __ioctl (fd, SIOCGIFNAME, &ifr); in weak_alias() 245 return strncpy (ifname, ifr.ifr_name, IFNAMSIZ); in weak_alias()
|
/glibc-2.36/sysdeps/unix/ |
D | ifreq.c | 63 struct ifreq *ifr = *ifreqs; in __ifreq() local 65 while ((char *) ifr < ifc.ifc_buf + ifc.ifc_len) in __ifreq() 68 ifr = __if_nextreq (ifr); in __ifreq() 69 if (ifr == NULL) in __ifreq()
|
/glibc-2.36/resolv/ |
D | res_hconf.c | 382 struct ifreq *ifr, *cur_ifr; in _res_hconf_reorder_addrs() local 413 __ifreq (&ifr, &num, sd); in _res_hconf_reorder_addrs() 414 if (!ifr) in _res_hconf_reorder_addrs() 422 for (cur_ifr = ifr, i = 0; i < num; in _res_hconf_reorder_addrs() 452 __if_freereq (ifr, num); in _res_hconf_reorder_addrs()
|
/glibc-2.36/inet/ |
D | tst-if_index-long.c | 41 struct ifreq ifr; in do_test() local 42 TEST_COMPARE (strlen (name), sizeof (ifr.ifr_name)); in do_test()
|
/glibc-2.36/manual/ |
D | texinfo.tex | 403 \ifr@ggedbottom \kern-\dimen@ \vfil \fi}
|