summaryrefslogtreecommitdiffstats
path: root/include/net/sock.h
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2021-06-04 01:24:28 +0200
committerDavid S. Miller <davem@davemloft.net>2021-06-04 23:08:09 +0200
commitced122d90f52eb6ff37272e32941845d46ac64c6 (patch)
tree7ab4f3a85381d367563d2a849817dba76cd47803 /include/net/sock.h
parentsock: expose so_timestamp options for mptcp (diff)
downloadlinux-ced122d90f52eb6ff37272e32941845d46ac64c6.tar.xz
linux-ced122d90f52eb6ff37272e32941845d46ac64c6.zip
sock: expose so_timestamping options for mptcp
Similar to previous patch: expose SO_TIMESTAMPING helper so we do not have to copy & paste this into the mptcp core. 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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sock.h b/include/net/sock.h
index 7e0116b1a73f..9b341c2c924f 100644
--- a/include/net/sock.h
+++ b/include/net/sock.h
@@ -2744,6 +2744,8 @@ 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);
+int sock_set_timestamping(struct sock *sk, int optname, int val);
+
void sock_enable_timestamps(struct sock *sk);
void sock_no_linger(struct sock *sk);
void sock_set_keepalive(struct sock *sk);