The Assimilation Project
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
generic_tlv_min.h
Go to the documentation of this file.
1 
25 #include <projectcommon.h>
26 
28 #define GENERICTLV_HDRSZ (sizeof(guint16)+/*sizeof(guint24)*/3)
29 
30 WINEXPORT guint16 get_generic_tlv_type(gconstpointer tlv_vp, gconstpointer pktend);
31 WINEXPORT guint32 get_generic_tlv_len(gconstpointer tlv_vp, gconstpointer pktend);
32 WINEXPORT gconstpointer get_generic_tlv_value(gconstpointer tlv_vp, gconstpointer pktend);
33 WINEXPORT gpointer get_generic_tlv_nonconst_value(gpointer tlv_vp, gconstpointer pktend);
34 WINEXPORT guint32 get_generic_tlv_totalsize(gsize datasize);
35 WINEXPORT gboolean is_valid_generic_tlv_packet(gconstpointer tlv_vp, gconstpointer pktend);
36 WINEXPORT gconstpointer get_generic_tlv_first(gconstpointer packet, gconstpointer pktend);
37 WINEXPORT gconstpointer get_generic_tlv_next(gconstpointer tlv_vp, gconstpointer pktend);
38 WINEXPORT gconstpointer find_next_generic_tlv_type(gconstpointer tlv_vp, guint16 tlvtype, gconstpointer pktend);
39 WINEXPORT void set_generic_tlv_type(gpointer tlv_vp, guint16 newtype, gconstpointer pktend);
40 WINEXPORT void set_generic_tlv_len(gpointer tlv_vp, guint32 newsize, gconstpointer pktend);
41 WINEXPORT void set_generic_tlv_value(gpointer tlv_vp, void* srcdata, guint32 srcsize, gconstpointer pktend);
WINEXPORT gconstpointer find_next_generic_tlv_type(gconstpointer tlv_vp, guint16 tlvtype, gconstpointer pktend)
Return pointer to the next TLV entry of the given type at or after the current location.
WINEXPORT guint32 get_generic_tlv_totalsize(gsize datasize)
#define WINEXPORT
Definition: projectcommon.h:45
WINEXPORT guint16 get_generic_tlv_type(gconstpointer tlv_vp, gconstpointer pktend)
Return the 'Type' of the given TLV TLV entry (first two bytes)
WINEXPORT void set_generic_tlv_value(gpointer tlv_vp, void *srcdata, guint32 srcsize, gconstpointer pktend)
Set the TLV data value to the given 'tlv_vp' pointer.
WINEXPORT void set_generic_tlv_type(gpointer tlv_vp, guint16 newtype, gconstpointer pktend)
Set the 'Type' of the given TLV TLV entry (first two bytes)
WINEXPORT guint32 get_generic_tlv_len(gconstpointer tlv_vp, gconstpointer pktend)
Return the 'Length' of the given generic TLV entry (first 3 bytes after type)
Project common header file.
WINEXPORT gboolean is_valid_generic_tlv_packet(gconstpointer tlv_vp, gconstpointer pktend)
Return TRUE if this is a valid generic TLV packet.
WINEXPORT void set_generic_tlv_len(gpointer tlv_vp, guint32 newsize, gconstpointer pktend)
Set the 'Length' of the given generic TLV entry (first 3 bytes after type)
WINEXPORT gconstpointer get_generic_tlv_value(gconstpointer tlv_vp, gconstpointer pktend)
Return a const pointer to the 'Value' of the given generic TLV entry.
WINEXPORT gpointer get_generic_tlv_nonconst_value(gpointer tlv_vp, gconstpointer pktend)
Return a non-const (mutable) pointer to the 'Value' of the given generic TLV entry.
WINEXPORT gconstpointer get_generic_tlv_next(gconstpointer tlv_vp, gconstpointer pktend)
Return pointer to the next generic TLV entry after the current location.
WINEXPORT gconstpointer get_generic_tlv_first(gconstpointer packet, gconstpointer pktend)