Lines Matching refs:reason

223 make_env(const struct interface *ifp, const char *reason, char ***argv)  in make_env()  argument
249 if (strcmp(reason, "TEST") == 0) { in make_env()
263 else if (reason[strlen(reason) - 1] == '6') in make_env()
265 else if (strcmp(reason, "ROUTERADVERT") == 0) in make_env()
268 else if (strcmp(reason, "PREINIT") == 0 || in make_env()
269 strcmp(reason, "CARRIER") == 0 || in make_env()
270 strcmp(reason, "NOCARRIER") == 0 || in make_env()
271 strcmp(reason, "UNKNOWN") == 0 || in make_env()
272 strcmp(reason, "DEPARTED") == 0 || in make_env()
273 strcmp(reason, "STOPPED") == 0) in make_env()
297 e = strlen("reason") + strlen(reason) + 2; in make_env()
299 snprintf(env[1], e, "reason=%s", reason); in make_env()
337 if (strcmp(reason, "STOPPED") == 0) { in make_env()
343 } else if (strcmp(reason, "TEST") == 0 || in make_env()
344 strcmp(reason, "PREINIT") == 0 || in make_env()
345 strcmp(reason, "CARRIER") == 0 || in make_env()
346 strcmp(reason, "UNKNOWN") == 0) in make_env()
547 const char *reason) in send_interface1() argument
553 if (make_env(iface, reason, &env) == -1) in send_interface1()
572 const char *reason; in send_interface() local
583 reason = "CARRIER"; in send_interface()
586 reason = "NOCARRIER"; in send_interface()
589 reason = "UNKNOWN"; in send_interface()
592 if (send_interface1(fd, ifp, reason) == -1) in send_interface()
597 if (send_interface1(fd, ifp, d->reason) == -1) in send_interface()
609 if (send_interface1(fd, ifp, d6->reason) == -1) in send_interface()
618 script_runreason(const struct interface *ifp, const char *reason) in script_runreason() argument
636 ifp->name, argv[0], reason); in script_runreason()
639 elen = (size_t)make_env(ifp, reason, &env); in script_runreason()