>From 762a8e89d1453e629bbe9c255c0ba4ec207cca25 Mon Sep 17 00:00:00 2001 From: Paul Chavent Date: Fri, 7 Dec 2012 16:15:44 +0100 Subject: [PATCH 2/2] net : add tx timestamp to packet mmap. Signed-off-by: Paul Chavent --- net/packet/af_packet.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/net/packet/af_packet.c b/net/packet/af_packet.c index e639645..948748b 100644 --- a/net/packet/af_packet.c +++ b/net/packet/af_packet.c @@ -1857,6 +1857,10 @@ static int tpacket_fill_skb(struct packet_sock *po, struct sk_buff *skb, void *data; int err; + err = sock_tx_timestamp(&po->sk, &skb_shinfo(skb)->tx_flags); + if (err < 0) + return err; + ph.raw = frame; skb->protocol = proto; -- 1.7.12.1