Skip to content
jc-rs
GitHub

proc-net-dev-mcast

--proc-net-dev-mcastv1.0.0

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

Linuxfileslurpable
$ jc-rs /proc/net/dev_mcast

A real pair

From the reference corpus (linux-proc/net_dev_mcast.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/dev_mcastlinux-proc
2    ens33           1     0     333300000001
2    ens33           1     0     01005e000001
2    ens33           1     0     0180c2000000
2    ens33           1     0     0180c2000003
2    ens33           1     0     0180c200000e
2    ens33           1     0     3333ffa4e315
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "333300000001"
  },
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "01005e000001"
  },
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "0180c2000000"
  },
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "0180c2000003"
  },
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "0180c200000e"
  },
  {
    "index": 2,
    "interface": "ens33",
    "dmi_u": 1,
    "dmi_g": 0,
    "dmi_address": "3333ffa4e315"
  }
]

Fixture coverage

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

Magic syntax

jc-rs /proc/net/dev_mcastjc-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_mcast.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