[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] diffserv question
hi all,
When I install Nortel diffserv module in ns-2.1b7,
error message indicates off_flags_ in dsred.cc is not declared.
void dsREDQueue::enque(Packet* pkt) {
int codePt, queue, prec;
hdr_ip* iph = hdr_ip::access(pkt);
codePt = iph->prio();
int ecn = 0;
//looking up queue and prec numbers for that codept
lookupPHBTable(codePt, &queue, &prec);
// code added for ECN support
hdr_flags* hf = (hdr_flags*)(pkt->access(off_flags_));
I don't know what's the meaning of off_flags_.
How to declare it?
I tried to declare as following and it can be complied.
Is it right?
int off_flags_;
off_flags_=iph->offset();
thanks a lot
_____________________________________________
���뾫Ʒ�����У��� http://shopping.263.net/category21.htm
IP�����������ؼ������� http://shopping.263.net/category08.htm