aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-03 16:24:27 -0700
committerDavid S. Miller <davem@davemloft.net>2021-06-04 14:08:09 -0700
commit371087aa476ab0ac0072303ac94a3bba2d7b0a1d (patch)
treea6a80c4726a3dea5e4c0641911cde2addf5f8c78 /include/net/sock.h
parentebbf5fcb94a7f3499747b282420a1c5f7e8d1c6f (diff)
downloadlinux-371087aa476ab0ac0072303ac94a3bba2d7b0a1d.tar.gz
sock: expose so_timestamp options for mptcp
This exports SO_TIMESTAMP_* function for re-use by MPTCP. Without this there is too much copy & paste needed to support this from mptcp setsockopt path. Acked-by: Paolo Abeni <pabeni@redhat.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sock.h')
-rw-r--r--include/net/sock.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 0e962d8bc73b1c..7e0116b1a73fe6 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -2743,6 +2743,7 @@ static inline bool sk_dev_equal_l3scope(struct sock *sk, int dif)
void sock_def_readable(struct sock *sk);
int sock_bindtoindex(struct sock *sk, int ifindex, bool lock_sk);
+void sock_set_timestamp(struct sock *sk, int optname, bool valbool);
void sock_enable_timestamps(struct sock *sk);
void sock_no_linger(struct sock *sk);
void sock_set_keepalive(struct sock *sk);