Skip to content
jc-rs
GitHub

proc-net-igmp

--proc-net-igmpv1.0.0

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

Linuxfileslurpable
$ jc-rs /proc/net/igmp

A real pair

From the reference corpus (linux-proc/net_igmp.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/igmplinux-proc
Idx	Device    : Count Querier	Group    Users Timer	Reporter
1	lo        :     1      V3
				010000E0     1 0:00000000		0
2	ens33     :     1      V3
				010000E0     1 0:00000000		0
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "index": 1,
    "device": "lo",
    "count": 1,
    "querier": "V3",
    "groups": [
      {
        "address": "010000E0",
        "users": 1,
        "timer": "0:00000000",
        "reporter": 0
      }
    ]
  },
  {
    "index": 2,
    "device": "ens33",
    "count": 1,
    "querier": "V3",
    "groups": [
      {
        "address": "010000E0",
        "users": 1,
        "timer": "0:00000000",
        "reporter": 0
      }
    ]
  }
]

Fixture coverage

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

Magic syntax

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

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