You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/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>
2 months ago
..
baum.c replace TABs with spaces 2 years ago
char-console.c Include qemu/module.h where needed, drop it from qemu-common.h 6 years ago
char-fd.c Refactoring: refactor TFR() macro to RETRY_ON_EINTR() 2 years ago
char-fe.c include: Rename sysemu/ -> system/ 4 months ago
char-file.c chardev: Allow setting file chardev input file on the command line 2 years ago
char-hmp-cmds.c qapi: Move include/qapi/qmp/ to include/qobject/ 2 months ago
char-hub.c chardev/char-hub: implement backend chardev aggregator 3 months ago
char-io.c Revert "qemu-char: do not operate on sources from finalize callbacks" 9 months ago
char-mux.c include: Rename sysemu/ -> system/ 4 months ago
char-null.c Include qemu/module.h where needed, drop it from qemu-common.h 6 years ago
char-parallel.c chardev/parallel: Don't close stdin on inappropriate device 1 year ago
char-pipe.c Refactoring: refactor TFR() macro to RETRY_ON_EINTR() 2 years ago
char-pty.c chardev/char-pty: send CHR_EVENT_CLOSED on disconnect 3 months ago
char-ringbuf.c Use DECLARE_*CHECKER* macros 5 years ago
char-serial.c chardev: replace qemu_set_nonblock() 3 years ago
char-socket.c chardev: use remoteAddr if the chardev is client 2 months ago
char-stdio.c char-stdio: Restore blocking mode of stdout on exit 10 months ago
char-udp.c qapi chardev: Elide redundant has_FOO in generated C 2 years ago
char-win-stdio.c chardev/char-win-stdio.c: restore old console mode 9 months ago
char-win.c chardev: Improve error report by calling error_setg_win32() 5 years ago
char.c chardev/char-hub: implement backend chardev aggregator 3 months ago
chardev-internal.h chardev/char-hub: implement backend chardev aggregator 3 months ago
meson.build chardev/char-hub: implement backend chardev aggregator 3 months ago
msmouse.c util/fifo8: Rename fifo8_pop_buf() -> fifo8_pop_bufptr() 9 months ago
spice.c ui/spice: Require spice-server >= 0.14.0 2 years ago
testdev.c Use DECLARE_*CHECKER* macros 5 years ago
trace-events chardev: add tracing of socket error conditions 9 months ago
trace.h trace: switch position of headers to what Meson requires 5 years ago
wctablet.c ui/input: Constify QemuInputHandler structure 2 years ago