From 681f809f0a15492ab0f6e6a815bf3df4bd1e5365 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Thu, 5 Apr 2012 16:12:35 +0200 Subject: [PATCH] Better use wildcard source ip. --- tools/mesh/beacon-udp.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/mesh/beacon-udp.pl b/tools/mesh/beacon-udp.pl index 8488631..3b2a370 100755 --- a/tools/mesh/beacon-udp.pl +++ b/tools/mesh/beacon-udp.pl @@ -58,6 +58,7 @@ use Sys::Hostname; my($iaddr,$proto,$paddr); $iaddr = gethostbyname(hostname()); +$iaddr = pack('C4', 0,0,0,0); $proto = getprotobyname('udp'); $paddr = sockaddr_in(0, $iaddr); # 0 means let kernel pick