Table of Contents

Packet

Description

Represents a single packet present in the capture file.

Properties

NameTypeAccessDescription
IDLongReadA unique ID for each packet assigned by Unsniff.
DescriptionStringRead/WriteA text description of the packet. This is the description that appears in the packet index list in Unsniff.
TypeStringReadThe type of packet. In most cases this is the name of the highest layer protocol present in the packet.
LengthLongRead Length of the packet. This is the number of bytes captured by Unsniff. If you have specified a smaller capture length in Unsniff , the actual size of the packet on the wire may be more. See WireLength.
WireLengthLongReadThe length of the packet on the wire. In most cases this will be equal to the Length property. If the packet was truncated the WireLength will be greater than Length
IsBookmarkedBOOLRead/WriteYou can use this to check if a packet is bookmarked or to set/clear a bookmark.
IsAnnotatedBOOLRead/Write Annotations are small notes attached to a packet by a network analysis professional. This aids in packet analysis when these files are accessed later. Use this property to check if an annotation exists or to set/clear an annotation
AnnotationStringRead/Write Use this to query or to set an annotation
Timestamp StringReadA string representation of the timestamp of the packet. The format of this timestamp is determined from your current Windows Locale settings
TimestampSecsLongReadThe seconds part of the packet timestamp. This number returns the number of seconds since midnight January 1, 1900
TimestampUSecsLongReadThe microseconds part of the packet timestamp.
TimestampStringReadA string representation of the timestamp of the packet. The format of this timestamp is determined from your current Windows Locale settings.
SourceAddressStringReadThe source address of this packet. The destination address of this packet. If the address has been resolved to a name – this property contains the source name.
DestinationAddressStringRead
LayersCollectionReadGet all the layers contained in this packet. You have to first access the layer object to get at the individual fields of a packet.

Methods

NameParameters Description
FindLayerLayerName(String) Find a protocol layer within this packet.
Example:
Set UDPLayer = Packet.FindLayer(“UDP”) 
FindLayerByGUIDLayerGUID(String)Find a protocol layer within this packet with the specified GUID. Use this version for higher performance than finding layer by name.
Example:
Set UDPLayer = Packet.FindLayer(“{14D7AB53-CC51-47e9- 8814-9C06AAE60189}”)
RawData String A hex dump of the entire packet data. You must interpret the hex within your captue file.
unsniff/objectref/packets.txt · Last modified: 2014/09/11 23:23 (external edit)
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki