File: arp-delete.pl

package info (click to toggle)
libnet-libdnet-perl 0.990-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 404 kB
  • sloc: perl: 987; ansic: 311; makefile: 9
file content (10 lines) | stat: -rw-r--r-- 209 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl
use strict; use warnings;

my $ip = shift or die("Pass IP");

use Net::Libdnet::Arp;

my $h = Net::Libdnet::Arp->new;
my $success = $h->delete($ip);
$success ? print "Ok\n" : print "Failed\n";