> Advertise VIRTIO_VSOCK_F_DGRAM and record whether the device > negotiated it. Gate datagram socket initialization and destination > checks on the negotiated feature and the transport's supported network > namespace mode. > > Perform device capability checks at socket creation without requiring > a remote address, which is not yet known for an unconnected datagram > socket. The common virtio implementation provides the datagram data > path. > > Discard received datagrams when the device has not negotiated support, > including when a socket was initialized through another transport. > Reject packets addressed to a different CID using the full 64-bit wire > value before bound-socket lookup narrows it or matches a wildcard. > > Signed-off-by: Sergio Lopez <[email protected]>
Sashiko has reviewed this patch and found no issues. -- Sashiko AI review ยท https://sashiko.dev/#/patchset/[email protected]?part=4
