> On Apr 27, 2017, at 22:13, Gleb Smirnoff <gleb...@freebsd.org> wrote:
> 
> Author: glebius
> Date: Fri Apr 28 05:13:27 2017
> New Revision: 317543
> URL: https://svnweb.freebsd.org/changeset/base/317543
> 
> Log:
>  When no "rfb" configuration specified bind to the default VNC
>  port instead of binding to a random one.
> 
> Modified:
>  head/usr.sbin/bhyve/pci_fbuf.c
> 
> Modified: head/usr.sbin/bhyve/pci_fbuf.c
> ==============================================================================
> --- 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 
> 
>    sc->fsc_pi = pi;
> 
> +    sc->rfb_port = 5900;
> +

Wouldn't it be better to use getservbyname?

>    error = pci_fbuf_parse_opts(sc, opts);
>    if (error != 0)
>        goto done;
> 
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to