====== Packet ====== ===== Description ===== Represents a single packet present in the capture file. ===== Properties ===== ^Name^Type^Access^Description^ |ID|Long|Read|A unique ID for each packet assigned by Unsniff.| |Description|String|Read/Write|A text description of the packet. This is the description that appears in the packet index list in Unsniff.| |Type|String|Read|The type of packet. In most cases this is the name of the highest layer protocol present in the packet.| |Length|Long|Read |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.| |WireLength|Long|Read|The 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| |IsBookmarked|BOOL|Read/Write|You can use this to check if a packet is bookmarked or to set/clear a bookmark.| |IsAnnotated|BOOL|Read/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 | |Annotation|String|Read/Write |Use this to query or to set an annotation | |Timestamp |String|Read|A string representation of the timestamp of the packet. The format of this timestamp is determined from your current Windows Locale settings | |TimestampSecs|Long|Read|The seconds part of the packet timestamp. This number returns the number of seconds since midnight January 1, 1900| |TimestampUSecs|Long|Read|The microseconds part of the packet timestamp.| |Timestamp|String|Read|A string representation of the timestamp of the packet. The format of this timestamp is determined from your current Windows Locale settings.| |SourceAddress|String|Read|The 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.| |DestinationAddress|String|Read|The destination address of this packet. If the address has been resolved to a name – this property contains the destination name. |Layers|Collection|Read|Get 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 ===== ^Name^Parameters ^Description ^ |FindLayer|LayerName(String) |Find a protocol layer within this packet. \\ //Example:// Set UDPLayer = Packet.FindLayer(“UDP”) | |FindLayerByGUID|LayerGUID(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.|