diff options
author | Paolo Abeni <pabeni@redhat.com> | 2019-07-03 16:06:52 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-07-03 13:51:54 -0700 |
commit | e473093639945cb0a07ad4d51d5fd3fc3c3708cf (patch) | |
tree | 9e02a9ba18ed8d4dcffdfa1413e0e1ea1c7e9b66 /include/net/inet_common.h | |
parent | 2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df (diff) | |
download | lwn-e473093639945cb0a07ad4d51d5fd3fc3c3708cf.tar.gz lwn-e473093639945cb0a07ad4d51d5fd3fc3c3708cf.zip |
inet: factor out inet_send_prepare()
The same code is replicated verbatim in multiple places, and the next
patches will introduce an additional user for it. Factor out a
helper and use it where appropriate. No functional change intended.
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/inet_common.h')
-rw-r--r-- | include/net/inet_common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/inet_common.h b/include/net/inet_common.h index 975901a95c0f..ae2ba897675c 100644 --- a/include/net/inet_common.h +++ b/include/net/inet_common.h @@ -25,6 +25,7 @@ int inet_dgram_connect(struct socket *sock, struct sockaddr *uaddr, int addr_len, int flags); int inet_accept(struct socket *sock, struct socket *newsock, int flags, bool kern); +int inet_send_prepare(struct sock *sk); int inet_sendmsg(struct socket *sock, struct msghdr *msg, size_t size); ssize_t inet_sendpage(struct socket *sock, struct page *page, int offset, size_t size, int flags); |