[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] Question regarding getting packet information



did you include agent.h in your modified program ?

Kun-chan Lan

-----Original Message-----
From: XuDong Wu <[email protected]>
To: [email protected] <[email protected]>
Date: Friday, June 09, 2000 2:04 PM
Subject: [ns] Question regarding getting packet information


>Hi, ns guru:
>
>        I intend to get packet flowid or src address in distinguish between
>them.
>
>I use the following methed in enque routine in drop-tail.cc
>
>void DropTail::enque(Packet* p)
>{
>        if(DEBUG){
>                hdr_ip* iph = (hdr_ip*) p->access(off_ip_);
>                printf(" flowid=%d, src=%d.%d \n", iph->flowid(),
>iph->src()>>8,
>iph->src()&0xff);
>
>        }
>
>
>However, I get the following information when I compiling drop-tail
>of my modified version.drop-tail.cc: In method `void
>
>DropTail::enque(class Packet *)':
>drop-tail.cc:78: `off_ip_' undeclared (first use this function)
>
>Could anyobe tell me how to solve this problem ?
>
>The infmation of how to get packet information is appreciated.
>
>Thanks
>
>Xudong
>
>
>________________________________________________________________________
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
>