aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/socket.c
diff options
context:
space:
mode:
authorJorgen Hansen <[email protected]>2018-12-18 08:34:06 +0000
committerDavid S. Miller <[email protected]>2018-12-18 19:53:42 +0000
commita915b982d8f5e4295f64b8dd37ce753874867e88 (patch)
tree0c16321ceef6295f5b8e7215860679388e879a7b /net/tipc/socket.c
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/klasse... (diff)
downloadkernel-a915b982d8f5e4295f64b8dd37ce753874867e88.tar.gz
kernel-a915b982d8f5e4295f64b8dd37ce753874867e88.zip
VSOCK: Send reset control packet when socket is partially bound
If a server side socket is bound to an address, but not in the listening state yet, incoming connection requests should receive a reset control packet in response. However, the function used to send the reset silently drops the reset packet if the sending socket isn't bound to a remote address (as is the case for a bound socket not yet in the listening state). This change fixes this by using the src of the incoming packet as destination for the reset packet in this case. Fixes: d021c344051a ("VSOCK: Introduce VM Sockets") Reviewed-by: Adit Ranadive <[email protected]> Reviewed-by: Vishnu Dasa <[email protected]> Signed-off-by: Jorgen Hansen <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/tipc/socket.c')
0 files changed, 0 insertions, 0 deletions