This is an automated email from the ASF dual-hosted git repository. xiaoxiang781216 pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit e7de8ad8c6f03d4ade29a4e00d2d28d0499151e7 Author: mazhuang <[email protected]> AuthorDate: Thu Jun 4 16:09:06 2026 +0800 net/rpmsg: send the refusing NS_DESTROY with RPMSG_ADDR_ANY The NS_DESTROY that refuses a connection carried the client's endpoint address. A Linux peer matches it against rpdev->dst, which is still RPMSG_ADDR_ANY before the channel is established, so the match failed, the rpmsg device was never removed and connect() on Linux hung. Send RPMSG_ADDR_ANY, which makes the peer skip the address comparison and match on the name alone. Signed-off-by: mazhuang <[email protected]> --- net/rpmsg/rpmsg_sockif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/rpmsg/rpmsg_sockif.c b/net/rpmsg/rpmsg_sockif.c index aa1b10b23db..0869a6bf218 100644 --- a/net/rpmsg/rpmsg_sockif.c +++ b/net/rpmsg/rpmsg_sockif.c @@ -764,7 +764,7 @@ static void rpmsg_socket_ns_destroy(FAR struct rpmsg_device *rdev, struct rpmsg_ns_msg ns_msg; strlcpy(ns_msg.name, name, RPMSG_NAME_SIZE); - ns_msg.addr = dest; + ns_msg.addr = RPMSG_ADDR_ANY; ns_msg.flags = RPMSG_NS_DESTROY; rpmsg_send_offchannel_raw(&rdev->ns_ept, rdev->ns_ept.addr,
