[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs