Index: trunk/cgi-bin/IPDB.pm
===================================================================
--- trunk/cgi-bin/IPDB.pm	(revision 562)
+++ trunk/cgi-bin/IPDB.pm	(revision 563)
@@ -507,9 +507,9 @@
   my $pool = shift;
 
-  my $sth = $dbh->prepare("SELECT ip,custid,available,description,type".
+  my $sth = $dbh->prepare("SELECT ip,custid,available,description,type,rdepth".
         " FROM poolips WHERE pool = ? ORDER BY ip");
   $sth->execute($pool);
   my @poolips;
-  while (my ($ip,$custid,$available,$desc,$type) = $sth->fetchrow_array) {
+  while (my ($ip,$custid,$available,$desc,$type,$rdepth) = $sth->fetchrow_array) {
     my %row = (
         ip => $ip,
@@ -517,5 +517,6 @@
         available => $available,
         desc => $desc,
-        delme => $available eq 'n'
+        delme => $available eq 'n',
+	ipdepth => $rdepth,
         );
     push @poolips, \%row;
