]> git.baikalelectronics.ru Git - kernel.git/commit
net: add a new bind_add method
authorChristoph Hellwig <hch@lst.de>
Fri, 29 May 2020 12:09:42 +0000 (14:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 May 2020 20:10:39 +0000 (13:10 -0700)
commitf1d19be5f4c4e435bb36e8175613c5daedddc6f1
treedbe8e82ca86e471956cef038764adb299270b0ef
parent8afac125566e7d19a54dd24b909c6c3becaf51f1
net: add a new bind_add method

The SCTP protocol allows to bind multiple address to a socket.  That
feature is currently only exposed as a socket option.  Add a bind_add
method struct proto that allows to bind additional addresses, and
switch the dlm code to use the method instead of going through the
socket option from kernel space.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
fs/dlm/lowcomms.c
include/net/sock.h
net/core/sock.c
net/sctp/socket.c