[tor-bugs] #6857 [Ooni]: Write Protocol Helpers
Tor Bug Tracker & Wiki
blackhole at torproject.org
Sat Jan 12 09:45:28 UTC 2013
#6857: Write Protocol Helpers
--------------------+-------------------------------------------------------
Reporter: isis | Owner: isis
Type: task | Status: accepted
Priority: normal | Milestone:
Component: Ooni | Version:
Keywords: ooni | Parent: #5869
Points: | Actualpoints:
--------------------+-------------------------------------------------------
Comment(by hellais):
Replying to [comment:5 isis]:
> Not a helper for a specific protocol, but I've been working on the scapy
template and some helpers for working with scapy.
>
> Current work is in my 'dev-scapy-tests' branch, and an example of the
packet creation helper is here:
>
> https://gitweb.torproject.org/user/isis/ooni-
probe.git/blob/db59380e1d68d795d3e4590631e06e27c961154e:/ooni/utils/packet.py
I am uncertain exactly what the use-case of such decorators should be.
Why would it be preferred to use such a decorator over say:
{{{
count = 10
for dst in destinations:
packets.append(TCP(dst=dst)*count))
}}}
I think that having a decorator to do these kinds of operations adds
unnecessary complexity.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/6857#comment:6>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list