net: dgram: make dgram_dst generic
commit7c1f0c33cc9d7436172da0882f088b3cfc8a0733
authorLaurent Vivier <lvivier@redhat.com>
Fri, 21 Oct 2022 09:09:15 +0000 (21 11:09 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 28 Oct 2022 05:28:52 +0000 (28 13:28 +0800)
tree02b08ee9036a077181c645421deea4122bef1ee2
parent13c6be96618c4435ba412c098bfe35a76355bc45
net: dgram: make dgram_dst generic

dgram_dst is a sockaddr_in structure. To be able to use it with
unix socket, use a pointer to a generic sockaddr structure.

Rename it dest_addr, and store socket length in dest_len.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Reviewed-by: Stefano Brivio <sbrivio@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/dgram.c