Small bug fix make-ip-conf.pl

Brecht Vermeulen Brecht.Vermeulen at rug.ac.be
Mon Jan 22 18:27:41 EST 2001


Dear,

I've fixed a small bug fix in the make-ip-conf.pl example :
The LookupIPRoute element needs IPaddress/mask, but one of the for loops
creating the subnet routes didn't insert the '/'. (and I hadn't tried the
example for some time ;-) )

So, the patch is (I've removed the irrevelant changes regarding IP
addresses) :

*** make-ip-conf.pl     Thu Oct  5 01:03:32 2000
--- make-ip-conf_helios.pl      Mon Jan 22 18:21:46 2001

***************
*** 106,119 ****
  for($i = 0; $i < $nifs; $i++){
      my $ii = ip2i($ifs->[$i]->[2]);
      my $mask = ip2i($ifs->[$i]->[3]);
!     printf(" %s %s %d,\n",
             i2ip($ii & $mask),
             i2ip($mask),
             $i + 1);
  }
  print " 255.255.255.255/32 0.0.0.0 0,\n";
  print " 0.0.0.0/32 0,\n";
! print " 0.0.0.0/0 18.26.4.1 1);\n"; # XXX
 
  print <<EOF;
 
--- 107,120 ----
  for($i = 0; $i < $nifs; $i++){
      my $ii = ip2i($ifs->[$i]->[2]);
      my $mask = ip2i($ifs->[$i]->[3]);
!     printf(" %s/%s %d,\n",
             i2ip($ii & $mask),
             i2ip($mask),
             $i + 1);
  }
  print " 255.255.255.255/32 0.0.0.0 0,\n";
  print " 0.0.0.0/32 0,\n";
! print " 0.0.0.0/0 10.10.10.12 1);\n"; # XXX
 
  print <<EOF; 


best regards,
Brecht

---------------------------------
Brecht Vermeulen

Department of Information Technology (INTEC)
Ghent University - IMEC
Sint-Pietersnieuwstraat 41
B-9000 Gent
Belgium

Phone : +32 9 267 35 86
Fax : +32 9 267 35 99
Email : brecht.vermeulen at intec2.rug.ac.be




More information about the click mailing list