diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-14 17:30:11 +0200 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-06-14 17:30:11 +0200 |
commit | 995534c30679d1aea0ff4bca72667f889688331e (patch) | |
tree | a45124edaad135d9273045a7b2cc7ef1c36b33db /tools | |
parent | d46be0d73ced3511d7401050537b5c637a139edc (diff) | |
download | neard-995534c30679d1aea0ff4bca72667f889688331e.tar.gz neard-995534c30679d1aea0ff4bca72667f889688331e.tar.bz2 neard-995534c30679d1aea0ff4bca72667f889688331e.zip |
nfctool: sniffer: Print Handover I frames as NDEF
Handover information frames are actually pure NDEFs, so decode them as
such since it is now possible to detect Handover specific traffic.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/nfctool/llcp-decode.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/nfctool/llcp-decode.c b/tools/nfctool/llcp-decode.c index a08d64a..6f8c59d 100644 --- a/tools/nfctool/llcp-decode.c +++ b/tools/nfctool/llcp-decode.c @@ -467,6 +467,15 @@ static int llcp_print_i(struct sniffer_packet *packet) llcp_printf_error("Error decoding SNEP frame"); return err; + } else if (packet->llcp.local_sap == opts.handover_sap || + packet->llcp.remote_sap == opts.handover_sap) { + int err; + + err = ndef_print_records(packet->llcp.data, + packet->llcp.data_len); + if (err != 0) + llcp_printf_error("Error decoding Handover frame"); + return err; } sniffer_print_hexdump(stdout, packet->llcp.data, packet->llcp.data_len, |