svn commit: r255604 - head/cddl/lib/libdtrace
Mark Johnston
markj at FreeBSD.org
Sun Sep 15 21:38:47 UTC 2013
Author: markj
Date: Sun Sep 15 21:38:46 2013
New Revision: 255604
URL: http://svnweb.freebsd.org/changeset/base/255604
Log:
Use the address of the inpcb rather than the tcpcb to identify TCP
connections. This keeps the tcp provider consistent with the other network
providers.
Approved by: re (delphij)
Modified:
head/cddl/lib/libdtrace/tcp.d
Modified: head/cddl/lib/libdtrace/tcp.d
==============================================================================
--- head/cddl/lib/libdtrace/tcp.d Sun Sep 15 21:18:50 2013 (r255603)
+++ head/cddl/lib/libdtrace/tcp.d Sun Sep 15 21:38:46 2013 (r255604)
@@ -144,7 +144,7 @@ typedef struct tcpinfo {
#pragma D binding "1.0" translator
translator csinfo_t < struct tcpcb *p > {
cs_addr = NULL;
- cs_cid = (uint64_t)p;
+ cs_cid = (uint64_t)(p == NULL ? 0 : p->t_inpcb);
cs_pid = 0;
cs_zoneid = 0;
};
More information about the svn-src-all
mailing list