From nobody Mon Feb 9 12:24:19 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1530848294884742.382598576649; Thu, 5 Jul 2018 20:38:14 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 89427307C706; Fri, 6 Jul 2018 03:38:13 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4DFC917B21; Fri, 6 Jul 2018 03:38:13 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 06AEA4A464; Fri, 6 Jul 2018 03:38:13 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id w663bFcE032704 for ; Thu, 5 Jul 2018 23:37:15 -0400 Received: by smtp.corp.redhat.com (Postfix) id 5B4F017786; Fri, 6 Jul 2018 03:37:15 +0000 (UTC) Received: from mx1.redhat.com (ext-mx17.extmail.prod.ext.phx2.redhat.com [10.5.110.46]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5231D171DB for ; Fri, 6 Jul 2018 03:37:13 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.17.20]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 425BC30E687E for ; Fri, 6 Jul 2018 03:37:11 +0000 (UTC) Received: from localhost.localdomain ([58.56.27.130]) by mail.gmx.com (mrgmx101 [212.227.17.174]) with ESMTPSA (Nemesis) id 0MPppG-1fWLby3vkY-004yGK; Fri, 06 Jul 2018 05:37:09 +0200 From: Shi Lei To: libvir-list@redhat.com Date: Fri, 6 Jul 2018 11:36:47 +0800 Message-Id: <1530848207-20731-4-git-send-email-shilei.massclouds@gmx.com> In-Reply-To: <1530848207-20731-1-git-send-email-shilei.massclouds@gmx.com> References: <1530848207-20731-1-git-send-email-shilei.massclouds@gmx.com> X-Provags-ID: V03:K1:rSt7GDUM8JJ38DPi/a+lkTRsdcE/CL8653aaxGeOf3iiBXLypZW 1nFnD1Dt2/EOZ3RgL/CssPyaw1IW+pvTEABkKhcro0CprCbr10c5hUr39/mlMacCoA+sClt RcvLy4T/9yyxBj3nCDLaeSJMw9qSfkRwh8TDl/BgnPR0N0kfPDU8jpU/to1DoHvlJevMPb9 7ENMjO/shLxDA5aJ0jCcA== X-UI-Out-Filterresults: notjunk:1;V01:K0:8MUhUbeeLgk=:IlAc2iXrXfskw8qMf9Mz2m zK8Vzk75oD1See25vyZqRcg+7sjDqcKRadbleCxZuiv7vLXnKvFGUjgUYRADu3B/+YysQVsNd 34jOE5k6K2qxPmJZjgYX8AKxryADx/kvZ4oTYGAqbeasYzyG3pJeyYPRLYLTR9vhGMT/2/NvC h0k3LdkLZjzcmIJJ6NVsgGw3rDSx0ajBUrhL2X6z1+/fF+aIthd1SyLgiJ6rlVXS5tfIFN7ut iWExxz0P+FVu5/Q6NqlNMmcHG2O1IXb118/dF2ZGZnTNQJ5Sx+DpR+kYGqcNATrto1fgKEuml UMGgV92rz3ykltRi7KDCz70/L9b84IZ9oZCXetiN9TE6N6GXg+tluXpThg/8brS//soIGndue 3Izbw3OYo3+zaeftAWnuZPDTnDSQ+IMONr2kABV6j37pA/dtdE15oK2kf6/cvX8xJExumvTRd R+GewUBhuhAYROkTzqj4pwSiCWnLT01vj5rOJQ14UsxA71BLd/aGddkq23h+Ad0QPkIssN31m riXhP99asSTQpmNgSwoYJvGGa6rkZwWgKk0ED+0Ow8QRchBmmiW4hXgSciXkjbvrmCVWvoSkv +uwHAzbpNSrugYL14WJHvnuQNTLnWoFa8ooGe7CfMhxjsxyBQ2eWWXfh4XOh7QNl9KDZqZaoX DcAWSQsHfekDVfbKmBjJJSftmo7Qwqey9xvam//OjkbaPfcEcwPL1vB4t6oMFdkZs9XUGoi4Z f9h3PShmE/MGF/dCKop2+CZHIoOu0srk6F0ypYzSTpJP6Vm870eLoWmimzY= X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 207 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 06 Jul 2018 03:37:11 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.46]); Fri, 06 Jul 2018 03:37:11 +0000 (UTC) for IP:'212.227.17.20' DOMAIN:'mout.gmx.net' HELO:'mout.gmx.net' FROM:'shilei.massclouds@gmx.com' RCPT:'' X-RedHat-Spam-Score: -0.7 (FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS) 212.227.17.20 mout.gmx.net 212.227.17.20 mout.gmx.net X-Scanned-By: MIMEDefang 2.84 on 10.5.110.46 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Shi Lei Subject: [libvirt] [PATCH 3/3] fix other functions to add VIR_NETWORK_FORWARD_VLAN X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.42]); Fri, 06 Jul 2018 03:38:14 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Signed-off-by: Shi Lei --- src/conf/domain_conf.c | 1 + src/conf/virnetworkobj.c | 1 + src/qemu/qemu_process.c | 1 + 3 files changed, 3 insertions(+) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index f4e59f6..bd8b050 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -29912,6 +29912,7 @@ virDomainNetResolveActualType(virDomainNetDefPtr if= ace) if ((def->forward.type =3D=3D VIR_NETWORK_FORWARD_NONE) || (def->forward.type =3D=3D VIR_NETWORK_FORWARD_NAT) || (def->forward.type =3D=3D VIR_NETWORK_FORWARD_ROUTE) || + (def->forward.type =3D=3D VIR_NETWORK_FORWARD_VLAN) || (def->forward.type =3D=3D VIR_NETWORK_FORWARD_OPEN)) { /* for these forward types, the actual net type really *is* * NETWORK; we just keep the info from the portgroup in diff --git a/src/conf/virnetworkobj.c b/src/conf/virnetworkobj.c index e00c8a7..3869021 100644 --- a/src/conf/virnetworkobj.c +++ b/src/conf/virnetworkobj.c @@ -1012,6 +1012,7 @@ virNetworkLoadConfig(virNetworkObjListPtr nets, if (def->forward.type =3D=3D VIR_NETWORK_FORWARD_NONE || def->forward.type =3D=3D VIR_NETWORK_FORWARD_NAT || def->forward.type =3D=3D VIR_NETWORK_FORWARD_ROUTE || + def->forward.type =3D=3D VIR_NETWORK_FORWARD_VLAN || def->forward.type =3D=3D VIR_NETWORK_FORWARD_OPEN) { =20 if (!def->mac_specified) { diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c index 40d35cb..0e3e1af 100644 --- a/src/qemu/qemu_process.c +++ b/src/qemu/qemu_process.c @@ -4434,6 +4434,7 @@ qemuProcessGetNetworkAddress(const char *netname, case VIR_NETWORK_FORWARD_NAT: case VIR_NETWORK_FORWARD_ROUTE: case VIR_NETWORK_FORWARD_OPEN: + case VIR_NETWORK_FORWARD_VLAN: ipdef =3D virNetworkDefGetIPByIndex(netdef, AF_UNSPEC, 0); if (!ipdef) { virReportError(VIR_ERR_INTERNAL_ERROR, --=20 2.7.4 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list