[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] How to check the changed parameters??
Did you do an
#include <stdio.h>
in your source code? Maybe this is the reason the printf doesn't work. Of
course you should access the common header using a command like
hdr_cmn* ch = hdr_cmn::access(pkt);
before using the ch->sizeno() method
Nick
Vakul Goel wrote:
>
> I have tried that and it is not working!! The printf statement in itself
> doesn't seem to work..
>
> "Srijith.K" <srijith@comp.nus.edu.sg> wrote:
>
> > Can I somehow print the values on the console..
>
> Wouldn't placing something like this be suffecient :
> printf("Commom Header length=%d",ch->sizeno());
>
> If you are using FullTCP you can also use:
> printf("TCP Header =%d",tcph->hlen());
>
> I am new to NS, so take this will a bucket of salk :)
>
> Srijith
>
> Vakul Goel
> 911 Imhoff, # 637
> Norman, OK 73072, USA
> Phone: 405-325-9295
> *********************************************************
> Have A Nice Day....
> *********************************************************
>
>
> ------------------------------------------------------------------------------
> Do You Yahoo!?
> Yahoo! Auctions $2 Million Sweepstakes - Got something to sell?