[Click] Loading traffic packets from file

Eddie Kohler kohler at cs.ucla.edu
Thu May 13 08:26:18 EDT 2004


Paolo,

Why are you trying to do this to InfiniteSource?  Click has a large number of 
elements for reading packets from files: pcap files (FromDump), ASCII files 
(FromIPSummaryDump: compile with '--enable-analysis' to get it), DAG files 
(FromDAGDump), NetFlow summaries (FromNetFlowSummaryDump), NLANR files 
(FromNLANRDump), ASCII tcpdump output (FromTcpdump), 'cap' output (FromCapDump)...

As for your problem, it may have something to do with lack of a 'std::' 
prefix, or perhaps you're including old fstream headers.  But Click style is 
not to use the C++ stdstream classes.

Eddie



More information about the click mailing list