From 83ffd1fcf9aade0c91834fe3058a4d5644eeba3f Mon Sep 17 00:00:00 2001 From: Thomas Osterried Date: Mon, 4 Jul 2016 12:12:37 +0200 Subject: Improved timestamps. With code and -t -tt -ttt ... option behaviour from tcpdump. -> Without -t, listen now shows a timestamp. Signed-off-by: Thomas Osterried --- listen/ax25dump.c | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'listen/ax25dump.c') diff --git a/listen/ax25dump.c b/listen/ax25dump.c index d8e6532..c59b500 100644 --- a/listen/ax25dump.c +++ b/listen/ax25dump.c @@ -225,8 +225,7 @@ void ax25_dump(unsigned char *data, int length, int hexdump) } lprintf(T_AXHDR, "%s len %d ", dama, length); - if (timestamp) - display_timestamp(); + display_timestamp(); if (pid == PID_SEGMENT) { seg = *data++; @@ -292,8 +291,7 @@ void ax25_dump(unsigned char *data, int length, int hexdump) lprintf(T_ERROR, " Invalid seq number"); lprintf(T_AXHDR, "%s ", dama); - if (timestamp) - display_timestamp(); + display_timestamp(); lprintf(T_AXHDR, "\n"); } else if ((type == SABM || type == UA) && length >= 2) { /* FlexNet transmits the QSO "handle" for header @@ -301,13 +299,11 @@ void ax25_dump(unsigned char *data, int length, int hexdump) */ lprintf(T_AXHDR, " [%d]%s ", (data[0] << 8) | data[1], dama); - if (timestamp) - display_timestamp(); + display_timestamp(); lprintf(T_AXHDR, "\n"); } else { lprintf(T_AXHDR, "%s ", dama); - if (timestamp) - display_timestamp(); + display_timestamp(); lprintf(T_AXHDR, "\n"); } } -- cgit v1.2.3