Lines Matching defs:ifi

114 struct interface_info	*ifi;
189 struct interface_info *ifi = arg;
194 if (ifi->client->active != NULL) {
197 ifi->client->active);
198 if (ifi->client->alias)
200 ifi->client->alias);
203 ifi->client->state = S_INIT;
234 if (ifam->ifam_index != ifi->index)
251 for (l = ifi->client->active; l != NULL; l = l->next)
275 if (ifm->ifm_index != ifi->index)
279 ifi->name);
282 linkstat = interface_link_status(ifi->name);
283 if (linkstat != ifi->linkstat) {
284 debug("%s link state %s -> %s", ifi->name,
285 ifi->linkstat ? "up" : "down",
287 ifi->linkstat = linkstat;
289 state_reboot(ifi);
295 ifan->ifan_index == ifi->index) {
297 ifi->name);
303 if (ifan->ifan_index != ifi->index)
315 disassoc(ifi);
316 state_reboot(ifi);
329 if (ifi->client->alias)
330 script_write_params("alias_", ifi->client->alias);
399 if ((ifi = calloc(1, sizeof(struct interface_info))) == NULL)
401 if (strlcpy(ifi->name, argv[0], IFNAMSIZ) >= IFNAMSIZ)
404 _PATH_DHCLIENT_DB, ifi->name) == -1)
428 if (!interface_link_status(ifi->name)) {
429 fprintf(stderr, "%s: no link ...", ifi->name);
432 while (!interface_link_status(ifi->name)) {
443 ifi->linkstat = 1;
469 if (ifi->client->alias)
470 priv_script_write_params("alias_", ifi->client->alias);
474 add_protocol("AF_ROUTE", routefd, routehandler, ifi);
477 discover_interfaces(ifi);
491 setproctitle("%s", ifi->name);
496 ifi->client->state = S_INIT;
497 state_reboot(ifi);
1836 for (lp = ifi->client->leases; lp; lp = lp->next)
1837 write_client_lease(ifi, lp, 1);
1838 if (ifi->client->active)
1839 write_client_lease(ifi, ifi->client->active, 1);
1945 struct interface_info *ip = ifi;
1973 struct interface_info *ip = ifi;
2198 struct interface_info *ip = ifi;
2689 setproctitle("%s [priv]", ifi->name);