Page MenuHomeFreeBSD

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

Authored by pouria on Jul 19 2026, 7:32 PM.
Tags
None
Referenced Files
F170805816: D58347.id182251.diff
Sun, Sep 6, 6:16 PM
Unknown Object (File)
Sun, Sep 6, 2:45 AM
Unknown Object (File)
Sat, Sep 5, 10:06 AM
Unknown Object (File)
Fri, Sep 4, 10:00 PM
Unknown Object (File)
Wed, Sep 2, 3:05 PM
Unknown Object (File)
Wed, Sep 2, 3:01 PM
Unknown Object (File)
Sat, Aug 29, 2:46 PM
Unknown Object (File)
Thu, Aug 13, 2:38 AM
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.Jul 28 2026, 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.