summaryrefslogtreecommitdiff
path: root/drivers/net/xen-netfront.c
diff options
context:
space:
mode:
authorJorgen Hansen <jhansen@vmware.com>2018-12-18 00:34:06 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-01-09 16:16:41 +0100
commitd2ea9f12c45ec97c154fce5a880a05f0c71482e4 (patch)
tree9843849b3e6c273b746862ac7651de0095b09831 /drivers/net/xen-netfront.c
parentbd50de33ca4cb4d9fdcee5e9e977b39599c11420 (diff)
VSOCK: Send reset control packet when socket is partially bound
[ Upstream commit a915b982d8f5e4295f64b8dd37ce753874867e88 ] 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 <aditr@vmware.com> Reviewed-by: Vishnu Dasa <vdasa@vmware.com> Signed-off-by: Jorgen Hansen <jhansen@vmware.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/xen-netfront.c')
0 files changed, 0 insertions, 0 deletions