Home | History | Annotate | Download | only in dhcpcd-6.8.2

Lines Matching defs:reason

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