From df4498282622243f5d880d8c196abbebe2168e42 Mon Sep 17 00:00:00 2001 From: Ronald Jochems Date: Mon, 23 Jan 2012 09:47:01 +0000 Subject: [PATCH] fixed two errors and version number --- rip44d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rip44d b/rip44d index 3c30368..3cc7abe 100755 --- a/rip44d +++ b/rip44d @@ -70,7 +70,7 @@ my $route_ttl = 7*24*60*60; my %current_routes; my $me = 'rip44d'; -my $VERSION = '1.3'; +my $VERSION = '1.4'; openlog($me, 'cons,pid', 'user'); @@ -119,7 +119,7 @@ sub fill_local_ifs() my $s = `$ifconfig -a`; while ($s =~ s/inet addr:(\d+\.\d+\.\d+\.\d+)//) { - do_syslog("found local address: $1") if ( $verbose >= 1 ); + do_syslog("found local address: $1") if ($verbose); $my_addresses{$1} = 1; } } @@ -443,7 +443,7 @@ fill_local_ifs(); system($ifconfig, $tunnel_if, 'multicast') == 0 or die "ifconfig $tunnel_if multicast failed: $?\n"; # Create the UDP multicast socket to receive RIP broadcasts -do_syslog("opening UDP socket $UDP_port...") if ( $verbose >= 1 ); +do_syslog("opening UDP socket $UDP_port...") if ($verbose); my $socket = IO::Socket::Multicast->new( LocalPort => $UDP_port, ReuseAddr => 1,