Skip to content
jc-rs
GitHub

proc-net-route

--proc-net-routev1.0.0

Converts `/proc/net/route` file to JSON

Linuxfileslurpable
$ jc-rs /proc/net/route

A real pair

From the reference corpus (linux-proc/net_route.json). The left pane is the input the fixture ships; the right pane is the corpus's expected JSON. CI compares jc-rs with it field by field under the published differential. Hover a value to see where it came from.

/proc/net/routelinux-proc
Iface	Destination	Gateway 	Flags	RefCnt	Use	Metric	Mask		MTU	Window	IRTT                                                       
ens33	00000000	0247A8C0	0003	0	0	100	00000000	0	0	0                                                                            
ens33	0047A8C0	00000000	0001	0	0	0	00FFFFFF	0	0	0                                                                              
ens33	0247A8C0	00000000	0005	0	0	100	FFFFFFFF	0	0	0                                                                            
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "Iface": "ens33",
    "Destination": "00000000",
    "Gateway": "0247A8C0",
    "Flags": "0003",
    "RefCnt": 0,
    "Use": 0,
    "Metric": 100,
    "Mask": "00000000",
    "MTU": 0,
    "Window": 0,
    "IRTT": 0
  },
  {
    "Iface": "ens33",
    "Destination": "0047A8C0",
    "Gateway": "00000000",
    "Flags": "0001",
    "RefCnt": 0,
    "Use": 0,
    "Metric": 0,
    "Mask": "00FFFFFF",
    "MTU": 0,
    "Window": 0,
    "IRTT": 0
  },
  {
    "Iface": "ens33",
    "Destination": "0247A8C0",
    "Gateway": "00000000",
    "Flags": "0005",
    "RefCnt": 0,
    "Use": 0,
    "Metric": 100,
    "Mask": "FFFFFFFF",
    "MTU": 0,
    "Window": 0,
    "IRTT": 0
  }
]

Fixture coverage

1/1oracle-valid pairs match under the published structural JSON comparison

Magic syntax

jc-rs /proc/net/routejc-rs reads this kernel-interface file directly and dispatches it through the matching /proc parser.

Source: crates/jc-rs-parsers/src/proc/proc_net_route.rs. jc-rs targets the schemas defined by the original Python tool. Fixture coverage above is the measured evidence for this parser; test the inputs your pipeline depends on. Compare