Skip to content
jc-rs
GitHub

proc-net-igmp6

--proc-net-igmp6v1.0.0

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

Linuxfileslurpable
$ jc-rs /proc/net/igmp6

A real pair

From the reference corpus (linux-proc/net_igmp6.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/igmp6linux-proc
1    lo              ff020000000000000000000000000001     1 0000000C 0
1    lo              ff010000000000000000000000000001     1 00000008 0
2    ens33           ff0200000000000000000001ffa4e315     1 00000004 0
2    ens33           ff020000000000000000000000000001     2 0000000C 0
2    ens33           ff010000000000000000000000000001     1 00000008 0
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "index": 1,
    "name": "lo",
    "address": "ff020000000000000000000000000001",
    "users": 1,
    "group": "0000000C",
    "reporters": 0
  },
  {
    "index": 1,
    "name": "lo",
    "address": "ff010000000000000000000000000001",
    "users": 1,
    "group": "00000008",
    "reporters": 0
  },
  {
    "index": 2,
    "name": "ens33",
    "address": "ff0200000000000000000001ffa4e315",
    "users": 1,
    "group": "00000004",
    "reporters": 0
  },
  {
    "index": 2,
    "name": "ens33",
    "address": "ff020000000000000000000000000001",
    "users": 2,
    "group": "0000000C",
    "reporters": 0
  },
  {
    "index": 2,
    "name": "ens33",
    "address": "ff010000000000000000000000000001",
    "users": 1,
    "group": "00000008",
    "reporters": 0
  }
]

Fixture coverage

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

Magic syntax

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

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