[Listener] Display the packet size
This commit is contained in:
parent
59a0ac12bd
commit
c4e03520f3
|
@ -1083,6 +1083,7 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
|
||||||
"\tPosition Z: %f\n"
|
"\tPosition Z: %f\n"
|
||||||
"\tDirection: %hhd\n"
|
"\tDirection: %hhd\n"
|
||||||
"\tPacket number: %"PRIu16"/%"PRIu16"\n"
|
"\tPacket number: %"PRIu16"/%"PRIu16"\n"
|
||||||
|
"\tPacket size: %"PRIu32"\n"
|
||||||
,
|
,
|
||||||
request.type,
|
request.type,
|
||||||
ap_mac_addr_str,
|
ap_mac_addr_str,
|
||||||
|
@ -1097,7 +1098,8 @@ void read_packet(u_char *args, const struct pcap_pkthdr *header,
|
||||||
owl_ntohf(request.z_position),
|
owl_ntohf(request.z_position),
|
||||||
request.direction,
|
request.direction,
|
||||||
ntohs(request.packet_id),
|
ntohs(request.packet_id),
|
||||||
ntohs(request.nb_packets)
|
ntohs(request.nb_packets),
|
||||||
|
header->len
|
||||||
) ;
|
) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue