summaryrefslogtreecommitdiff
path: root/tstamping.c
diff options
context:
space:
mode:
Diffstat (limited to 'tstamping.c')
-rw-r--r--tstamping.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/tstamping.c b/tstamping.c
index 29dec35..7c97850 100644
--- a/tstamping.c
+++ b/tstamping.c
@@ -1,12 +1,3 @@
-/*
- * netsniff-ng - the packet sniffing beast
- * Copyright 2009, 2010 Daniel Borkmann.
- * Subject to the GPL, version 2.
- */
-
-extern int set_sockopt_hwtimestamp(int sock, const char *dev);
-
-#ifdef __WITH_HARDWARE_TIMESTAMPING
#include <string.h>
#include <sys/ioctl.h>
#include <sys/types.h>
@@ -18,7 +9,9 @@ extern int set_sockopt_hwtimestamp(int sock, const char *dev);
#include <linux/if.h>
#include "str.h"
+#include "tstamping.h"
+#ifdef __WITH_HARDWARE_TIMESTAMPING
int set_sockopt_hwtimestamp(int sock, const char *dev)
{
int timesource, ret;