diff options
author | lns <matzeton@googlemail.com> | 2019-01-29 19:15:17 +0100 |
---|---|---|
committer | lns <matzeton@googlemail.com> | 2019-01-29 19:15:17 +0100 |
commit | 9d9173684fc05c0f5b4fe1ba4ee9f754585841a9 (patch) | |
tree | c00d340432dd7315c01f29eb4ff448d662304af3 /src/pkt.c | |
parent | 8a7a9a83ae7b15755cf7c459872670abca4cbd14 (diff) |
trimmed xfr debug output + icmp id/seq output, replaced invalid UTF8 char 'oe'
Signed-off-by: lns <matzeton@googlemail.com>
Diffstat (limited to 'src/pkt.c')
-rw-r--r-- | src/pkt.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -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); |