File: intf-list.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 (14 lines) | stat: -rw-r--r-- 286 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/perl
use strict; use warnings;

use Net::Libdnet::Intf;
use Net::Libdnet::Entry::Intf;

my $h = Net::Libdnet::Intf->new;
$h->loop(\&intf_show);

sub intf_show {
   my ($entry, $data) = @_;
   my $e = Net::Libdnet::Entry::Intf->newFromHash($entry);
   print $e->print."\n";
}