Bug #7898
mdb's ::netstat doesn't print UDP conn_t pointer correctly
Start date:
2017-02-20
Due date:
% Done:
100%
Estimated time:
Difficulty:
Bite-size
Tags:
needs-triage
Gerrit CR:
Description
If you use "::netstat -P udp" on a kernel mdb (kmdb or "mdb -k"), all of the UDP sessions print the same pointer. This is clearly a bug.
The bug, BTW, is that the printed pointer is from the mdb process's address space, not from the actual kernel. The netstat_udp_cb() function is broken, in a way that its counterpart netstat_tcp_cb() is not. Make the UDP one act more like the TCP one.