From 9d9173684fc05c0f5b4fe1ba4ee9f754585841a9 Mon Sep 17 00:00:00 2001 From: lns Date: Tue, 29 Jan 2019 19:15:17 +0100 Subject: trimmed xfr debug output + icmp id/seq output, replaced invalid UTF8 char 'oe' Signed-off-by: lns --- src/pkt.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/pkt.c') diff --git a/src/pkt.c b/src/pkt.c index 27f492f..70a294f 100644 --- a/src/pkt.c +++ b/src/pkt.c @@ -128,11 +128,13 @@ void handle_packet(char *buf, unsigned bytes, int is_pcap, struct sockaddr_in *a pt_log(kLog_error, "Dropping packet with invalid state.\n"); return; } - pt_log(kLog_sendrecv, "Recv: %d [%d] bytes " - "[seq = %d] [type = %s] " + pt_log(kLog_sendrecv, "Recv: %4d [%4d] bytes " + "[id = 0x%04X] [seq = %d] " + "[seq_no = %d] [type = %s] " "[ack = %d] [icmp = %d] " - "[user = %s] [pcap = %d]\n", - bytes, ntohl(pt_pkt->data_len), + "[user = %s] [pcap = %d]\n", + bytes, ntohl(pt_pkt->data_len), + pkt->identifier, ntohs(pkt->seq), pt_pkt->seq_no, state_name[pt_pkt->state & (~kFlag_mask)], ntohl(pt_pkt->ack), pkt->type, (pkt_flag == kUser_flag ? "yes" : "no"), is_pcap); -- cgit v1.2.3