Class coroner.protocol.dummy

Dummy protocol.

This class serves as a dummy class for protocols, for which there is no dissector available.

Methods

coroner.protocol.dummy:new (packet) Create a new object.
coroner.protocol.dummy:parse () Performs no operation.
coroner.protocol.dummy:type () Get the module name.
coroner.protocol.dummy:get_rawpacket () Get data in the internal buffer.
coroner.protocol.dummy:get_data () Get data in the internal buffer.
coroner.protocol.dummy:get_datalen () Get length of data in the internal buffer.
coroner.protocol.dummy:set_packet (packet) Change or set new data in the internal buffer.
coroner.protocol.dummy:get_error () Get last error message.


Methods

coroner.protocol.dummy:new (packet)
Create a new object.

Parameters:

  • packet string byte string of packet data

Returns:

    table New dummy table.
coroner.protocol.dummy:parse ()
Performs no operation. Defined only for compatibility with other dissectors.

Returns:

    boolean Always returns True.
coroner.protocol.dummy:type ()
Get the module name.

Returns:

    string Module name.
coroner.protocol.dummy:get_rawpacket ()
Get data in the internal buffer.

Returns:

    string Packet data or an empty string.
coroner.protocol.dummy:get_data ()
Get data in the internal buffer. It's an alias for dummy:get_rawpacket.

Returns:

    string Packet data or an empty string.

See also:

coroner.protocol.dummy:get_datalen ()
Get length of data in the internal buffer.

Returns:

    integer Data length.
coroner.protocol.dummy:set_packet (packet)
Change or set new data in the internal buffer.

Parameters:

coroner.protocol.dummy:get_error ()
Get last error message.

Returns:

    string Error message.
generated by LDoc 1.4.3 Last updated 2016-08-15 00:59:34