<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10616">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">simtrace2-sniff: Fix build with released libosmocore versions<br><br>There's still no released libosmocore defining the GSMTAP_TYPE_SIM<br>sub-types (Change-Id: I5bd0dff5a4a90cfe96d9c4f3dec6657e1d85bf7a<br>dated Jul 26, 2018).<br><br>Let's make sure users don't need an unreleased version of the library<br>if it's only about a few #defines that we can just copy here for<br>backwards compatibility.<br><br>Change-Id: I2fd9e14873711d60f194bb404420bbfbb0a00f48<br>---<br>M host/simtrace2-sniff.c<br>1 file changed, 13 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/16/10616/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/host/simtrace2-sniff.c b/host/simtrace2-sniff.c</span><br><span>index 368ae60..dddf5cf 100644</span><br><span>--- a/host/simtrace2-sniff.c</span><br><span>+++ b/host/simtrace2-sniff.c</span><br><span>@@ -51,6 +51,19 @@</span><br><span> #include <osmocom/sim/class_tables.h></span><br><span> #include <osmocom/sim/sim.h></span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+/* as of August 26, 2018 we don't have any released libosmocore version which includes those</span><br><span style="color: hsl(120, 100%, 40%);">+ * definitions yet.  Let's ensure some backwards compatibility: */</span><br><span style="color: hsl(120, 100%, 40%);">+#ifndef GSMTAP_SIM_APDU</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_APDU             0x00 /* APDU data (complete APDU) */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_ATR            0x01 /* card ATR data */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_PPS_REQ            0x02 /* PPS request data */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_PPS_RSP         0x03 /* PPS response data */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_TPDU_HDR               0x04 /* TPDU command header */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_TPDU_CMD             0x05 /* TPDU command body */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_TPDU_RSP               0x06 /* TPDU response body */</span><br><span style="color: hsl(120, 100%, 40%);">+#define GSMTAP_SIM_TPDU_SW               0x07 /* TPDU response trailer */</span><br><span style="color: hsl(120, 100%, 40%);">+#endif</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> /* transport to a SIMtrace device */</span><br><span> struct st_transport {</span><br><span>  /* USB */</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10616">change 10616</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10616"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I2fd9e14873711d60f194bb404420bbfbb0a00f48 </div>
<div style="display:none"> Gerrit-Change-Number: 10616 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>