The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
UnknownFrame class

Class representing an unrecogized or unknown type of frame in a packet - subclass of Frame class. More...

Collaboration diagram for UnknownFrame class:

Data Structures

struct  _UnknownFrame
 This is our UnknownFrame class object - for unrecognized Frames. More...
 

Functions

FSTATIC gboolean _unknownframe_default_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend)
 UnknownFrame class 'isvalid' member function (always returns FALSE) More...
 
UnknownFrameunknownframe_new (guint16 frame_type)
 Construct a new UnknownFrame - disallowing for "derived" frame types... More...
 
Frameunknownframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend)
 Given marshalled data corresponding to an unknown Frame (basic binary frame), return that corresponding Frame In other words, un-marshall the data... More...
 

Detailed Description

Class representing an unrecogized or unknown type of frame in a packet - subclass of Frame class.

Function Documentation

FSTATIC gboolean _unknownframe_default_isvalid ( const Frame self,
gconstpointer  tlvptr,
gconstpointer  pktend 
)

UnknownFrame class 'isvalid' member function (always returns FALSE)

Todo:
think about whether unknown frames are always valid, or always invalid...
Parameters
[in]selfUnknownFrame object ('this')
[in]tlvptrPointer to the TLV for this UnknownFrame
[in]pktendPointer to one byte past the end of the packet

Definition at line 42 of file unknownframe.c.

Referenced by unknownframe_new().

Here is the caller graph for this function:

UnknownFrame* unknownframe_new ( guint16  frame_type)

Construct a new UnknownFrame - disallowing for "derived" frame types...

This can be used only for creating UnknownFrame frames.

Parameters
[in]frame_typeTLV type associated with this unknown frame

Definition at line 55 of file unknownframe.c.

References _unknownframe_default_isvalid(), CASTTOCLASS, frame_new(), _Frame::isvalid, and proj_class_register_subclassed().

Referenced by cma.AssimCclasses.pyUnknownFrame::__init__(), and unknownframe_tlvconstructor().

Here is the call graph for this function:

Here is the caller graph for this function:

Frame* unknownframe_tlvconstructor ( gconstpointer  tlvstart,
gconstpointer  pktend 
)

Given marshalled data corresponding to an unknown Frame (basic binary frame), return that corresponding Frame In other words, un-marshall the data...

Definition at line 70 of file unknownframe.c.

References _UnknownFrame::baseclass, CASTTOCLASS, frame_default_valuefinalize(), get_generic_tlv_len(), get_generic_tlv_type(), get_generic_tlv_value(), _Frame::length, _Frame::setvalue, and unknownframe_new().

Referenced by _decode_packet_framedata_to_frameobject(), and packetdecoder_new().

Here is the call graph for this function:

Here is the caller graph for this function: