File: intf-get-dst.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-- 227 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl
use strict; use warnings;

my $dst = shift || die("Pass destination IP");

use Net::Libdnet::Intf;

my $h = Net::Libdnet::Intf->new;
my $info = $h->getDst($dst) or die("FATAL: getDst");
print $info->print."\n";