~kris/9p

9hist

4cca2ff31fcde2eb0d4413c5e9cb0f8701bff5ba — David du Colombier 33 years ago 46555fb
Plan 9 from Bell Labs 1993-03-14
1 files changed, 3 insertions(+), 2 deletions(-)

M port/devip.c
M port/devip.c => port/devip.c +3 -2
@@ 764,9 764,10 @@ ipstatusfill(Chan *c, char *buf, int len)
	connection = STREAMID(c->qid.path);
	cp = ipcreateconv(ipifc[c->dev], connection);
	if(cp->ifc->protop == &tcpinfo)
		sprint(buf, "tcp/%d %d %s %s\n", connection, cp->ref,
		sprint(buf, "tcp/%d %d %s %s %d+%d\n", connection, cp->ref,
			tcpstate[cp->tcpctl.state],
			cp->tcpctl.flags & CLONE ? "listen" : "connect");
			cp->tcpctl.flags & CLONE ? "listen" : "connect",
			cp->tcpctl.srtt, cp->tcpctl.mdev);
	else if(cp->ifc->protop == &ilinfo)
		sprint(buf, "il/%d %d %s rtt %d ms %d csum\n", connection, cp->ref,
			ilstate[cp->ilctl.state], cp->ilctl.rtt,