aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-tcap.h
diff options
context:
space:
mode:
authorAnders Broman <anders.broman@ericsson.com>2006-09-27 20:06:06 +0000
committerAnders Broman <anders.broman@ericsson.com>2006-09-27 20:06:06 +0000
commitad9a9a6a9dac3ff1ae468c1bc1ad657053bc02d0 (patch)
treef7501d0fa31314193903026f42aae44fea9e359a /epan/dissectors/packet-tcap.h
parent9753b85f4690a7d1a82396e50b92b20b7fd03622 (diff)
From Florent Drouin:
Here are some patches and a new module to introduce the notion of Tcap context for a Tcap transaction. For each Tcap transaction, several parameters, like session identifier, start time or OID, will be saved in a hash table, to keep these informations available for the next messages. This context is then given to the upper layer, and can be used, for example, to generate transaction-associated statistics. Moreover, the Upper protocol, detected in the Begin of the TCAP transaction ( according to the OID ), is saved in the context, and will be reused for the next messages of the transaction. This help the decoding of SS7 messages, without any SSN configuration in the "wireshark preferences". You will have too, the possibility to apply a filter to see only the messages related to a TCAP transaction. (tcap.srt.session_id=XXX) To enable the use of the Tcap context, you have 2 new parameters in the preferences, - SRT, enable search for a Tcap context for any TCAP messages - persistentSRT, keep the Tcap context, even after the transaction has been closed. This is mandatory with Wireshark, to have a clean display of the stats. There is 2 new timers in the preferences for the statistics, to tune the retransmission timeout, and messages lost timeout. svn path=/trunk/; revision=19341
Diffstat (limited to 'epan/dissectors/packet-tcap.h')
-rw-r--r--epan/dissectors/packet-tcap.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/epan/dissectors/packet-tcap.h b/epan/dissectors/packet-tcap.h
index 21fbc491d2..78ef7036ce 100644
--- a/epan/dissectors/packet-tcap.h
+++ b/epan/dissectors/packet-tcap.h
@@ -59,7 +59,17 @@
#define TCAP_CONSTRUCTOR(TCtag) (TCtag & 0x20)
-
+#define TC_BEGIN 1
+#define TC_CONT 2
+#define TC_END 3
+#define TC_ABORT 4
+
+struct tcap_private_t {
+ gboolean acv; /* Is the Application Context Version present */
+ void * oid;
+ guint32 session_id;
+ void * context;
+};
extern gint tcap_standard;
@@ -73,4 +83,4 @@ extern void add_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector)
extern void delete_ansi_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
extern void delete_itu_tcap_subdissector(guint32 ssn, dissector_handle_t dissector);
-#endif /* PACKET_INAP_H */
+#endif /* PACKET_tcap_H */