Page MenuHomeFreeBSD

netstat: print route weight
ClosedPublic

Authored by melifaro on Jun 20 2022, 8:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sep 26 2024, 8:04 PM
Unknown Object (File)
Sep 24 2024, 3:10 AM
Unknown Object (File)
Sep 20 2024, 4:13 PM
Unknown Object (File)
Sep 18 2024, 2:27 AM
Unknown Object (File)
Sep 17 2024, 5:45 AM
Unknown Object (File)
Sep 17 2024, 12:50 AM
Unknown Object (File)
Sep 11 2024, 8:55 PM
Unknown Object (File)
Sep 6 2024, 3:30 AM
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