Home
last modified time | relevance | path

Searched refs:ifr (Results 1 – 8 of 8) sorted by relevance

/glibc-2.36/sysdeps/gnu/
Difaddrs.c66 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/
Dif_index.c34 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/
Difreq.h4 __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/
Dif_index.c40 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/
Difreq.c63 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/
Dres_hconf.c382 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/
Dtst-if_index-long.c41 struct ifreq ifr; in do_test() local
42 TEST_COMPARE (strlen (name), sizeof (ifr.ifr_name)); in do_test()
/glibc-2.36/manual/
Dtexinfo.tex403 \ifr@ggedbottom \kern-\dimen@ \vfil \fi}