[Click] Loading traffic packets from file

Douglas S. J. De Couto decouto at csail.mit.edu
Thu May 13 11:45:38 EDT 2004


Have you tried elements like `FromDump', etc.?

It playsback packets from a tcpdump file.

As for your C++ problem, I've been able to use ifstreams by including  
the <iostream> and <fstream> headers.  Di you include both of those?


d

On 13 May 2004, at 09:17, Paolo Pisati wrote:

>
> Hi guys,
>
> I was modifying InfiniteSource to make it load traffic packets from a
> previous generated file.
> Unfortunately, as soon as i compile my own InfiniteSource class i got
> these messages:
>
> infinitesource.o: In function `InfiniteSource::class_name(void) const':
> /home/flag/src/click/userlevel/../elements/standard/ 
> infinitesource.cc(.text+0xd1): undefined reference to `ios virtual  
> table'
> /home/flag/src/click/userlevel/../elements/standard/ 
> infinitesource.cc(.text+0x120): undefined reference to `istream::ios  
> virtual table'
> /home/flag/src/click/userlevel/../elements/standard/ 
> infinitesource.cc(.text+0x137): undefined reference to `ifstream::ios  
> virtual table'
> gmake[1]: *** [click] Error 1
> gmake[1]: Leaving directory `/usr/home/flag/src/click/userlevel'
> gmake: *** [userlevel] Error 2
>
> The culprit seems to be an ifstream member i added to the  
> Infinitesource header:
>
> actually i'm not a C++ guru at all, but the stream library SHOULD be  
> linked automatically,
> isn't it?
> If not, do you have any idea how i can achieve that?
>
> bye
>
> Paolo
>
> p.s. This time i read the docs and i couldn't find anything  
> interesting...unfortunately... =P
>
> -- 
> Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
> _______________________________________________
> click mailing list
> click at amsterdam.lcs.mit.edu
> https://amsterdam.lcs.mit.edu/mailman/listinfo/click
>
--
Douglas S. J. De Couto    <decouto at csail.mit.edu>



More information about the click mailing list