diff options
author | markj <markj@FreeBSD.org> | 2013-09-15 21:38:46 +0000 |
---|---|---|
committer | markj <markj@FreeBSD.org> | 2013-09-15 21:38:46 +0000 |
commit | 37ef3ce41e2351d0c7401ae7ff5da547c85c9dad (patch) | |
tree | 2f20819fce193a54c0b36bfbe4ac618e00544679 /cddl | |
parent | 0169b48bfae3735553f3b1fdfb116d0725d8168b (diff) | |
download | FreeBSD-src-37ef3ce41e2351d0c7401ae7ff5da547c85c9dad.zip FreeBSD-src-37ef3ce41e2351d0c7401ae7ff5da547c85c9dad.tar.gz |
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)
Diffstat (limited to 'cddl')
-rw-r--r-- | cddl/lib/libdtrace/tcp.d | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/lib/libdtrace/tcp.d b/cddl/lib/libdtrace/tcp.d index 27126658..6d56eb7 100644 --- a/cddl/lib/libdtrace/tcp.d +++ b/cddl/lib/libdtrace/tcp.d @@ -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; }; |