aboutsummaryrefslogtreecommitdiffstats
path: root/src/llc.h
AgeCommit message (Collapse)AuthorFilesLines
2013-12-25llc: Calculate the average queuing delay of the LLC queuesDaniel Willmann1-0/+1
Use a formula like it is used with TCP. This can help to make decisions about if frames should be dropped or not at the time we enqueue them. This code will store two timeval structs in fron the of the actual data and compute the average at the time of the dequeue.
2013-12-18llc: Count the number of frames queued inside the LLC queueHolger Hans Peter Freyther1-0/+2
2013-11-21types: Add a simple testcase for basic types and fix the LLC codeHolger Hans Peter Freyther1-2/+2
* Make append_data, remaining_space and fits_in_current.. work on m_length and not the index. This ways things can't overflow. * The current API consumer was moving the m_index so it should have worked okay.
2013-11-13llc: Move the decision if a frame has expired into the LLCHolger Hans Peter Freyther1-0/+1
This way the generation of the expiry information and the check is at the same place. This should make reading the code more easy.
2013-11-13llc: Make the index 'private' by appending a m_ to it.Holger Hans Peter Freyther1-7/+7
At some point in the future we can start using the private/protected keywords in this struct.
2013-11-13llc: Move some more secrets from the TBF into the LLCHolger Hans Peter Freyther1-2/+29
Introduce a method to append data to a TBF and then reset the read pointer when the frame has been sent.
2013-11-13llc: Move the timeout calculation into the TBFHolger Hans Peter Freyther1-0/+2
2013-11-13llc: Remove one of the two variants to put data into the frameHolger Hans Peter Freyther1-1/+0
2013-11-07llc: Move all direct accesses to the frame into the llc structureHolger Hans Peter Freyther1-0/+15
Add some todo items where we could add assertions now that I see the constraints and invariants of this code.
2013-11-07llc: Move the llc structure to a new header fileHolger Hans Peter Freyther1-0/+45