Bug 635

Summary: Added a "WillDrop" method to Queue class to tell in advance if a packet will be dropped
Product: ns-3 Reporter: wilson thong <wilsonwk>
Component: networkAssignee: ns-bugs <ns-bugs>
Status: RESOLVED INVALID    
Severity: enhancement CC: mathieu.lacage
Priority: P5 Keywords: feature-request, patch
Version: ns-3-dev   
Hardware: All   
OS: All   
URL: http://groups.google.com/group/ns-3-users/browse_thread/thread/4cf6636eb7eb93e6
Attachments: Added a WillDrop () method to Queue class

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~~ ^^