On 07.02.2021 08:23, Xin Long wrote:
In rxrpc_open_socket(), now it's using sock_create_kern() and
kernel_bind() to create a udp tunnel socket, and other kernel
APIs to set up it. These code can be replaced with udp tunnel
APIs udp_sock_create() and setup_udp_tunnel_sock(), and it'll
simplify rxrpc_open_socket().
Note that with this patch, the udp tunnel socket will always
bind to a random port if transport is not provided by users,
which is suggested by David Howells, thanks!
Acked-by: David Howells <[email protected]>
Signed-off-by: Xin Long <[email protected]>
Looks good to me.
Reviewed-by: Vadim Fedorenko <[email protected]>