9
0
Fork 0

pcap: Dump each packet in the DCAP category

This commit is contained in:
Holger Hans Peter Freyther 2011-01-22 23:19:27 +01:00
parent 0292127467
commit 16b07c645b
1 changed files with 3 additions and 0 deletions

View File

@ -184,5 +184,8 @@ int mtp_handle_pcap(struct mtp_link *link, int dir, const uint8_t *data, int len
mtp_pcap_write_msu(link->pcap_fd, data, len);
if (link->set->pcap_fd < 0)
mtp_pcap_write_msu(link->set->pcap_fd, data, len);
/* This might be too expensive? */
LOGP(DPCAP, LOGL_NOTICE, "Packet: %s\n", hexdump(data, len));
return 0;
}