All of lore.kernel.org
 help / color / mirror / Atom feed
* QMP netdev_add multiple dnssearch values
@ 2019-10-17 13:53 Alex Kirillov
  2019-10-25  5:20 ` Markus Armbruster
  0 siblings, 1 reply; 7+ messages in thread
From: Alex Kirillov @ 2019-10-17 13:53 UTC (permalink / raw)
  To: qemu-devel; +Cc: jasowang, armbru, yc-core

Hi,

I'm trying to create a user (slirp) interface with several `dnssearch` values using QMP.
But every variant I pass can't do that.

According to the QAPI schema it should be like:

{
    "execute": "netdev_add",
    "arguments": {
        "id": "netdev0",
        "type": "user",
        "dnssearch": [
            {
                "str": "8.8.8.8"
            },
            {
                "str": "8.8.4.4"
            }
        ]
    }
}

I looked through code and find out that `dnssearch` is passing to the `slirp_dnssearch` (net/slirp.c),
but the only way to execute this function correctly is to pass simply string (like "example.org") to `dnssearch` OR to use command line options.


What is the correct form of QMP command that I should use?


P.S. Looks like fields `hostfwd` and `guestfwd` has the same issue.

-- 
Alex Kirillov
Yandex.Cloud


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-03-13 15:10 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-17 13:53 QMP netdev_add multiple dnssearch values Alex Kirillov
2019-10-25  5:20 ` Markus Armbruster
2019-10-29 10:20   ` Alex Kirillov
2019-11-27 13:30     ` Markus Armbruster
2019-11-27 15:49       ` Eric Blake
2020-03-12 21:26         ` Eric Blake
2020-03-13 15:09           ` Markus Armbruster

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.