Added a method to Queue class for checking if a packet is going to be dropped

5 views
Skip to first unread message

Wilson Thong

unread,
Jul 10, 2009, 9:05:35 AM7/10/09
to ns-3-users
http://www.nsnam.org/bugzilla/show_bug.cgi?id=635

Attached you may find a patch for adding a WillDrop method to the
Queue class
API. The patch applies to the DropTailQueue class 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.

However, this method is added to Queue class, meaning that all other
queuing classes must implement this method before being constructable.
Don't know if you have any comments on this.
Reply all
Reply to author
Forward
0 new messages