summaryrefslogtreecommitdiffstats
path: root/include/linux/if_packet.h
diff options
context:
space:
mode:
authorRichard Cochran <richardcochran@gmail.com>2010-04-07 22:41:28 +0000
committerDavid S. Miller <davem@davemloft.net>2010-04-13 01:30:48 -0700
commited85b565b825566da34e55eee9ad150ed93fdda0 (patch)
tree77b9bad66d0cd6a1b7c657995100d555b8ecb9eb /include/linux/if_packet.h
parent7d53b80980a598836c56517290b29aa7b0766ef8 (diff)
downloadblackbird-op-linux-ed85b565b825566da34e55eee9ad150ed93fdda0.tar.gz
blackbird-op-linux-ed85b565b825566da34e55eee9ad150ed93fdda0.zip
packet: support for TX time stamps on RAW sockets
Enable the SO_TIMESTAMPING socket infrastructure for raw packet sockets. We introduce PACKET_TX_TIMESTAMP for the control message cmsg_type. Similar support for UDP and CAN sockets was added in commit 51f31cabe3ce5345b51e4a4f82138b38c4d5dc91 Signed-off-by: Richard Cochran <richard.cochran@omicron.at> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/if_packet.h')
-rw-r--r--include/linux/if_packet.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/if_packet.h b/include/linux/if_packet.h
index aa57a5f993fc..6ac23ef1801a 100644
--- a/include/linux/if_packet.h
+++ b/include/linux/if_packet.h
@@ -47,6 +47,7 @@ struct sockaddr_ll {
#define PACKET_TX_RING 13
#define PACKET_LOSS 14
#define PACKET_VNET_HDR 15
+#define PACKET_TX_TIMESTAMP 16
struct tpacket_stats {
unsigned int tp_packets;
OpenPOWER on IntegriCloud