Lines Matching refs:ifl

91 	struct iflink *ifl;  in load_if()  local
110 while ((ifl = ifl_list) != NULL) { in load_if()
111 while ((ifa = ifl->ifa_list) != NULL) { in load_if()
112 ifl->ifa_list = ifa->next; in load_if()
115 ifl_list = ifl->next; in load_if()
116 free(ifl); in load_if()
136 for (ifl = ifl_list; ifl; ifl = ifl->next) in load_if()
137 if (ifl->index == ifrp->ifr_ifindex) in load_if()
139 if (ifl == NULL) { in load_if()
148 ifl = (struct iflink*)malloc(sizeof(*ifl)); in load_if()
149 if (ifl == NULL) in load_if()
151 memset(ifl, 0, sizeof(*ifl)); in load_if()
152 ifl->next = ifl_list; in load_if()
153 ifl_list = ifl; in load_if()
154 ifl->index = index; in load_if()
155 ifl->hatype = ifrp->ifr_hwaddr.sa_family; in load_if()
156 memcpy(ifl->lladdr, ifrp->ifr_hwaddr.sa_data, 14); in load_if()
157 strncpy(ifl->name, ifrp->ifr_name, IFNAMSIZ); in load_if()
158 p = strchr(ifl->name, ':'); in load_if()
162 syslog(LOG_INFO, "link %s", ifl->name); in load_if()
174 for (ifa = ifl->ifa_list; ifa; ifa = ifa->next) { in load_if()
188 ifa->next = ifl->ifa_list; in load_if()
189 ifl->ifa_list = ifa; in load_if()
201 inet_ntoa(*(struct in_addr*)&addr), i, ifl->name); in load_if()
206 inet_ntoa(*(struct in_addr*)&prefix), i, ifl->name); in load_if()
241 struct iflink *ifl; in select_ipaddr() local
247 for (ifl=ifl_list; ifl; ifl=ifl->next) in select_ipaddr()
248 if (ifl->index == ifindex) in select_ipaddr()
250 if (ifl == NULL && !retry) { in select_ipaddr()
255 if (ifl == NULL) in select_ipaddr()
260 for (ifa=ifl->ifa_list; ifa; ifa=ifa->next) { in select_ipaddr()
274 return ifl->ifa_list; in select_ipaddr()
276 syslog(LOG_ERR, "Off-link request on %s", ifl->name); in select_ipaddr()
349 struct iflink *ifl; in put_mylladdr() local
351 for (ifl=ifl_list; ifl; ifl = ifl->next) in put_mylladdr()
352 if (ifl->index == ifindex) in put_mylladdr()
355 if (ifl==NULL) in put_mylladdr()
358 memcpy(*ptr_p, ifl->lladdr, alen); in put_mylladdr()
366 struct iflink *ifl; in put_myipaddr() local
369 for (ifl=ifl_list; ifl; ifl = ifl->next) in put_myipaddr()
370 if (ifl->index == ifindex) in put_myipaddr()
373 if (ifl==NULL) in put_myipaddr()
376 for (ifa=ifl->ifa_list; ifa; ifa=ifa->next) { in put_myipaddr()
392 struct iflink *ifl; in arp_advise() local
394 for (ifl=ifl_list; ifl; ifl = ifl->next) in arp_advise()
395 if (ifl->index == ifindex) in arp_advise()
398 if (ifl == NULL) in arp_advise()
407 req.arp_ha.sa_family = ifl->hatype; in arp_advise()
409 memcpy(req.arp_dev, ifl->name, IFNAMSIZ); in arp_advise()