Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/rtsold/dump.c
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Lines | if (ifi->probeinterval) { | ||||
fprintf(fp, "%d\n", ifi->probeinterval); | fprintf(fp, "%d\n", ifi->probeinterval); | ||||
fprintf(fp, " probe timer: %d\n", ifi->probetimer); | fprintf(fp, " probe timer: %d\n", ifi->probetimer); | ||||
} else { | } else { | ||||
fprintf(fp, "infinity\n"); | fprintf(fp, "infinity\n"); | ||||
fprintf(fp, " no probe timer\n"); | fprintf(fp, " no probe timer\n"); | ||||
} | } | ||||
fprintf(fp, " interface status: %s\n", | fprintf(fp, " interface status: %s\n", | ||||
ifi->active > 0 ? "active" : "inactive"); | ifi->active > 0 ? "active" : "inactive"); | ||||
fprintf(fp, " managed config: %s\n", | |||||
ifi->managedconfig ? "on" : "off"); | |||||
fprintf(fp, " other config: %s\n", | fprintf(fp, " other config: %s\n", | ||||
ifi->otherconfig ? "on" : "off"); | ifi->otherconfig ? "on" : "off"); | ||||
fprintf(fp, " rtsold status: %s\n", ifstatstr[ifi->state]); | fprintf(fp, " rtsold status: %s\n", ifstatstr[ifi->state]); | ||||
fprintf(fp, " carrier detection: %s\n", | fprintf(fp, " carrier detection: %s\n", | ||||
ifi->mediareqok ? "available" : "unavailable"); | ifi->mediareqok ? "available" : "unavailable"); | ||||
fprintf(fp, " probes: %d, dadcount = %d\n", | fprintf(fp, " probes: %d, dadcount = %d\n", | ||||
ifi->probes, ifi->dadcount); | ifi->probes, ifi->dadcount); | ||||
if (ifi->timer.tv_sec == tm_max.tv_sec && | if (ifi->timer.tv_sec == tm_max.tv_sec && | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |