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

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