arp-cache-loader

Loading tools of arp cache, which make it more convenient to find corresponding mac address by ip address.

Created from templates made available by Stagehand under a BSD-style license.

中文文档

Usage

ArpLoader provides two methods to load arp cache:

  1. ArpLoader.loadRawArpCache() loads raw arp cache as string;
  2. ArpLoader.loadArpCacheMap() loads arp cache and parse it to a map with ip address as the key and mac address as the value.

Here is a simple usage example:

import 'package:arp_cache_loader/arp_cache_loader.dart';

void main() async{
  // load raw arp cache as string
  final String rawArpCache = await ArpLoader.loadRawArpCache();

  print('Raw arp cache: $rawArpCache');

  // load arp cache as map
  final Map<String,String> arpCacheMap = await ArpLoader.loadArpCacheAsMap();

  print('Arp cache in map: $arpCacheMap');
}

Platforms

  • windows
  • android
  • linux
  • macos(untested)

Warning

Issues

Please submit issues at the issue tracker.

Libraries

arp_cache_loader