Lines Matching +full:inactive +full:- +full:delay

3 /*-
4 * SPDX-License-Identifier: BSD-3-Clause
54 { "IDLE", "DELAY", "PROBE", "DOWN", "TENTATIVE" };
74 fprintf(fp, "Interface %s\n", ifi->ifname); in rtsold_dump()
76 if (ifi->probeinterval) { in rtsold_dump()
77 fprintf(fp, "%d\n", ifi->probeinterval); in rtsold_dump()
78 fprintf(fp, " probe timer: %d\n", ifi->probetimer); in rtsold_dump()
84 ifi->active > 0 ? "active" : "inactive"); in rtsold_dump()
86 ifi->managedconfig ? "on" : "off"); in rtsold_dump()
88 ifi->otherconfig ? "on" : "off"); in rtsold_dump()
89 fprintf(fp, " rtsold status: %s\n", ifstatstr[ifi->state]); in rtsold_dump()
91 ifi->mediareqok ? "available" : "unavailable"); in rtsold_dump()
93 ifi->probes, ifi->dadcount); in rtsold_dump()
94 if (ifi->timer.tv_sec == tm_max.tv_sec && in rtsold_dump()
95 ifi->timer.tv_nsec == tm_max.tv_nsec) in rtsold_dump()
99 (int)ifi->timer.tv_sec, in rtsold_dump()
100 (int)ifi->timer.tv_nsec / 1000, in rtsold_dump()
101 (ifi->expire.tv_sec < now.tv_sec) ? "expired" in rtsold_dump()
102 : sec2str(&ifi->expire)); in rtsold_dump()
104 fprintf(fp, " number of valid RAs: %d\n", ifi->racnt); in rtsold_dump()
106 TAILQ_FOREACH(rai, &ifi->ifi_rainfo, rai_next) { in rtsold_dump()
108 inet_ntop(AF_INET6, &rai->rai_saddr.sin6_addr, in rtsold_dump()
110 TAILQ_FOREACH(rao, &rai->rai_ra_opt, rao_next) { in rtsold_dump()
112 switch (rao->rao_type) { in rtsold_dump()
115 (char *)rao->rao_msg, in rtsold_dump()
116 sec2str(&rao->rao_expire)); in rtsold_dump()
120 (char *)rao->rao_msg, in rtsold_dump()
121 sec2str(&rao->rao_expire)); in rtsold_dump()
168 tsec = total->tv_sec; in sec2str()
169 tsec += total->tv_nsec / 1000 / 1000000; in sec2str()
170 tsec -= now.tv_sec; in sec2str()
171 tsec -= now.tv_nsec / 1000 / 1000000; in sec2str()
180 n = snprintf(p, ep - p, "%dd", days); in sec2str()
181 if (n < 0 || n >= ep - p) in sec2str()
187 n = snprintf(p, ep - p, "%dh", hours); in sec2str()
188 if (n < 0 || n >= ep - p) in sec2str()
194 n = snprintf(p, ep - p, "%dm", mins); in sec2str()
195 if (n < 0 || n >= ep - p) in sec2str()
199 snprintf(p, ep - p, "%ds", secs); in sec2str()