Change in simtrace2[master]: simtrace2-sniff: Fix build with released libosmocore versions

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Aug 26 09:43:15 UTC 2018


Harald Welte has uploaded this change for review. ( https://gerrit.osmocom.org/10616


Change subject: simtrace2-sniff: Fix build with released libosmocore versions
......................................................................

simtrace2-sniff: Fix build with released libosmocore versions

There's still no released libosmocore defining the GSMTAP_TYPE_SIM
sub-types (Change-Id: I5bd0dff5a4a90cfe96d9c4f3dec6657e1d85bf7a
dated Jul 26, 2018).

Let's make sure users don't need an unreleased version of the library
if it's only about a few #defines that we can just copy here for
backwards compatibility.

Change-Id: I2fd9e14873711d60f194bb404420bbfbb0a00f48
---
M host/simtrace2-sniff.c
1 file changed, 13 insertions(+), 0 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/16/10616/1

diff --git a/host/simtrace2-sniff.c b/host/simtrace2-sniff.c
index 368ae60..dddf5cf 100644
--- a/host/simtrace2-sniff.c
+++ b/host/simtrace2-sniff.c
@@ -51,6 +51,19 @@
 #include <osmocom/sim/class_tables.h>
 #include <osmocom/sim/sim.h>
 
+/* as of August 26, 2018 we don't have any released libosmocore version which includes those
+ * definitions yet.  Let's ensure some backwards compatibility: */
+#ifndef GSMTAP_SIM_APDU
+#define GSMTAP_SIM_APDU		0x00 /* APDU data (complete APDU) */
+#define GSMTAP_SIM_ATR		0x01 /* card ATR data */
+#define GSMTAP_SIM_PPS_REQ		0x02 /* PPS request data */
+#define GSMTAP_SIM_PPS_RSP		0x03 /* PPS response data */
+#define GSMTAP_SIM_TPDU_HDR		0x04 /* TPDU command header */
+#define GSMTAP_SIM_TPDU_CMD		0x05 /* TPDU command body */
+#define GSMTAP_SIM_TPDU_RSP		0x06 /* TPDU response body */
+#define GSMTAP_SIM_TPDU_SW		0x07 /* TPDU response trailer */
+#endif
+
 /* transport to a SIMtrace device */
 struct st_transport {
 	/* USB */

-- 
To view, visit https://gerrit.osmocom.org/10616
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: simtrace2
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2fd9e14873711d60f194bb404420bbfbb0a00f48
Gerrit-Change-Number: 10616
Gerrit-PatchSet: 1
Gerrit-Owner: Harald Welte <laforge at gnumonks.org>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20180826/75b6caf2/attachment.htm>


More information about the gerrit-log mailing list