All Classes Namespaces Files Functions Pages
PacketDump Class Reference

Utility for dumping ByteBlower network traffic to a pcap file. More...

Methods

 Description.Get
 Returns a textual description of the object.
 
 FileName.Get
 Returns file name of the target pcap file.
 
 FileSize.Get
 Returns current size of the target pcap file.
 
 Filter.Get
 Returns the BPF filter.
 
 Filter.Set
 Configures a BPF filter so that only packets that match the filter will be captured.
 
 Parent.Get
 Returns the parent object.
 
 SnapshotLength.Get
 Returns the maximum number of bytes that can be captured for each packet.
 
 SnapshotLength.Set
 Configure the maximum number of bytes that can be captured for each packet.
 
 Start filename
 Start capturing packets. More...
 
 Stop
 Stop capturing packets.
 

Class overview

Utility for dumping ByteBlower network traffic to a pcap file.

A PacketDump object is created for a ByteBlower interface and can be configured with a BPF filter and a maximum snapshot length.

Example
1 set packet_dump [ $server PacketDump.Create nontrunk-1 ]
2  $packet_dump SnapshotLength.Set 128
3  $packet_dump Filter.Set "tcp or arp"
4  $packet_dump Start "c:\\tcp.pcap"
5 ...
6 
7 $packet_dump Stop

Definition at line 18088 of file api.tcl.

Method documentation

PacketDump::Start   filename  

Start capturing packets.

Parameters
filenameLocation of where the pcap file should be stored. Note that if the file already exists it will be overwritten.

Definition at line 18142 of file api.tcl.