https://github.com/abock/arp
ARP Table Dumping in .NET
https://github.com/abock/arp
Last synced: 10 months ago
JSON representation
ARP Table Dumping in .NET
- Host: GitHub
- URL: https://github.com/abock/arp
- Owner: abock
- Created: 2015-02-28T17:29:57.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-28T18:08:05.000Z (over 11 years ago)
- Last Synced: 2023-04-13T08:26:50.523Z (about 3 years ago)
- Language: C#
- Size: 121 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ARP Table Dumping in .NET
This is basic support for using `sysctl` to dump the ARP table. Only
the IP address and MAC address of entries in the table are parsed out
of the native structures, but this could easily be extended.
This sample is derived from Apple's open source implementation of the
[Mac OS X/BSD `arp` command line utility](http://opensource.apple.com/source/network_cmds/network_cmds-457/arp.tproj/arp.c).
Tested only on Mac OS X 10.10, but theoretically should work on iOS,
provided Apple allows access to the appropriate `sysctl` call. Likely
cannot be submitted to the App Store howerver.
## Build
`% xbuild Arp.sln`
## Run
`% mono bin/Debug/Arp.exe`
Outputs devices connected to the network:
192.168.0.1 => 000D6B38D521
192.168.0.9 => 11F9426C13D7
192.168.0.255 => FFFFFFFFFFFF