15 #ifndef __PACKET_THRIFT_H__
16 #define __PACKET_THRIFT_H__
19 #include "ws_symbol_export.h"
23 DE_THRIFT_T_GENERIC = -1,
46 ME_THRIFT_T_EXCEPTION,
48 } thrift_method_type_enum_t;
63 PROTO_THRIFT_BINARY = 0x00,
64 PROTO_THRIFT_FRAMED = 0x01,
65 PROTO_THRIFT_STRICT = 0x02,
66 PROTO_THRIFT_COMPACT = 0x04
67 } thrift_protocol_enum_t;
69 #define THRIFT_OPTION_DATA_CANARY 0x8001da7a
70 #define THRIFT_REQUEST_REASSEMBLY (-1)
71 #define THRIFT_SUBDISSECTOR_ERROR (-2)
76 thrift_method_type_enum_t mtype;
77 thrift_protocol_enum_t tprotocol;
79 gint64 reply_field_id;
81 gint64 previous_field_id;
88 gint32 reassembly_offset;
89 gint32 reassembly_length;
90 guint32 nested_type_depth;
91 gboolean use_std_dissector;
95 #define TMFILL NULL, { .m = { NULL, NULL } }, NULL
101 const gboolean optional;
102 const thrift_type_enum_t type;
103 const gint *p_ett_id;
105 const guint encoding;
116 const dissector_t raw_dissector;
153 WS_DLL_PUBLIC
int dissect_thrift_t_raw_data (
tvbuff_t* tvb,
packet_info* pinfo,
proto_tree* tree,
int offset,
thrift_option_data_t *thrift_opt, gboolean is_field,
int field_id, gint hf_id, thrift_type_enum_t type, dissector_t field_dissector);
184 WS_DLL_PUBLIC
int dissect_thrift_t_map (
tvbuff_t* tvb,
packet_info* pinfo,
proto_tree* tree,
int offset,
thrift_option_data_t *thrift_opt, gboolean is_field,
int field_id, gint hf_id, gint ett_id,
const thrift_member_t *key,
const thrift_member_t *val);
Definition: packet_info.h:44
Definition: packet-thrift.h:98
Definition: packet-thrift.h:73
Definition: tvbuff-int.h:35