Page MenuHomeFreeBSD

netstat: print route weight
ClosedPublic

Authored by melifaro on Jun 20 2022, 8:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Feb 8 2024, 9:18 PM
Unknown Object (File)
Dec 23 2023, 2:55 AM
Unknown Object (File)
Dec 20 2023, 5:38 AM
Unknown Object (File)
Dec 10 2023, 7:48 PM
Unknown Object (File)
Oct 1 2023, 12:47 AM
Unknown Object (File)
Aug 14 2023, 9:51 AM
Unknown Object (File)
Jul 19 2023, 3:56 AM
Unknown Object (File)
Jul 8 2023, 11:46 PM
Subscribers

Details

Summary

Output relative path weight when listing routes in netstat w/ non-display output (e.g json/xml).

Test Plan
8:56 [2] m@devel2 netstat -4rnW --libxo json,pretty
{
  "statistics": {
    "route-information": {
      "route-table": {
        "rt-family": [
          {
            "address-family": "Internet",
            "rt-entry": [
              {
                "destination": "default",
                "gateway": "10.0.0.1",
                "flags": "UGS",
                "flags_pretty": [
                  "up",
                  "gateway",
                  "static"
                ],
                "weight": 1,
                "nhop": 4,
                "mtu": 1500,
                "interface-name": "vtnet0"
              },

Diff Detail

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