[tor-bugs] #7456 [Ooni]: Sniffer should use ScapySocket

Tor Bug Tracker & Wiki blackhole at torproject.org
Mon Nov 12 10:18:41 UTC 2012


#7456: Sniffer should use ScapySocket
----------------------------------------+-----------------------------------
 Reporter:  hellais                     |          Owner:  hellais
     Type:  enhancement                 |         Status:  new    
 Priority:  normal                      |      Milestone:         
Component:  Ooni                        |        Version:         
 Keywords:  ooni_tests, SponsorH201210  |         Parent:         
   Points:                              |   Actualpoints:         
----------------------------------------+-----------------------------------
 Currently the function capturePackets in ooni/utils/net.py defers to a
 thread the scapy sniff() function.

 This is not ideal since we have ooni/utils/txscapy.py that is made for
 using the scapy super socket file descriptor in a non-blocking way.

 the capturePackets function should be refactored to use ScapyProtocol in
 ooni/utils/txscapy.py

-- 
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/7456>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list