diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 12:07:20 +0200 |
---|---|---|
committer | Daniel Borkmann <dborkman@redhat.com> | 2013-06-04 12:07:20 +0200 |
commit | 01525e848cd682d51319383c9968979224255b53 (patch) | |
tree | d151c99a3d562f75b5a0bf835a10ea40bc7978b5 /tstamping.c | |
parent | 7ea4576392b014490e6308ad82d695cc85a0b8bd (diff) |
tstamping: add header file for packet timestamping
Better add a header file for this, so that we do not need to have it
in multiple places declared.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'tstamping.c')
-rw-r--r-- | tstamping.c | 11 |
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; |