summaryrefslogtreecommitdiffstats
path: root/ip/ipmonitor.c
diff options
context:
space:
mode:
Diffstat (limited to 'ip/ipmonitor.c')
-rw-r--r--ip/ipmonitor.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ip/ipmonitor.c b/ip/ipmonitor.c
index cdaeb6f9..819f9f6a 100644
--- a/ip/ipmonitor.c
+++ b/ip/ipmonitor.c
@@ -38,6 +38,9 @@ int accept_msg(const struct sockaddr_nl *who,
{
FILE *fp = (FILE*)arg;
+ if (timestamp)
+ print_timestamp(fp);
+
if (n->nlmsg_type == RTM_NEWROUTE || n->nlmsg_type == RTM_DELROUTE) {
print_route(who, n, arg);
return 0;