Wireshark - 1.0 Betriebsanweisung Seite 241

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 284
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 240
a Tvb represents the packet's buffer. It is passed as an argument to listeners and dissectors, and can
be used to extract information (via TvbRange) from the packet's data. Beware that Tvbs are usable
only by the current listener or dissector call and are destroyed as soon as the listener/dissector re-
turns, so references to them are unusable once the function has returned. To create a tvbrange the
tvb must be called with offset and length as optional arguments ( the offset defaults to 0 and the
length to tvb:len() )
10.4.8.3.1. Tvb.new_real(bytearray, name)
Creates a new Tvb from a bytearray (it gets added to the current frame too)
10.4.8.3.1.1. Arguments
bytearray The data source for this Tvb.
name The name to be given to the new data-source.
10.4.8.3.1.2. Returns
the created Tvb.
10.4.8.3.2. Tvb.tvb(range)
creates a (sub)Tvb from using a TvbRange
10.4.8.3.2.1. Arguments
range the TvbRange from which to create the new Tvb.
10.4.8.3.3. tvb:__tostring()
convert the bytes of a Tvb into a string, to be used for debugging purposes as '...' will be appended in
case the string is too long.
10.4.8.3.3.1. Returns
the string.
10.4.8.3.4. tvb:len()
obtain the length of a TVB
10.4.8.3.4.1. Returns
the length of the Tvb.
10.4.8.3.5. tvb:offset()
returns the raw offset (from the beginning of the source Tvb) of a sub Tvb.
10.4.8.3.5.1. Returns
the raw offset of the Tvb.
10.4.8.3.6. tvb:__call()
equivalent to tvb:range(...)
10.4.8.4. TvbRange
Lua Support in Wireshark
226
Seitenansicht 240
1 2 ... 236 237 238 239 240 241 242 243 244 245 246 ... 283 284

Kommentare zu diesen Handbüchern

Keine Kommentare