Page MenuHomeFreeBSD

netstat(1): Emit nhop flags for encoding styles with Wflag
ClosedPublic

Authored by pouria on Sun, Jul 19, 7:32 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Aug 13, 2:38 AM
Unknown Object (File)
Tue, Aug 11, 4:58 PM
Unknown Object (File)
Thu, Aug 6, 11:13 AM
Unknown Object (File)
Wed, Aug 5, 9:45 PM
Unknown Object (File)
Mon, Aug 3, 1:42 AM
Unknown Object (File)
Sat, Aug 1, 4:11 AM
Unknown Object (File)
Fri, Jul 31, 9:22 AM
Unknown Object (File)
Thu, Jul 30, 7:02 PM
Subscribers

Details

Summary

Show nhop flags like invalid nexthop to debug cases like
the PR below.

PR: 296883

Diff Detail

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

Event Timeline

How does the output change? If changes may break someone's parser, it is worth mentioning that. Some people still have scripts that parse netstat output to automate their things.

This revision is now accepted and ready to land.Tue, Jul 28, 3:15 AM

How does the output change? If changes may break someone's parser, it is worth mentioning that. Some people still have scripts that parse netstat output to automate their things.

To address this concern, I only emit nhop flags output with encoding styles like json and xml, AND only if the wide flag (-W) is specified.
It won't show up in normal output even with -W.