I want to process some before packeted dropped.
so I added following code to sfq.cc
---------
void SFQ::enque(Packet* pkt)
{
if ((used >= (left >> 1))
|| (left <
buckets_ && used > fairshare)
|| (left <=
0)) {
ICMPMsg->dropped_++ ;
drop(pkt);
}
---------
but, ns give me following message.
_________
Segmentation fault(Core Dumped)
_________
When I asked like this before, Tarik answered that might be happening because packets accumulate a a certain point in my program and they are not dropped nor do they reach destination.
But, I don't understand Why packets accumulated
Could you tell me?
--
Lee Kyeseon
Computer Communications Lab., CNU
Tel: +82-42-821-7792