summaryrefslogtreecommitdiffstats
path: root/listen/ax25dump.c
diff options
context:
space:
mode:
authorThomas Osterried <ax25@x-berg.in-berlin.de>2016-07-04 12:12:37 +0200
committerThomas Osterried <ax25@x-berg.in-berlin.de>2016-07-04 12:12:37 +0200
commit83ffd1fcf9aade0c91834fe3058a4d5644eeba3f (patch)
tree51c1642988bfa739bb813a8b12d70ac8191c9086 /listen/ax25dump.c
parent39626d97b80152f8da5796d72971f55eb98dcb12 (diff)
Improved timestamps. With code and -t -tt -ttt ... option behaviour from tcpdump.
-> Without -t, listen now shows a timestamp. Signed-off-by: Thomas Osterried <ax25@x-berg.in-berlin.de>
Diffstat (limited to 'listen/ax25dump.c')
-rw-r--r--listen/ax25dump.c12
1 files changed, 4 insertions, 8 deletions
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");
}
}