sambid das <
sambi...@gmail.com> wrote:
> Hi Experts,
>
> Can anyone help me handling a pcap file directly using TCL. I am
> having a pcap file which contains only the "ftp-data" packets. Using
> tcl I need to read the pcap file, and calculate total number of
> packets received.
Consider the tclpcap extension:
https://wiki.tcl-lang.org/page/tclpcap+man+page
> But I was not able to open the txt file as it is too big to open.
This is not possible (unless you are running a really old system that
only has 32-bit file offset support and you have a text file of more
than 2G in size).
> So the only way is to handle the pcap file directly using tcl and
> then calculate the no of packets in that pcap file.
No. Open the text file you created, then read it in chunks (where a
chunk is the appropriate size for data contained in the text file).