]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fixes from tony
authorBrian West <brian@freeswitch.org>
Thu, 27 Jan 2011 15:41:18 +0000 (09:41 -0600)
committerBrian West <brian@freeswitch.org>
Thu, 27 Jan 2011 15:41:28 +0000 (09:41 -0600)
scripts/perl/dhcp-inform.pl

index 3f977ca58b65ed2ac8acf6fd5d90cfd44679d486..2ca4bb87325488caa1696dd18d56a7bf200c1e08 100644 (file)
@@ -61,12 +61,7 @@ while ($sock->recv($newmsg, 1024)) {
     }
     print "Sending option 66 as $opt_u\n";
 
-    $handle = IO::Socket::INET->new(Proto => 'udp',
-                                   PeerPort => '68',
-                                   LocalPort => '67',
-                                   ReuseAddr => 1,
-                                   PeerAddr => $dhcpreq->ciaddr(),
-                                  ) or die "socket: $@";
-    $handle->send($dhcpresp->serialize())
+
+    $sock->send($dhcpresp->serialize())
   }
 }