Date: Sun, 15 Sep 2013 21:38:47 +0000 (UTC) From: Mark Johnston <markj@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255604 - head/cddl/lib/libdtrace Message-ID: <201309152138.r8FLcliA066017@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; };
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309152138.r8FLcliA066017>