Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2017 22:26:28 -0700
From:      Ngie Cooper <yaneurabeya@gmail.com>
To:        Gleb Smirnoff <glebius@FreeBSD.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r317543 - head/usr.sbin/bhyve
Message-ID:  <D484C95F-7418-478E-A396-0F220AB2E516@gmail.com>
In-Reply-To: <201704280513.v3S5DRYU067517@repo.freebsd.org>
References:  <201704280513.v3S5DRYU067517@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

> On Apr 27, 2017, at 22:13, Gleb Smirnoff <glebius@FreeBSD.org> wrote:
>=20
> Author: glebius
> Date: Fri Apr 28 05:13:27 2017
> New Revision: 317543
> URL: https://svnweb.freebsd.org/changeset/base/317543
>=20
> Log:
>  When no "rfb" configuration specified bind to the default VNC
>  port instead of binding to a random one.
>=20
> Modified:
>  head/usr.sbin/bhyve/pci_fbuf.c
>=20
> Modified: head/usr.sbin/bhyve/pci_fbuf.c
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D
> --- head/usr.sbin/bhyve/pci_fbuf.c    Fri Apr 28 05:09:51 2017    (r317542=
)
> +++ head/usr.sbin/bhyve/pci_fbuf.c    Fri Apr 28 05:13:27 2017    (r317543=
)
> @@ -365,6 +365,8 @@ pci_fbuf_init(struct vmctx *ctx, struct=20
>=20
>    sc->fsc_pi =3D pi;
>=20
> +    sc->rfb_port =3D 5900;
> +

Wouldn't it be better to use getservbyname?

>    error =3D pci_fbuf_parse_opts(sc, opts);
>    if (error !=3D 0)
>        goto done;
>=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D484C95F-7418-478E-A396-0F220AB2E516>