Changeset 834 for trunk/DNSDB.pm
- Timestamp:
- 04/19/22 16:34:34 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/DNSDB.pm
r833 r834 1798 1798 my $tmpl = shift; 1799 1799 my $ip = shift; 1800 my $subnet = shift; # for %ngb and %c1800 my $subnet = shift; # %ngb, %c, and %x 1801 1801 my $ipindex = shift; # for %c 1802 1802 … … 1842 1842 1843 1843 if ($cn) { 1844 # "natural n'th IP in the block" pattern 1845 $$tmpl =~ s/$cn/$ipindex+1/e; 1844 # "n'th natural IP in the block" pattern. 1845 my $iptmp = new NetAddr::IP $ip; 1846 my $natdex = scalar($iptmp - $$subnet); 1847 $natdex++; 1848 $$tmpl =~ s/$cn/$natdex/; 1846 1849 } 1847 1850
Note:
See TracChangeset
for help on using the changeset viewer.