Skip to content
Snippets Groups Projects
Commit f64265de authored by Cenk Gündoğan's avatar Cenk Gündoğan Committed by astralien3000
Browse files

gnrc_pktdump: add hex dump for NDN

parent d0055660
No related branches found
No related tags found
No related merge requests found
...@@ -94,6 +94,12 @@ static void _dump_snip(gnrc_pktsnip_t *pkt) ...@@ -94,6 +94,12 @@ static void _dump_snip(gnrc_pktsnip_t *pkt)
printf("Content is: %.*s\n", (int)pkt->size, (char*)pkt->data); printf("Content is: %.*s\n", (int)pkt->size, (char*)pkt->data);
break; break;
#endif #endif
#ifdef MODULE_NDN_RIOT
case GNRC_NETTYPE_NDN:
printf("NETTYPE_NDN (%i)\n", pkt->type);
od_hex_dump(pkt->data, pkt->size, OD_WIDTH_DEFAULT);
break;
#endif
#ifdef TEST_SUITES #ifdef TEST_SUITES
case GNRC_NETTYPE_TEST: case GNRC_NETTYPE_TEST:
printf("NETTYPE_TEST (%i)\n", pkt->type); printf("NETTYPE_TEST (%i)\n", pkt->type);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment