|
@@ -1154,6 +1154,7 @@ static int ip_setup_cork(struct sock *sk, struct inet_cork *cork,
|
|
|
cork->tos = ipc->tos;
|
|
|
cork->priority = ipc->priority;
|
|
|
cork->tx_flags = ipc->tx_flags;
|
|
|
+ cork->transmit_time = ipc->sockc.transmit_time;
|
|
|
|
|
|
return 0;
|
|
|
}
|
|
@@ -1414,6 +1415,7 @@ struct sk_buff *__ip_make_skb(struct sock *sk,
|
|
|
|
|
|
skb->priority = (cork->tos != -1) ? cork->priority: sk->sk_priority;
|
|
|
skb->mark = sk->sk_mark;
|
|
|
+ skb->tstamp = cork->transmit_time;
|
|
|
/*
|
|
|
* Steal rt from cork.dst to avoid a pair of atomic_inc/atomic_dec
|
|
|
* on dst refcount
|
|
@@ -1551,6 +1553,7 @@ void ip_send_unicast_reply(struct sock *sk, struct sk_buff *skb,
|
|
|
ipc.tx_flags = 0;
|
|
|
ipc.ttl = 0;
|
|
|
ipc.tos = -1;
|
|
|
+ ipc.sockc.transmit_time = 0;
|
|
|
|
|
|
if (replyopts.opt.opt.optlen) {
|
|
|
ipc.opt = &replyopts.opt;
|