Lines Matching refs:storage
65 } *storage; in __getifaddrs() local
69 storage = malloc (nifs * sizeof storage[0]); in __getifaddrs()
70 if (storage == NULL) in __getifaddrs()
82 storage[i].ia.ifa_next = &storage[i + 1].ia; in __getifaddrs()
83 storage[i].ia.ifa_addr = &storage[i].addr; in __getifaddrs()
86 storage[i].ia.ifa_name = strncpy (storage[i].name, ifr->ifr_name, in __getifaddrs()
87 sizeof storage[i].name); in __getifaddrs()
88 storage[i].addr = ifr->ifr_addr; in __getifaddrs()
95 storage[i].ia.ifa_flags = ifr->ifr_flags; in __getifaddrs()
97 ifr->ifr_addr = storage[i].addr; in __getifaddrs()
100 storage[i].ia.ifa_netmask = NULL; in __getifaddrs()
103 storage[i].ia.ifa_netmask = &storage[i].netmask; in __getifaddrs()
104 storage[i].netmask = ifr->ifr_netmask; in __getifaddrs()
109 ifr->ifr_addr = storage[i].addr; in __getifaddrs()
111 storage[i].ia.ifa_broadaddr = NULL; in __getifaddrs()
113 storage[i].ia.ifa_broadaddr = &storage[i].broadaddr; in __getifaddrs()
114 storage[i].broadaddr = ifr->ifr_broadaddr; in __getifaddrs()
119 ifr->ifr_addr = storage[i].addr; in __getifaddrs()
121 storage[i].ia.ifa_broadaddr = NULL; in __getifaddrs()
124 storage[i].ia.ifa_broadaddr = &storage[i].broadaddr; in __getifaddrs()
125 storage[i].broadaddr = ifr->ifr_dstaddr; in __getifaddrs()
129 storage[i].ia.ifa_broadaddr = NULL; in __getifaddrs()
131 storage[i].ia.ifa_data = NULL; /* Nothing here for now. */ in __getifaddrs()
138 free (storage); in __getifaddrs()
143 storage[i - 1].ia.ifa_next = NULL; in __getifaddrs()
145 *ifap = &storage[0].ia; in __getifaddrs()