- Timestamp:
- Feb 27, 2010, 2:59:28 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/network_address.php
r267 r277 35 35 $HostMask = 0xffffffff ^ $this->GetNetMask(); 36 36 $To = new NetworkAddressIPv4(); 37 $To->Address = $ this->From+ $HostMask;37 $To->Address = $From->Address + $HostMask; 38 38 $To->Prefix = 32; 39 39 return(array('From' => $From, 'To' => $To)); -
trunk/system/generators/firewall_nat.php
r276 r277 41 41 $NewAddress->Prefix = $Subnet['ExtMask']; 42 42 $Range = $NewAddress->GetRange(); 43 if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToStrin ().'-'.$Range['To']->AddressToString();44 else $Rang e = $Range['From']->AddressToString();43 if($Subnet['ExtMask'] != 32) $Range = $Range['From']->AddressToString().'-'.$Range['To']->AddressToString(); 44 else $Rang e = $Range['From']->AddressToString(); 45 45 if($Subnet['Mask'] == 32) $Src = $Subnet['AddressRange']; 46 46 else $Src = $Subnet['AddressRange'].'/'.$Subnet['Mask'];
Note:
See TracChangeset
for help on using the changeset viewer.