Bugzilla – Bug 635
Added a "WillDrop" method to Queue class to tell in advance if a packet will be dropped
Last modified: 2010-03-31 22:38:37 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.
Created attachment 527 [details] Added a WillDrop () method to Queue class
I am not sure I understand what you want to use this patch for. Could you give some example use-cases ?
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~~ ^^