[tor-bugs] #7383 [Ooni]: Scapy sniff() should run in a separate thread and be stoppable

Tor Bug Tracker & Wiki blackhole at torproject.org
Fri Nov 9 18:56:33 UTC 2012


#7383: Scapy sniff() should run in a separate thread and be stoppable
----------------------------+-----------------------------------------------
    Reporter:  hellais      |       Owner:  hellais
        Type:  task         |      Status:  closed 
    Priority:  major        |   Milestone:         
   Component:  Ooni         |     Version:         
  Resolution:  implemented  |    Keywords:         
      Parent:               |      Points:         
Actualpoints:               |  
----------------------------+-----------------------------------------------
Changes (by hellais):

  * status:  new => closed
  * resolution:  => implemented


Comment:

 This has been implemented in https://gitweb.torproject.org/ooni-
 probe.git/commit/6a3ee55b574adaa8740ccafe2e4a01719dc0e86e.

 It is still somewhat hacking especially the escamotage that is used to
 kill the thread that has the sniffer running inside of.

 Ideally we would want to write our own sniff() function that does not rely
 on calling the scapy sniff.

 This is also what is recommend by the author of scapy in a mailing list
 thread.

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


More information about the tor-bugs mailing list