[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-commits] [ooni-probe/master] Make the extra flags use the defaults of scapy
commit 5e8edc54e84143681921cab217e8de12937ca611
Author: Arturo Filastò <art@xxxxxxxxx>
Date: Thu Nov 22 11:41:04 2012 +0100
Make the extra flags use the defaults of scapy
---
ooni/templates/scapyt.py | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ooni/templates/scapyt.py b/ooni/templates/scapyt.py
index ca6d938..ff05922 100644
--- a/ooni/templates/scapyt.py
+++ b/ooni/templates/scapyt.py
@@ -44,24 +44,28 @@ class BaseScapyTest(NetTestCase):
requiresRoot = True
baseFlags = [
- ['ipsrc', 's', 'Check if IP src matches when processing answers'],
+ ['ipsrc', 's', 'Does *not* check if IP src and ICMP IP citation matches when processing answers'],
['seqack', 'k', 'Check if TCP sequence number and ack matches when processing answers'],
['ipid', 'i', 'Check if IP id matches when processing answers']
]
def _setUp(self):
+ self.report['answer_flags'] = []
if self.localOptions['ipsrc']:
- config.checkIPsrc = 1
- else:
config.checkIPsrc = 0
+ else:
+ self.report['answer_flags'].append('ipsrc')
+ config.checkIPsrc = 1
if self.localOptions['ipid']:
+ self.report['answer_flags'].append('ipid')
config.checkIPID = 1
else:
config.checkIPID = 0
# XXX we don't support strict matching
if self.localOptions['seqack']:
+ self.report['answer_flags'].append('seqack')
config.check_TCPerror_seqack = 1
else:
config.check_TCPerror_seqack = 0
_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits