[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v12 12/17] net: dgram: add unix socket



On 20/10/22 11:16, Laurent Vivier wrote:
Signed-off-by: Laurent Vivier <lvivier@xxxxxxxxxx>
Reviewed-by: Stefano Brivio <sbrivio@xxxxxxxxxx>
Reviewed-by: David Gibson <david@xxxxxxxxxxxxxxxxxxxxx>
Acked-by: Michael S. Tsirkin <mst@xxxxxxxxxx>
QAPI schema
Acked-by: Markus Armbruster <armbru@xxxxxxxxxx>

Eventually:

  Acked-by: Markus Armbruster <armbru@xxxxxxxxxx> (QAPI schema)

---
  net/dgram.c     | 54 ++++++++++++++++++++++++++++++++++++++++++++++++-
  qapi/net.json   |  2 +-
  qemu-options.hx |  1 +
  3 files changed, 55 insertions(+), 2 deletions(-)

diff --git a/net/dgram.c b/net/dgram.c
index e581cc62f39f..02a189e36358 100644
--- a/net/dgram.c
+++ b/net/dgram.c
@@ -426,6 +426,7 @@ int net_init_dgram(const Netdev *netdev, const char *name,
      SocketAddress *remote, *local;
      struct sockaddr *dest_addr;
      struct sockaddr_in laddr_in, raddr_in;
+    struct sockaddr_un laddr_un, raddr_un;
      socklen_t dest_len;
assert(netdev->type == NET_CLIENT_DRIVER_DGRAM);
@@ -465,7 +466,7 @@ int net_init_dgram(const Netdev *netdev, const char *name,
          }
      } else {
          if (local->type != SOCKET_ADDRESS_TYPE_FD) {
-            error_setg(errp, "type=inet requires remote parameter");
+            error_setg(errp, "type=inet or unix require remote parameter");

Maybe clearer reworded as:

  "type=inet or type=unix requires remote parameter"

              return -1;
          }
      }




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.