linux/net/vmw_vsock
Jorgen Hansen a915b982d8 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: d021c34405 ("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>
2018-12-18 11:53:42 -08:00
..
Kconfig
Makefile
af_vsock.c VSOCK: bind to random port for VMADDR_PORT_ANY 2018-12-14 14:40:19 -08:00
af_vsock_tap.c
diag.c
hyperv_transport.c VSOCK: fix outdated sk_state value in hvs_release() 2017-12-05 15:07:37 -05:00
virtio_transport.c VSOCK: fix loopback on big-endian systems 2018-06-22 09:34:08 +09:00
virtio_transport_common.c
vmci_transport.c VSOCK: Send reset control packet when socket is partially bound 2018-12-18 11:53:42 -08:00
vmci_transport.h
vmci_transport_notify.c
vmci_transport_notify.h
vmci_transport_notify_qstate.c
vsock_addr.c