aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r--net/ipv4/tcp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c
index 6f8d292ad501..e29aec59cad1 100644
--- a/net/ipv4/tcp.c
+++ b/net/ipv4/tcp.c
@@ -1867,13 +1867,13 @@ static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
1867 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) { 1867 if (tss->ts[0].tv_sec || tss->ts[0].tv_nsec) {
1868 if (sock_flag(sk, SOCK_RCVTSTAMP)) { 1868 if (sock_flag(sk, SOCK_RCVTSTAMP)) {
1869 if (sock_flag(sk, SOCK_RCVTSTAMPNS)) { 1869 if (sock_flag(sk, SOCK_RCVTSTAMPNS)) {
1870 put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMPNS, 1870 put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPNS_OLD,
1871 sizeof(tss->ts[0]), &tss->ts[0]); 1871 sizeof(tss->ts[0]), &tss->ts[0]);
1872 } else { 1872 } else {
1873 tv.tv_sec = tss->ts[0].tv_sec; 1873 tv.tv_sec = tss->ts[0].tv_sec;
1874 tv.tv_usec = tss->ts[0].tv_nsec / 1000; 1874 tv.tv_usec = tss->ts[0].tv_nsec / 1000;
1875 1875
1876 put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMP, 1876 put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMP_OLD,
1877 sizeof(tv), &tv); 1877 sizeof(tv), &tv);
1878 } 1878 }
1879 } 1879 }
@@ -1893,7 +1893,7 @@ static void tcp_recv_timestamp(struct msghdr *msg, const struct sock *sk,
1893 1893
1894 if (has_timestamping) { 1894 if (has_timestamping) {
1895 tss->ts[1] = (struct timespec) {0}; 1895 tss->ts[1] = (struct timespec) {0};
1896 put_cmsg(msg, SOL_SOCKET, SCM_TIMESTAMPING, 1896 put_cmsg(msg, SOL_SOCKET, SO_TIMESTAMPING_OLD,
1897 sizeof(*tss), tss); 1897 sizeof(*tss), tss);
1898 } 1898 }
1899} 1899}