gnrc_pktdump: add hex dump for NDN
This commit is contained in:
parent
d005566042
commit
f64265de57
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user