summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2013-07-19 19:40:10 +0200
committerDavid S. Miller <davem@davemloft.net>2013-07-22 14:58:19 -0700
commiteda297729171fe16bf34fe5b0419dfb69060f623 (patch)
treec87ac0a1a125bb99bdffdcc4e33c84a2a8d75b2e /include
parentcb820f8e4b7f73d1a32175e6591735b25bb5398d (diff)
downloadlwn-eda297729171fe16bf34fe5b0419dfb69060f623.tar.gz
lwn-eda297729171fe16bf34fe5b0419dfb69060f623.zip
tun: Support software transmit time stamping.
This patch adds transmit time stamping to the tun/tap driver. Similar support already exists for UDP, can, and raw packets. Signed-off-by: Richard Cochran <richardcochran@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/uapi/linux/if_tun.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/uapi/linux/if_tun.h b/include/uapi/linux/if_tun.h
index 82334f88967e..1870ee29bb37 100644
--- a/include/uapi/linux/if_tun.h
+++ b/include/uapi/linux/if_tun.h
@@ -71,6 +71,9 @@
/* read-only flag */
#define IFF_PERSIST 0x0800
+/* Socket options */
+#define TUN_TX_TIMESTAMP 1
+
/* Features for GSO (TUNSETOFFLOAD). */
#define TUN_F_CSUM 0x01 /* You can hand me unchecksummed packets. */
#define TUN_F_TSO4 0x02 /* I can handle TSO for IPv4 packets */