]> andersk Git - routeradvert-scan.git/commitdiff
Move to -c rcc-auto. master
authorAnders Kaseorg <andersk@mit.edu>
Sun, 25 Apr 2010 05:25:59 +0000 (01:25 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Sun, 25 Apr 2010 06:41:48 +0000 (02:41 -0400)
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
routeradvert-scan.py

index d739a9ad27b74c959498d73b106f38e840957b2d..1e1f62b197a67db0c6bc564565282328ec8b0a14 100755 (executable)
@@ -40,11 +40,11 @@ import urllib
 
 # configuration
 interface = 'eth1'
-timeout = 30
-zclass = 'andersk-auto'
+timeout = 120
+zclass = 'rcc-auto'
 zinstance = '6to4'
 zsig = '%s on %s' % (sys.argv[0], socket.gethostname())
-cert_file = '/home/anders/Private/andersk.pem'
+cert_file = os.path.join(os.path.dirname(__file__), 'sipbcert.pem')
 # end configuration
 
 mac_re = re.compile(r'^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$')
@@ -52,7 +52,7 @@ mac_re = re.compile(r'^(?:[0-9a-fA-F]{2}:){5}[0-9a-fA-F]{2}$')
 seen_macs = {}
 
 def msg(m):
-    os.spawnlp(os.P_WAIT, 'zwrite', 'zwrite', '-q', '-d', '-c', zclass, '-i', zinstance, '-s', zsig, '-m', m)
+    os.spawnlp(os.P_WAIT, 'zwrite', 'zwrite', '-q', '-d', '-c', zclass, '-i', zinstance, '-s', zsig, '-O', 'auto', '-m', m)
 
 br = mechanize.Browser()
 br.add_client_certificate("https://nic.mit.edu", cert_file, cert_file)
@@ -97,8 +97,6 @@ def check_gone():
     else:
         signal.alarm(int(math.ceil(next - now)))
 
-msg('Starting %s' % sys.argv[0])
-
 signal.signal(signal.SIGALRM, lambda signum, frame: check_gone())
 
 p = subprocess.Popen(['tcpdump', '-elnp', '-i', interface, 'icmp6 and (ip6[40] = 134)'], stdout=subprocess.PIPE)
This page took 0.296966 seconds and 5 git commands to generate.