mirror of https://gerrit.osmocom.org/simtrace2
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
This commit is contained in:
parent
ff434e4f12
commit
9088ca86ff
|
@ -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…
Reference in New Issue