aboutsummaryrefslogtreecommitdiffstats
path: root/include/net/ip.h
diff options
context:
space:
mode:
authorPoorva Sonparote <psonparo@redhat.com>2021-11-19 12:41:34 -0800
committerDavid S. Miller <davem@davemloft.net>2021-11-20 14:11:00 +0000
commit4f47d5d507d6f211ebceac76a5f0b83c2eae154b (patch)
tree121721fcabe842999f28d8283d85d7e7605b5017 /include/net/ip.h
parentMerge branch 'dev_addr-const' (diff)
downloadlinux-dev-4f47d5d507d6f211ebceac76a5f0b83c2eae154b.tar.xz
linux-dev-4f47d5d507d6f211ebceac76a5f0b83c2eae154b.zip
ipv4: Exposing __ip_sock_set_tos() in ip.h
Making the static function __ip_sock_set_tos() from net/ipv4/ip_sockglue.c accessible by declaring it in include/net/ip.h The reason for doing this is to use this function to set IP_TOS value in mptcp_setsockopt() without the lock. Signed-off-by: Poorva Sonparote <psonparo@redhat.com> Signed-off-by: Mat Martineau <mathew.j.martineau@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--include/net/ip.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/ip.h b/include/net/ip.h
index 7d1088888c10..81e23a102a0d 100644
--- a/include/net/ip.h
+++ b/include/net/ip.h
@@ -783,5 +783,6 @@ int ip_sock_set_mtu_discover(struct sock *sk, int val);
void ip_sock_set_pktinfo(struct sock *sk);
void ip_sock_set_recverr(struct sock *sk);
void ip_sock_set_tos(struct sock *sk, int val);
+void __ip_sock_set_tos(struct sock *sk, int val);
#endif /* _IP_H */