|
The Assimilation Monitoring Project
|
Implements the inbound frame decoding function: Packet-chunk->FrameSet-list. More...
#include <memory.h>#include <projectcommon.h>#include <assimobj.h>#include <generic_tlv_min.h>#include <frameset.h>#include <frametypes.h>#include <signframe.h>#include <cryptframe.h>#include <compressframe.h>#include <tlvhelper.h>#include <packetdecoder.h>#include <intframe.h>#include <addrframe.h>#include <ipportframe.h>#include <cstringframe.h>#include <seqnoframe.h>#include <nvpairframe.h>#include <unknownframe.h>
Go to the source code of this file.
Macros | |
| #define | FRAMESET_HDR_SIZE (3*sizeof(guint16)) |
Functions | |
| FSTATIC Frame * | _framedata_to_frameobject (PacketDecoder *, gconstpointer, gconstpointer gconstpointer) |
| FSTATIC FrameSet * | _decode_packet_get_frameset_data (gconstpointer vfsstart,gconstpointer vpktend,const void **fsnext) |
| Construct a basic FrameSet object from the initial marshalled FrameSet data in a packet. More... | |
| FSTATIC Frame * | _decode_packet_framedata_to_frameobject (PacketDecoder *self,gconstpointer pktstart,gconstpointer pktend,void const **nextframe) |
| Given a pointer to a TLV entry for the data corresponding to a Frame, construct a corresponding Frame. More... | |
| FSTATIC GSList * | _pktdata_to_framesetlist (PacketDecoder *self,gconstpointer pktstart,gconstpointer pktend) |
| Constructs a GSList list of FrameSet class objects from a datagram/packet. More... | |
| FSTATIC void | _packetdecoder_finalize (AssimObj *selfobj) |
| Function for finalizing. More... | |
| PacketDecoder * | packetdecoder_new (guint objsize, const FrameTypeToFrame *framemap, gint mapsize) |
| Initialize our frame type map. More... | |
Implements the inbound frame decoding function: Packet-chunk->FrameSet-list.
This code walks through an packet and creates a collection of FramSets that correspond to the FrameSets that the originator created. In a lot of ways, this is all auxilliary functions for the FrameSet class objects.
This file is part of the Assimilation Project.
The Assimilation software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Assimilation Project software. If not, see http://www.gnu.org/licenses/
Definition in file packetdecoder.c.