qemu-cr16/chardev
Haoqian He 46f83c898a chardev: use remoteAddr if the chardev is client
If the chardev is client, the socket file path in localAddr may be NULL.
This is because the socket path comes from getsockname(), according
to man page, getsockname() returns the current address bound by the
socket sockfd. If the chardev is client, it's socket is unbound sockfd.

Therefore, when computing the client chardev socket file path, using
remoteAddr is more appropriate.

Signed-off-by: Haoqian He <haoqian.he@smartx.com>
Acked-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20250225104526.2924175-1-haoqian.he@smartx.com>
2025-03-05 09:38:09 +04:00
..
baum.c replace TABs with spaces 2023-03-20 12:43:50 +01:00
char-console.c
char-fd.c
char-fe.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
char-file.c chardev: Allow setting file chardev input file on the command line 2023-04-20 06:50:11 +02:00
char-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2025-02-10 15:33:16 +01:00
char-hub.c chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
char-io.c Revert "qemu-char: do not operate on sources from finalize callbacks" 2024-07-16 10:45:06 +02:00
char-mux.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
char-null.c
char-parallel.c chardev/parallel: Don't close stdin on inappropriate device 2024-02-14 07:44:38 +01:00
char-pipe.c
char-pty.c chardev/char-pty: send CHR_EVENT_CLOSED on disconnect 2025-02-03 13:57:08 +04:00
char-ringbuf.c
char-serial.c
char-socket.c chardev: use remoteAddr if the chardev is client 2025-03-05 09:38:09 +04:00
char-stdio.c char-stdio: Restore blocking mode of stdout on exit 2024-07-03 21:54:41 +02:00
char-udp.c
char-win-stdio.c chardev/char-win-stdio.c: restore old console mode 2024-07-22 22:25:46 +04:00
char-win.c
char.c chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
chardev-internal.h chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
meson.build chardev/char-hub: implement backend chardev aggregator 2025-02-03 13:57:08 +04:00
msmouse.c util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_bufptr() 2024-07-23 22:34:54 +02:00
spice.c ui/spice: Require spice-server >= 0.14.0 2023-01-19 13:30:01 +01:00
testdev.c
trace-events chardev: add tracing of socket error conditions 2024-07-24 10:39:10 +01:00
trace.h
wctablet.c ui/input: Constify QemuInputHandler structure 2023-10-19 23:13:28 +02:00