File: route_get6.pl

package info (click to toggle)
libnet-libdnet6-perl 0.26-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 128 kB
  • ctags: 24
  • sloc: perl: 348; makefile: 2
file content (15 lines) | stat: -rw-r--r-- 264 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl
use strict;
use warnings;

my $dst = shift || die("Specify target host\n");

use Net::Frame::Layer qw(:subs);

$dst = getHostIpv6Addr($dst) or die("Lookup\n");

use Data::Dumper;
use Net::Libdnet6;

my $h = route_get6($dst);
print Dumper($h)."\n";