OSDN Git Service

inet: factor out inet_send_prepare()
authorPaolo Abeni <pabeni@redhat.com>
Wed, 3 Jul 2019 14:06:52 +0000 (16:06 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Jul 2019 20:51:54 +0000 (13:51 -0700)
commite473093639945cb0a07ad4d51d5fd3fc3c3708cf
tree9e02a9ba18ed8d4dcffdfa1413e0e1ea1c7e9b66
parent2559d7c4dd0eb17e6454fc7f52f9c5ea63a272df
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>
include/net/inet_common.h
net/ipv4/af_inet.c