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)
This commit is contained in:
Mark Johnston 2013-09-15 21:38:46 +00:00
parent 5a92968ca6
commit 9feec372db
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=255604

View File

@ -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;
};