]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
sockstat: Attach to jail if in new vnet
authorRyan Moeller <freqlabs@FreeBSD.org>
Sun, 26 Apr 2020 20:55:11 +0000 (20:55 +0000)
committerRyan Moeller <freqlabs@FreeBSD.org>
Sun, 26 Apr 2020 20:55:11 +0000 (20:55 +0000)
commitf1cd4902bf17bfe5e4ac04a808aac798a57171b9
tree2bd16dc803e0f1e05e3202349f1ba507cdd76eed
parent6f6e2de0054b4fa2675688775af17c93f25e7771
sockstat: Attach to jail if in new vnet

Attach sockstat -j to the specified jail if the jail is in a new vnet.
Otherwise we do not see all sockets belonging to the jail.

Reviewed by: jamie
Approved by: mmacy (mentor)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D24413
usr.bin/sockstat/sockstat.c