summaryrefslogtreecommitdiff
path: root/timer.c
diff options
context:
space:
mode:
authorVadim Kochan <vadim4j@gmail.com>2015-06-04 22:34:02 +0300
committerDaniel Borkmann <daniel@iogearbox.net>2015-06-05 23:52:17 +0200
commitb02dc7e2fa5255a0b364c69e7d708b15d297857e (patch)
treea175399229be489537e1b59a1da0f390e38ec916 /timer.c
parent0bc132a51f624874e8a9c5bf1493693e9b71fa63 (diff)
netsniff-ng, nlmsg: add further rtnl route type messages to dissector
Add some more dissection logic for dumping rtnetlink related infos with attributes. Signed-off-by: Vadim Kochan <vadim4j@gmail.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'timer.c')
-rw-r--r--timer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/timer.c b/timer.c
index 8941ab7..c25d5b2 100644
--- a/timer.c
+++ b/timer.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
#include <sys/time.h>
#include "timer.h"
@@ -11,3 +12,8 @@ void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
itimer->it_value.tv_sec = sec;
itimer->it_value.tv_usec = usec;
}
+
+int get_user_hz(void)
+{
+ return sysconf(_SC_CLK_TCK);
+}