Page MenuHomeFreeBSD

netstat(1): teach netstat to attach to jails
ClosedPublic

Authored by dfr on Aug 14 2023, 9:17 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 27, 7:46 AM
Unknown Object (File)
Sat, Apr 27, 7:45 AM
Unknown Object (File)
Sat, Apr 27, 6:08 AM
Unknown Object (File)
Mar 12 2024, 6:09 PM
Unknown Object (File)
Mar 12 2024, 6:09 PM
Unknown Object (File)
Mar 12 2024, 2:47 PM
Unknown Object (File)
Dec 23 2023, 10:31 AM
Unknown Object (File)
Dec 13 2023, 3:37 AM

Details

Summary

Add -j <jail> flag to netstat(1) to allow access to network information
from a jail.

MFC after: 1 week

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

dfr requested review of this revision.Aug 14 2023, 9:17 AM

The code change here is fairly straightforward and brings netstat in line with similar support in ifconfig and route. The manpage change is larger and it would be nice to get a review if possible. I know people are busy this week preparing for the stable/14 branch - I'll leave the review up for another day. If someone has time to give it a review then great, otherwise I'll commit anyway and we can fix any manpage issues as followups.

This revision was not accepted when it landed; it landed in state Needs Review.Aug 16 2023, 1:06 PM
This revision was automatically updated to reflect the committed changes.

late to the party, but the man page is missing a .Dd update.

late to the party, but the man page is missing a .Dd update.

Well spotted, thanks - I've pushed an update.