Bug 635 - Added a "WillDrop" method to Queue class to tell in advance if a packet will be dropped
Added a "WillDrop" method to Queue class to tell in advance if a packet will ...
Status: RESOLVED INVALID
Product: ns-3
Classification: Unclassified
Component: network
ns-3-dev
All All
: P5 enhancement
Assigned To: ns-bugs
http://groups.google.com/group/ns-3-u...
: feature-request, patch
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2009-07-10 09:01 UTC by wilson thong
Modified: 2010-03-31 22:38 UTC (History)
1 user (show)

See Also:


Attachments
Added a WillDrop () method to Queue class (2.43 KB, patch)
2009-07-10 09:03 UTC, wilson thong
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description wilson thong 2009-07-10 09:01:36 UTC
Attached you may find a patch for adding a WillDrop method to the Queue class API. The patch applies to the DropTailQueue API and implementation also.

I added this method as I need to do actions right before a packet is going to be dropped. I guess this might be a common situation for some sort of protocol developments.

See if you have any comments.
Comment 1 wilson thong 2009-07-10 09:03:17 UTC
Created attachment 527 [details]
Added a WillDrop () method to Queue class
Comment 2 Mathieu Lacage 2009-11-23 09:38:06 UTC
I am not sure I understand what you want to use this patch for. Could you give some example use-cases ?
Comment 3 wilson thong 2010-03-31 22:38:37 UTC
Thanks Mathieu for your time to review the patch~ ^^

I think I better withdraw this patch, as it is going to affects all sub-classes. I should make use of ObjectAggregation system instead if I need to extend the base class for my own use. 


Thanks again~~ ^^