Skip to content
jc-rs
GitHub

proc-net-dev

--proc-net-devv1.0.0

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

Linuxfileslurpable
$ jc-rs /proc/net/dev

A real pair

From the reference corpus (linux-proc/net_dev.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/devlinux-proc
Inter-|   Receive                                                |  Transmit
 face |bytes    packets errs drop fifo frame compressed multicast|bytes    packets errs drop fifo colls carrier compressed
    lo:   13222     152    0    0    0     0          0         0    13222     152    0    0    0     0       0          0
 ens33: 60600053  109378    0    0    0     0          0         0 44256546  121425    0    0    0     0       0          0
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "interface": "lo",
    "r_bytes": 13222,
    "r_packets": 152,
    "r_errs": 0,
    "r_drop": 0,
    "r_fifo": 0,
    "r_frame": 0,
    "r_compressed": 0,
    "r_multicast": 0,
    "t_bytes": 13222,
    "t_packets": 152,
    "t_errs": 0,
    "t_drop": 0,
    "t_fifo": 0,
    "t_colls": 0,
    "t_carrier": 0,
    "t_compressed": 0
  },
  {
    "interface": "ens33",
    "r_bytes": 60600053,
    "r_packets": 109378,
    "r_errs": 0,
    "r_drop": 0,
    "r_fifo": 0,
    "r_frame": 0,
    "r_compressed": 0,
    "r_multicast": 0,
    "t_bytes": 44256546,
    "t_packets": 121425,
    "t_errs": 0,
    "t_drop": 0,
    "t_fifo": 0,
    "t_colls": 0,
    "t_carrier": 0,
    "t_compressed": 0
  }
]

Fixture coverage

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

Magic syntax

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

Source: crates/jc-rs-parsers/src/proc/proc_net_dev.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