[Listener] Display the packet size

This commit is contained in:
Matteo Cypriani 2012-05-10 11:23:42 +02:00
parent 59a0ac12bd
commit c4e03520f3
1 changed files with 3 additions and 1 deletions

View File

@ -1083,6 +1083,7 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
"\tPosition Z: %f\n"
"\tDirection: %hhd\n"
"\tPacket number: %"PRIu16"/%"PRIu16"\n"
"\tPacket size: %"PRIu32"\n"
,
request.type,
ap_mac_addr_str,
@ -1097,7 +1098,8 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
owl_ntohf(request.z_position),
request.direction,
ntohs(request.packet_id),
ntohs(request.nb_packets)
ntohs(request.nb_packets),
header->len
) ;
}