Artificial intelligent assistant

Is there a file for ip neigh show I am looking for the file containing the output of `ip neigh show` command. I need the file as I can't invoke command and redirect as per requirement. The closest thing I found is the file `/proc/net/arp`. It contains almost the same IP-MAC entries but in a different format. Do there exist any file containing the same info which is displayed by `ip neigh show`?

According to the source code, `ip neigh show` output is based on `rtnetlink` messages from the kernel.

See `netlink(7)` man page for an example on how to operate a (rt)netlink socket, and the above-mentioned `rtnetlink(7)` man page for the necessary constants. I guess you'd want a `RTM_GETNEIGH` message.

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy b4f782fc322a9a9e3daa30bf90814b03