Pure OCaml ARP table lookup - reads /proc/net/arp on Linux and arp -a on macOS/BSD
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Upgrade to ocamlformat 0.29.0; fix csvt/sexpt streaming; reformat

- Update .ocamlformat to 0.29.0 across all 591 files
- csvt: reuse single Buffer.t for field reads (no alloc per field)
- sexpt: Obj members decoded from stream into Dict, typed Variant GADT
- Reformat all source files for 0.29.0

+5 -5
+1 -1
.ocamlformat
··· 1 - version = 0.28.1 1 + version = 0.29.0
+4 -4
lib/arp.mli
··· 12 12 {2 Example} 13 13 14 14 {[ 15 - let () = 16 - List.iter 17 - (fun entry -> Printf.printf "%s -> %s\n" entry.Arp.ip entry.Arp.mac) 18 - (Arp.table ()) 15 + let () = 16 + List.iter 17 + (fun entry -> Printf.printf "%s -> %s\n" entry.Arp.ip entry.Arp.mac) 18 + (Arp.table ()) 19 19 ]} *) 20 20 21 21 type entry = { ip : string; mac : string; interface : string option }