Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
peterrz opened this issue Nov 26, 2017 · 1 comment

Comments

@peterrz
Copy link

peterrz commented Nov 26, 2017

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 peterrz changed the title Information needed about the parameters of the odinagent.cc : reading Queue size Information needed about the parameter of the odinagent.cc : reading Queue size Nov 26, 2017
@peterrz
Copy link
Author

peterrz commented Dec 27, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant