Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/netstat/inet.c
Show First 20 Lines • Show All 335 Lines • ▼ Show 20 Lines | "{T:/%-5.5s} {T:/%-6.6s} {T:/%-6.6s} {T:/%-45.45s} {T:/%-45.45s}"), | ||||
xo_emit(" {T:/%7.7s} {T:/%7.7s} {T:/%7.7s} " | xo_emit(" {T:/%7.7s} {T:/%7.7s} {T:/%7.7s} " | ||||
"{T:/%7.7s} {T:/%7.7s} {T:/%7.7s}", | "{T:/%7.7s} {T:/%7.7s} {T:/%7.7s}", | ||||
"rexmt", "persist", "keep", "2msl", | "rexmt", "persist", "keep", "2msl", | ||||
"delack", "rcvtime"); | "delack", "rcvtime"); | ||||
} else if (Rflag) { | } else if (Rflag) { | ||||
xo_emit(" {T:/%8.8s} {T:/%5.5s}", | xo_emit(" {T:/%8.8s} {T:/%5.5s}", | ||||
"flowid", "ftype"); | "flowid", "ftype"); | ||||
} | } | ||||
if (cflag) | |||||
xo_emit(" {T:/%-*.*s}", TCP_CA_NAME_MAX, | |||||
TCP_CA_NAME_MAX, "CC"); | |||||
if (Pflag) | if (Pflag) | ||||
xo_emit(" {T:/%s}", "Log ID"); | xo_emit(" {T:/%s}", "Log ID"); | ||||
xo_emit("\n"); | xo_emit("\n"); | ||||
first = 0; | first = 0; | ||||
} | } | ||||
if (Lflag && so->so_qlimit == 0) | if (Lflag && so->so_qlimit == 0) | ||||
continue; | continue; | ||||
xo_open_instance("socket"); | xo_open_instance("socket"); | ||||
▲ Show 20 Lines • Show All 157 Lines • ▼ Show 20 Lines | #endif /* defined(TF_NEEDSYN) && defined(TF_NEEDFIN) */ | ||||
} | } | ||||
} | } | ||||
if (Rflag) { | if (Rflag) { | ||||
/* XXX: is this right Alfred */ | /* XXX: is this right Alfred */ | ||||
xo_emit(" {:flow-id/%08x} {:flow-type/%5d}", | xo_emit(" {:flow-id/%08x} {:flow-type/%5d}", | ||||
inp->inp_flowid, | inp->inp_flowid, | ||||
inp->inp_flowtype); | inp->inp_flowtype); | ||||
} | } | ||||
if (istcp && Pflag) | if (istcp) { | ||||
xo_emit(" {:log-id/%s}", tp->xt_logid[0] == '\0' ? | if (cflag) | ||||
xo_emit(" {:cc/%-*.*s}", TCP_CA_NAME_MAX, | |||||
TCP_CA_NAME_MAX, tp->xt_cc); | |||||
if (Pflag) | |||||
xo_emit(" {:log-id/%s}", | |||||
tp->xt_logid[0] == '\0' ? | |||||
"-" : tp->xt_logid); | "-" : tp->xt_logid); | ||||
} | |||||
xo_emit("\n"); | xo_emit("\n"); | ||||
xo_close_instance("socket"); | xo_close_instance("socket"); | ||||
} | } | ||||
if (xig != oxig && xig->xig_gen != oxig->xig_gen) { | if (xig != oxig && xig->xig_gen != oxig->xig_gen) { | ||||
if (oxig->xig_count > xig->xig_count) { | if (oxig->xig_count > xig->xig_count) { | ||||
xo_emit("Some {d:lost/%s} sockets may have been " | xo_emit("Some {d:lost/%s} sockets may have been " | ||||
"deleted.\n", name); | "deleted.\n", name); | ||||
} else if (oxig->xig_count < xig->xig_count) { | } else if (oxig->xig_count < xig->xig_count) { | ||||
▲ Show 20 Lines • Show All 917 Lines • Show Last 20 Lines |