summaryrefslogtreecommitdiff
path: root/built_in.h
diff options
context:
space:
mode:
authorDaniel Borkmann <dborkman@redhat.com>2013-04-29 22:45:53 +0200
committerDaniel Borkmann <dborkman@redhat.com>2013-04-29 22:45:53 +0200
commitec2c6ad0658638552ca547a695953609f3b7bd9c (patch)
tree34d853a77debb507e2842a0100a749705e5142f8 /built_in.h
parent3006fab58f7dd70078ffa92e542691b4f8f94abb (diff)
dissector: show sw/hw timestamp source
Now, with PF_PACKET's extension, we can see what kind of sw/hw timestamp is being reported to us [1]. Thus, report it in the dissector. [1] http://thread.gmane.org/gmane.linux.network/266878/ Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Diffstat (limited to 'built_in.h')
-rw-r--r--built_in.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/built_in.h b/built_in.h
index ee97c74..72618a0 100644
--- a/built_in.h
+++ b/built_in.h
@@ -341,4 +341,16 @@ static inline u64 cpu_to_le64(u64 val)
# define CO_IN_CACHE_SHIFT 5
#endif
+#ifndef TP_STATUS_TS_SOFTWARE
+# define TP_STATUS_TS_SOFTWARE (1 << 29)
+#endif
+
+#ifndef TP_STATUS_TS_SYS_HARDWARE
+# define TP_STATUS_TS_SYS_HARDWARE (1 << 30)
+#endif
+
+#ifndef TP_STATUS_TS_RAW_HARDWARE
+# define TP_STATUS_TS_RAW_HARDWARE (1 << 31)
+#endif
+
#endif /* BUILT_IN_H */