From 489c0cac783bb59956b931e98211895ef9410c7b Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Sat, 7 Apr 2012 20:01:43 +0200 Subject: [PATCH] support for relaying --- tools/mesh/beacon-udp.pl | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tools/mesh/beacon-udp.pl b/tools/mesh/beacon-udp.pl index 3b2a370..a68e7df 100755 --- a/tools/mesh/beacon-udp.pl +++ b/tools/mesh/beacon-udp.pl @@ -152,10 +152,15 @@ while(1){ }; $ctr++; + my $idoff=0; + if(substr($pkt,12,1) eq "\xee"){ + $idoff=1000; + }; + my $hdr= pack("CCnnNN", 1, # proto (BEACONLOG_SIGHTING) 0, # interface (we only have one antenna per "reader") - $id, # readerid + $id+$idoff, # readerid length($pkt)+16, # size $ctr, # sequence time # timestamp @@ -178,5 +183,8 @@ while(1){ }else{ $typeunknown++; }; + if($idoff){ + $typeunknown++; + }; }; r0ket::rest();