Module Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias TryExcept body ImportFrom alias alias ImportFrom alias ImportFrom alias ImportFrom alias alias ImportFrom alias handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr Str ClassDef bases AttributeLoad NameLoad attr body Assign NameStore ListLoad ListLoad Str Str NameLoad Str ListLoad Str Str NameLoad Str ListLoad Str Str NameLoad Str ListLoad Str Str Num Str NameLoad ListLoad Str Str Num Str NameLoad ListLoad Str Str Num Str NameLoad ListLoad Str Str Num Str NameLoad ListLoad Str Str NameLoad Str ListLoad Str Str NameLoad Str decorator_list ClassDef bases AttributeLoad NameLoad attr body Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore NameLoad Assign NameStore NameLoad FunctionDef arguments args NameParam defaults vararg kwarg body Assign AttributeStore NameLoad attr Dict If AttributeLoad NameLoad attr body For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Expr Call NameLoad NameLoad NameLoad NameLoad AugAssignMult AttributeStore NameLoad attr Num If UnaryOpNot AttributeLoad NameLoad attr body TryExcept body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad name NameStore body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body TryExcept body Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad NameLoad attr Str handlers ExceptHandler body Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr orelse Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body If AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If UnaryOpNot CompareIn Str NameLoad body Assign AttributeStore NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr BinOpMod Str AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad NameLoad attr Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad Dict Str NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body ImportFrom alias If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body With Call NameLoad NameLoad NameStore body For NameStore Call AttributeLoad NameLoad attr body If Call AttributeLoad NameLoad attr Str body Continue Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign TupleStore NameStore NameStore NameLoad If NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad orelse Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr BinOpMod Str NameLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad decorator_list For TupleStore NameStore NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call NameLoad BinOpDiv Call NameLoad keyword NameLoad Call NameLoad Assign NameStore Call NameLoad NameLoad NameLoad decorator_list decorator_list
N/A N/A os twisted.python usage ooni nettest ooni.utils log net N/A N/A scapy.all IP ICMP scapy.all sr1 ooni.lib txscapy ooni.lib.txscapy txsr txsend ooni.templates.scapyt BaseScapyTest N/A N/A N/A N/A N/A N/A log msg This test requires scapy, see www.secdev.org/projects/scapy UsageOptions N/A N/A usage Options N/A N/A optParameters N/A N/A dst d None Host IP to ping N/A file f None File of list of IPs to ping N/A interface i None Network interface to use N/A count c 1 Number of packets to send int N/A size s 56 Number of bytes to send in ICMP data field int N/A ttl l 25 Set the IP Time to Live int N/A timeout t 2 Seconds until timeout if no response int N/A pcap p None Save pcap to this file N/A receive r True Receive response packets N/A EchoTest N/A N/A nettest NetTestCase N/A N/A 
    xxx fill me in
     N/A name echo N/A author Isis Lovecruft <isis@torproject.org> N/A description A simple ping test to see if a host is reachable. N/A version 0.0.2 N/A requiresRoot True N/A usageOptions UsageOptions setUp N/A N/A self N/A a kw N/A N/A N/A self destinations N/A N/A N/A self localOptions N/A N/A N/A key value N/A N/A N/A self localOptions items N/A N/A N/A N/A log debug N/A setting self.%s = %s N/A key value N/A N/A setattr self key value N/A N/A self timeout 1000 N/A N/A N/A self interface N/A N/A N/A N/A iface N/A N/A net getDefaultIface N/A N/A N/A Exception N/A e N/A N/A N/A N/A log msg No network interface specified! N/A N/A N/A log err e N/A N/A N/A N/A log msg N/A Using system default interface: %s iface N/A N/A self interface iface N/A N/A self pcap N/A N/A N/A N/A N/A self pcapfile N/A open N/A self pcap a+ N/A N/A N/A N/A N/A N/A log msg N/A Unable to write to pcap file %s N/A self pcap N/A N/A N/A self pcap N/A N/A net capturePacket N/A self pcapfile N/A N/A N/A self dst N/A N/A N/A self file N/A N/A N/A N/A self dstProcessor N/A self file N/A N/A key value N/A N/A N/A self destinations items N/A N/A N/A label data N/A N/A value items N/A N/A N/A N/A ans data N/A N/A N/A self dst label N/A N/A N/A N/A self addDest N/A self dst N/A N/A N/A log debug N/A self.dst is now: %s N/A self dst N/A N/A N/A log debug N/A Initialization of %s test completed. N/A self name N/A addDest N/A N/A self dest N/A N/A N/A d N/A N/A dest strip N/A N/A N/A self destinations N/A d N/A dst_ip d N/A dstProcessor N/A N/A self inputfile N/A N/A ipaddr IPAddress N/A N/A N/A N/A os path isfile inputfile N/A N/A N/A open inputfile f N/A N/A line N/A N/A f readlines N/A N/A N/A N/A line startswith # N/A N/A N/A N/A N/A self addDest line N/A test_icmp N/A N/A self N/A N/A process_response N/A N/A echo_reply dest N/A N/A N/A N/A ans unans echo_reply N/A ans N/A N/A N/A N/A log msg N/A Received echo reply from %s: %s N/A dest ans N/A N/A N/A N/A log msg N/A No reply was received from %s. Possible censorship event. dest N/A N/A N/A log debug N/A Unanswered packets: %s unans N/A N/A N/A self report N/A dest echo_reply N/A N/A N/A label data N/A N/A N/A self destinations items N/A N/A reply N/A sr1 N/A N/A IP dst lebal N/A ICMP N/A process N/A process_reponse reply label N/A N/A