aboutsummaryrefslogtreecommitdiffstats
path: root/libglouglou/libggnet.c
diff options
context:
space:
mode:
authorLaurent Ghigonis <laurent@p1sec.com>2012-12-13 03:27:01 +0100
committerLaurent Ghigonis <laurent@p1sec.com>2012-12-13 03:27:01 +0100
commit3e02291520dd05ae4358f91e7e2bf51241452018 (patch)
treed0c1dc55b7350b0d935f6959c36e287bee8c232d /libglouglou/libggnet.c
parenttest egraph creation success *before* using it (diff)
downloadglouglou-3e02291520dd05ae4358f91e7e2bf51241452018.tar.xz
glouglou-3e02291520dd05ae4358f91e7e2bf51241452018.zip
update last seen date on nodes too when we receive data
Diffstat (limited to 'libglouglou/libggnet.c')
-rw-r--r--libglouglou/libggnet.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libglouglou/libggnet.c b/libglouglou/libggnet.c
index 69eee3f..6512ef9 100644
--- a/libglouglou/libggnet.c
+++ b/libglouglou/libggnet.c
@@ -158,6 +158,8 @@ ggnet_conn_data(struct ggnet *net, struct ggnet_conn *c, int size, int response)
else
c->size_response = c->size_response + size;
c->lastseen = net->time;
+ c->src->lastseen = net->time;
+ c->dst->lastseen = net->time;
}
void