AMPR-Rip44
view release on metacpan or search on metacpan
$verbose = 2;
}
if ($opts{'a'}) {
foreach my $a (split(',', $opts{'a'})) {
$my_addresses{$a} = 1;
}
}
fill_local_ifs();
# Enable multicast on the tunnel interface, the flag is
# not set by default
system($ifconfig, $tunnel_if, 'multicast') == 0 or die "ifconfig $tunnel_if multicast failed: $?\n";
# Create the UDP multicast socket to receive RIP broadcasts
warn "opening UDP socket...\n" if ($verbose);
my $socket = IO::Socket::Multicast->new(
LocalPort => 520,
ReuseAddr => 1,
) or die $!;
( run in 0.573 second using v1.01-cache-2.11-cpan-94b05bcf43c )