Wi5 / odin-wi5-agent

Click-based odin agent that runs on access points
2 stars 7 forks source link

Information needed about the parameter of the odinagent.cc : reading Queue size #30

Open peterrz opened 6 years ago

peterrz commented 6 years ago

Hi, i want to access to Queue size you mention in agent-click-file-gen.py and aslo i have question about the default size. print ''' // create a queue 'q' for transmission of packets by the primary interface (mon0) and connect it to SetTXRate-RadiotapEncap q :: Queue(%s) -> SetTXRate (%s) // e.g. if it is 108, this means 54Mbps=108*500kbps -> RadiotapEncap() -> to_dev :: ToDevice (%s0); ''' % (QUEUE_SIZE, TX_RATE, NETWORK_INTERFACE_NAMES ) the default size is 50, why? in click Queue documentation

DESCRIPTION: Stores incoming packets in a first-in-first-out queue. Drops incoming packets if the > queue already holds SCAPACITY packets. The default for CAPACITY is 1000. CAPACITY is 1000 while you used 50 !!!

And, How can i use this ELEMENT HANDLERS in odinagent.cc. Thanks!

length (read-only) — Returns the current number of packets in the queue.
highwater_length (read-only) — Returns the maximum number of packets that have ever been in the queue at once.
capacity (read/write) — Returns or sets the queue's capacity.
drops(read-only) — Returns the number of packets dropped by the queue so far.
reset_counts (write-only) — When written, resets the drops and highwater_length counters.
reset (write-only) — When written, drops all packets in the queue.
peterrz commented 6 years ago

we can simply use ControlSocket to read Queue. but still, the unanswered question remains about Size