Skip to content
jc-rs
GitHub

proc-net-arp

--proc-net-arpv1.0.0

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

Linuxfileslurpable
$ jc-rs /proc/net/arp

A real pair

From the reference corpus (linux-proc/net_arp.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/arplinux-proc
IP address       HW type     Flags       HW address            Mask     Device
192.168.71.254   0x1         0x2         00:50:56:f3:2f:ae     *        ens33
192.168.71.2     0x1         0x2         00:50:56:f7:4a:fc     *        ens33
192.168.71.1     0x1         0x2         a6:83:e7:d2:a9:65     *        ens33
expected outputjson
Use the Left and Right arrow keys to highlight the matching value in the input.
[
  {
    "IP_address": "192.168.71.254",
    "HW_type": "0x1",
    "Flags": "0x2",
    "HW_address": "00:50:56:f3:2f:ae",
    "Mask": "*",
    "Device": "ens33"
  },
  {
    "IP_address": "192.168.71.2",
    "HW_type": "0x1",
    "Flags": "0x2",
    "HW_address": "00:50:56:f7:4a:fc",
    "Mask": "*",
    "Device": "ens33"
  },
  {
    "IP_address": "192.168.71.1",
    "HW_type": "0x1",
    "Flags": "0x2",
    "HW_address": "a6:83:e7:d2:a9:65",
    "Mask": "*",
    "Device": "ens33"
  }
]

Fixture coverage

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

Magic syntax

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

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