summaryrefslogtreecommitdiff
path: root/attic
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-15 09:45:57 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-09-15 09:45:57 -0700
commit4ba426934439ac37e63e30f53a93a7d765f5cbba (patch)
treeae9d5b385b37d26ab5b171e786d0912df8e97342 /attic
parent2dcf5848344547abe0b9d9e2f7b6ba5d006ecbd5 (diff)
downloadinfinitytier-4ba426934439ac37e63e30f53a93a7d765f5cbba.tar.gz
infinitytier-4ba426934439ac37e63e30f53a93a7d765f5cbba.zip
cleanup
Diffstat (limited to 'attic')
-rwxr-xr-xattic/multicast-trace-receiver.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/attic/multicast-trace-receiver.rb b/attic/multicast-trace-receiver.rb
deleted file mode 100755
index 74593859..00000000
--- a/attic/multicast-trace-receiver.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/ruby
-
-#
-# This can be used with the debug build option ZT_TRACE_MULTICAST to trace
-# a multicast cascade.
-#
-# Define ZT_TRACE_MULTICAST to the IP/port where this script will be listening.
-# The default port here is 6060, so an example would be to add:
-#
-# -DZT_TRACE_MULTICAST=\"10.0.0.1/6060\"
-#
-# ... to DEFS in the Makefile. Then build and run ZeroTier One on a testnet and
-# the box defined as the trace endpoint will get spammed with UDP packets
-# containing trace information for multicast propagation. This script then dumps
-# these trace packets to stdout. Look at the code in PacketDecoder.cpp to see
-# what this information entails.
-#
-
-require 'socket'
-
-s = UDPSocket.new
-s.bind('0.0.0.0',6060)
-
-loop {
- m = s.recvfrom(4096)[0].chomp
- puts m if m.length > 0
-}