[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/4] net: update netdev dgram man page with unix socket
From: |
Laurent Vivier |
Subject: |
[PATCH v2 3/4] net: update netdev dgram man page with unix socket |
Date: |
Thu, 4 Jul 2024 14:48:33 +0200 |
Add the description of "-netdev dgram" with a unix domain socket.
The code has been added but the man page has not been updated.
Fixes: 784e7a253104 ("net: dgram: add unix socket")
Signed-off-by: Laurent Vivier <lvivier@redhat.com>
---
qemu-options.hx | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+)
diff --git a/qemu-options.hx b/qemu-options.hx
index ef476b593cd1..1bbf629b9959 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -3500,6 +3500,29 @@ SRST
-device virtio-net,netdev=net0,mac=52:54:00:12:34:56 \\
-netdev
dgram,id=net0,local.type=inet,local.host=localhost,local.port=1235,remote.type=inet,remote.host=localhost,remote.port=1234
+``-netdev
dgram,id=str,local.type=unix,local.path=path[,remote.type=unix,remote.path=path]``
+ Configure a network backend to connect to another QEMU virtual
+ machine or a proxy using a datagram oriented unix socket.
+
+ ``local.path=path``
+ filesystem path to use to bind the socket
+
+ ``remote.path=path``
+ filesystem path to use as a destination (see sendto(2))
+
+ Example (two guests connected using an UDP/UNIX socket):
+
+ .. parsed-literal::
+
+ # first VM
+ |qemu_system| linux.img \\
+ -device virtio-net,netdev=net0,mac=52:54:00:12:34:56 \\
+ -netdev
dgram,id=net0,local.type=unix,local.path=/tmp/qemu0,remote.type=unix,remote.path=/tmp/qemu1
+ # second VM
+ |qemu_system| linux.img \\
+ -device virtio-net,netdev=net0,mac=52:54:00:12:34:57 \\
+ -netdev
dgram,id=net0,local.type=unix,local.path=/tmp/qemu1,remote.type=unix,remote.path=/tmp/qemu0
+
``-netdev dgram,id=str,local.type=fd,local.str=file-descriptor``
Configure a network backend to connect to another QEMU virtual
machine or a proxy using a datagram oriented socket file descriptor.
--
2.45.2
- [PATCH v2 0/4] net: update netdev stream/dgram man page, Laurent Vivier, 2024/07/04
- [PATCH v2 4/4] net: update netdev stream man page with the reconnect parameter, Laurent Vivier, 2024/07/04
- [PATCH v2 3/4] net: update netdev dgram man page with unix socket,
Laurent Vivier <=
- [PATCH v2 2/4] net: update netdev stream man page with unix socket, Laurent Vivier, 2024/07/04
- [PATCH v2 1/4] net: update netdev stream/dgram man page, Laurent Vivier, 2024/07/04
- Re: [PATCH v2 0/4] net: update netdev stream/dgram man page, Marc-André Lureau, 2024/07/15
- Re: [PATCH v2 0/4] net: update netdev stream/dgram man page, Laurent Vivier, 2024/07/25