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)
Tue, Oct 29, 1:19 PM
Unknown Object (File)
Sep 17 2024, 1:30 PM
Unknown Object (File)
Sep 9 2024, 3:12 AM
Unknown Object (File)
Sep 9 2024, 3:12 AM
Unknown Object (File)
Sep 9 2024, 1:57 AM
Unknown Object (File)
Sep 9 2024, 12:27 AM
Unknown Object (File)
Sep 7 2024, 3:38 PM
Unknown Object (File)
Sep 5 2024, 8:38 PM

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.