[Maintain-dev] Patch for ticket MNT-1686

Kevin Purdy purdyk at net.oregonstate.edu
Wed Mar 14 13:52:20 PST 2007


Following is a patch resolving the issue at 
http://bugs.osuosl.org/browse/MNT-1686
--
purdyk at krypto:~/maintain$ svn diff modules/build_dhcp/


Index: modules/build_dhcp/build_dhcp.php
===================================================================
--- modules/build_dhcp/build_dhcp.php   (revision 4871)
+++ modules/build_dhcp/build_dhcp.php   (working copy)
@@ -551,8 +551,9 @@
                 $rangeend = IP::int2ip($ranges->end);
                
                 fwrite($fh, "{$prefix}\tpool {\n");
-                // TODO handle DHCP failover
-                //fwrite($fh, "{$prefix}\t\tfailover peer \"dhcp\";\n");
+                // DHCP failover statements
+                fwrite($fh, "{$prefix}\t\tfailover peer \"dhcp\";\n");
+                fwrite($fh, "{$prefix}\t\tdeny dynamic bootp clients;\n");
                
                 $zonerange = DB_DataObject::Factory('zone_range');
                 $zonerange->range = $ranges->id;

-- 
Kevin Purdy * Security Student
Network Engineering * Oregon State University



More information about the Maintain-dev mailing list