Commit 23eada53 authored by Tomasz Wlostowski's avatar Tomasz Wlostowski

lib/net: dump all packet payloads

parent 2155b47a
......@@ -386,9 +386,16 @@ int net_bh_poll(void)
q->avail -= wrap_copy_out(q, payload, size);
q->n++;
net_verbose("Q: Size %d head %d Smac %x:%x:%x:%x:%x:%x\n", recvd,
pp_printf("Q: Size %d head %d Smac %x:%x:%x:%x:%x:%x dmac %x:%x:%x:%x:%x:%x etype %x\n", recvd,
q->head, hdr.srcmac[0], hdr.srcmac[1], hdr.srcmac[2],
hdr.srcmac[3], hdr.srcmac[4], hdr.srcmac[5]);
hdr.srcmac[3], hdr.srcmac[4], hdr.srcmac[5],
hdr.dstmac[0], hdr.dstmac[1], hdr.dstmac[2],
hdr.dstmac[3], hdr.dstmac[4], hdr.dstmac[5],
hdr.ethtype);
for( i = 0; i < size; i++)
pp_printf("%02x ", payload[i] );
pp_printf("\n");
net_verbose("%s: saved packet to socket %04x:%04x "
"[avail %d n %d size %d]\n", __FUNCTION__,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment