|
The Assimilation Monitoring Project
|
Class representing various length of integers - subclass of Frame class. More...
|
Functions | |
| FSTATIC int | _intframe_intlength (IntFrame *self) |
| Return number of bytes in this integer. More... | |
| FSTATIC void | _intframe_setint (IntFrame *self, guint64 value) |
| Set the integer value associated with an IntFrame. More... | |
| FSTATIC guint64 | _intframe_getint (IntFrame *self) |
| Get the integer value associated with an IntFrame. More... | |
| FSTATIC void | _intframe_updatedata (Frame *, gpointer, gconstpointer, FrameSet *) |
| FSTATIC gboolean | _intframe_isvalid (const Frame *self,gconstpointer tlvptr,gconstpointer pktend) |
| Return TRUE if this integer is valid - basically is it of one of our supported lengths... More... | |
| FSTATIC gchar * | _intframe_toString (gconstpointer obj) |
| Return a printable representation of our IntFrame object. More... | |
| IntFrame * | intframe_new (guint16 frametype, int intbytes) |
| Construct new IntFrame object. More... | |
| Frame * | intframe_tlvconstructor (gconstpointer tlvstart, gconstpointer pktend) |
| Given marshalled data corresponding to an IntFrame (integer frame), return that corresponding Frame In other words, un-marshall the data... More... | |
| typedef struct _IntFrame | IntFrame |
Class representing various length of integers - subclass of Frame class.
Definition at line 35 of file intframe.h.
Get the integer value associated with an IntFrame.
Definition at line 116 of file intframe.c.
Referenced by intframe_new().

Return number of bytes in this integer.
Definition at line 89 of file intframe.c.
Referenced by intframe_new().

| FSTATIC gboolean _intframe_isvalid | ( | const Frame * | self, |
| gconstpointer | tlvptr, | ||
| gconstpointer | pktend | ||
| ) |
Return TRUE if this integer is valid - basically is it of one of our supported lengths...
| self | Frame to validate |
| tlvptr | TLV pointer to our TLV |
| pktend | pointer to one byte past end of packet |
Definition at line 152 of file intframe.c.
References get_generic_tlv_len().
Referenced by intframe_new().


Set the integer value associated with an IntFrame.
Definition at line 95 of file intframe.c.
Referenced by intframe_new().

| FSTATIC gchar * _intframe_toString | ( | gconstpointer | obj | ) |
Return a printable representation of our IntFrame object.
Definition at line 172 of file intframe.c.
References CASTTOCONSTCLASS, and FMT_64BIT.
Referenced by intframe_new().

| FSTATIC void _intframe_updatedata | ( | Frame * | fself, |
| gpointer | tlvptr, | ||
| gconstpointer | pktend, | ||
| FrameSet * | fs | ||
| ) |
| fself | object whose data will be put into FrameSet packet |
| tlvptr | pointer to our current TLV entry |
| pktend | end of packet |
| fs | FrameSet that we're doing this for |
Definition at line 122 of file intframe.c.
References CASTTOCLASS, get_generic_tlv_value(), tlv_set_guint16(), tlv_set_guint24(), tlv_set_guint32(), tlv_set_guint64(), and tlv_set_guint8().
Referenced by intframe_new().


| IntFrame* intframe_new | ( | guint16 | frametype, |
| int | intbytes | ||
| ) |
Construct new IntFrame object.
| frametype | Type of frame to create with this value |
| intbytes | number of bytes for the integer - should be one of 1,2,3,4,8 |
Definition at line 181 of file intframe.c.
References _intframe_getint(), _intframe_intlength(), _intframe_isvalid(), _intframe_setint(), _intframe_toString(), _intframe_updatedata(), _IntFrame::baseclass, _Frame::baseclass, CASTTOCLASS, frame_new(), _IntFrame::getint, _IntFrame::intlength, _Frame::isvalid, _Frame::length, proj_class_register_subclassed(), _IntFrame::setint, _Frame::setvalue, _AssimObj::toString, _Frame::updatedata, _Frame::value, and _Frame::valuefinalize.
Referenced by cma.AssimCclasses.pyIntFrame::__init__(), cast_frameset_tests(), construct_pcap_frameset(), create_sendexpecthb(), create_setconfig(), intframe_tlvconstructor(), main(), nanoprobe_report_upstream(), and obey_pingpong().


| Frame* intframe_tlvconstructor | ( | gconstpointer | tlvstart, |
| gconstpointer | pktend | ||
| ) |
Given marshalled data corresponding to an IntFrame (integer frame), return that corresponding Frame In other words, un-marshall the data...
| [in] | tlvstart | First byte of the IntFrame TLV |
| [in] | pktend | First invalid byte past pktend |
Definition at line 208 of file intframe.c.
References _IntFrame::baseclass, CASTTOCLASS, get_generic_tlv_len(), get_generic_tlv_type(), get_generic_tlv_value(), intframe_new(), _Frame::length, _IntFrame::setint, tlv_get_guint16(), tlv_get_guint24(), tlv_get_guint32(), tlv_get_guint64(), and tlv_get_guint8().
