Browse Source

simtrace2-cardem-pcsc.c: Send APDUs via GSMTAP

Previously, only simtrace2-sniff generated GSMTAP protocol traces.

Let's add the same functionality to simtrace2-cardem-pcsc.

Change-Id: Iba6adf41b480d127bf11ee361c66d80fe8296313
Closes: OS#5494
changes/51/27651/3
Harald Welte 3 months ago committed by laforge
parent
commit
9088ca86ff
  1. 3
      host/src/simtrace2-cardem-pcsc.c

3
host/src/simtrace2-cardem-pcsc.c

@ -189,6 +189,9 @@ static int process_do_rx_da(struct osmo_st2_cardem_inst *ci, uint8_t *buf, int l
msgb_free(tmsg);
return rc;
}
/* send via GSMTAP for wireshark tracing */
osmo_st2_gsmtap_send_apdu(GSMTAP_SIM_APDU, tmsg->data, msgb_length(tmsg));
msgb_apdu_sw(tmsg) = msgb_get_u16(tmsg);
ac.sw[0] = msgb_apdu_sw(tmsg) >> 8;
ac.sw[1] = msgb_apdu_sw(tmsg) & 0xff;

Loading…
Cancel
Save