Home | History | Annotate | Download | only in ifwatchd

Lines Matching defs:ifd

319 	struct interface_data *ifd = NULL;
333 if ((ifd = find_interface(li->sdl_index)) == NULL) {
346 if (ifa != NULL && ifd != NULL) {
350 invoke_script(ifd->ifname, ev, ifa, brd);
500 do_announce(struct interface_data *ifd,
506 ifd->index = index;
507 invoke_script(ifd->ifname, ARRIVAL, NULL, NULL);
510 ifd->index = -1;
511 ifd->last_carrier_status = -1;
512 invoke_script(ifd->ifname, DEPARTURE, NULL, NULL);
563 struct interface_data * ifd;
577 SLIST_FOREACH(ifd, &ifs, next) {
579 if (strcmp(ifd->ifname, p->ifa_name) != 0)
586 do_announce(ifd, IFAN_DEPARTURE, ifd->index);
590 SLIST_FOREACH(ifd, &ifs, next) {
591 if (strcmp(ifd->ifname, p->ifa_name) == 0)
594 if (ifd == NULL)
599 ifd->index == -1)
600 invoke_script(ifd->ifname, ARRIVAL, NULL, NULL);
608 if (ifd->last_carrier_status == ifi->ifi_link_state)
612 invoke_script(ifd->ifname, CARRIER, NULL, NULL);
615 if (ifd->last_carrier_status == -1)
617 invoke_script(ifd->ifname, CARRIER, NULL, NULL);
620 ifd->last_carrier_status = ifi->ifi_link_state;
628 invoke_script(ifd->ifname, UP, ifa, p->ifa_dstaddr);