summaryrefslogtreecommitdiffstats
path: root/src/trans-libnl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/trans-libnl.c')
-rw-r--r--src/trans-libnl.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/trans-libnl.c b/src/trans-libnl.c
index d4b814b..c6e3b90 100644
--- a/src/trans-libnl.c
+++ b/src/trans-libnl.c
@@ -45,6 +45,22 @@ static int process_cb(struct trans_handle *h, struct trans_msg *m,
m->data.len = nla_len(attrs[TSNIF_ATTR_DATA]);
}
+ if (attrs[TSNIF_ATTR_TIME]) {
+ struct timespec *time;
+
+ time = (struct timespec*) nla_data(attrs[TSNIF_ATTR_TIME]);
+ m->data.time = *(time);
+ TSNIF_DEBUG("time1 %ld %ld\n", time->tv_sec, time->tv_nsec);
+ TSNIF_DEBUG("time2 %ld\n", m->data.time.tv_sec);
+ }
+
+ if (attrs[TSNIF_ATTR_WS]) {
+ struct winsize *ws;
+
+ ws = (struct winsize*) nla_data(attrs[TSNIF_ATTR_WS]);
+ m->data.ws = *(ws);
+ }
+
if (attrs[TSNIF_ATTR_FLAGS])
m->data.flags = nla_get_u32(attrs[TSNIF_ATTR_FLAGS]);