4 # This script detects handshake patterns
5 # and changes channel numbers for host names
7 #0_05_01_981_298 node309 #45 +hs f33dff82
8 #0_05_02_039_313 lossy #16 -hs f33dff82
13 / (\S+) (\#\d+)/ || next;
16 if ( exists $CH{"$src$ch"} ){
17 s/$ch/$CH{"$src$ch"}$ch/ or die $_;
18 } elsif (/[\+\-]hs ([a-f0-9]+)$/) {
19 if ( exists $HSSRC{$1} ) {
20 $CH{"$src$ch"} = $HSSRC{$1};
21 my $srckey = $HSSRC{$1}.$HSSRCCH{$1};