diff options
author | Christoph Hellwig <hch@lst.de> | 2020-05-27 20:22:28 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-27 15:11:33 -0700 |
commit | 0774dc7643db525f0bb9d0aa212cbfad3a412fc6 (patch) | |
tree | 1068537c5954eb53f586a30b0d8b7ffacb785d31 /net/socket.c | |
parent | 50ce4c099bebf56be86c9448f7f4bcd34f33663c (diff) | |
download | linux-0774dc7643db525f0bb9d0aa212cbfad3a412fc6.tar.gz linux-0774dc7643db525f0bb9d0aa212cbfad3a412fc6.tar.bz2 linux-0774dc7643db525f0bb9d0aa212cbfad3a412fc6.zip |
dlm: use the tcp version of accept_from_sock for sctp as well
The only difference between a few missing fixes applied to the SCTP
one is that TCP uses ->getpeername to get the remote address, while
SCTP uses kernel_getsockopt(.. SCTP_PRIMARY_ADDR). But given that
getpeername is defined to return the primary address for sctp, there
doesn't seem to be any reason for the different way of quering the
peername, or all the code duplication.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions