From: "Daniel P. Berrange" <berrange@redhat.com>
To: Anthony Liguori <aliguori@us.ibm.com>
Cc: Ian Pratt <m+Ian.Pratt@cl.cam.ac.uk>,
xen-devel <xen-devel@lists.xensource.com>,
Jeremy Katz <katzj@redhat.com>
Subject: Re: [PATCH] vnclisten for HVM vnc
Date: Fri, 29 Sep 2006 20:02:33 +0100 [thread overview]
Message-ID: <20060929190233.GA8564@redhat.com> (raw)
In-Reply-To: <451D5FD6.7090307@us.ibm.com>
On Fri, Sep 29, 2006 at 01:03:02PM -0500, Anthony Liguori wrote:
> >
> >+int parse_host(struct sockaddr_in *saddr, const char *buf)
> >+{
> >+ struct hostent *he;
> >+
> >+ if (isdigit(buf[0])) {
> >+ if (!inet_aton(buf, &saddr->sin_addr))
> >+ return -1;
> >
>
> Valid hostnames can begin with a digit as long as there are non-digits
> in the name. What I normally do is try inet_aton() iff gethostbyname
> fails first.
Yeah, should have thought about possibility of using a hostname instead of
IP address. Will update the patch to try what you suggest here. We've also
got an equivalent patch for the para-virt framebuffer which I'll post later
too.
Regards,
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules: http://search.cpan.org/~danberr/ -=|
|=- Projects: http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|
next prev parent reply other threads:[~2006-09-29 19:02 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-09-02 16:55 [PATCH] vnclisten for HVM vnc Jeremy Katz
2006-09-27 19:36 ` Jeremy Katz
2006-09-27 19:42 ` Daniel P. Berrange
2006-09-27 19:57 ` Jeremy Katz
2006-09-27 20:02 ` Daniel P. Berrange
2006-09-27 20:40 ` Ian Pratt
2006-09-29 17:24 ` Daniel P. Berrange
2006-09-29 18:03 ` Anthony Liguori
2006-09-29 19:02 ` Daniel P. Berrange [this message]
2006-09-29 19:43 ` Daniel P. Berrange
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060929190233.GA8564@redhat.com \
--to=berrange@redhat.com \
--cc=aliguori@us.ibm.com \
--cc=katzj@redhat.com \
--cc=m+Ian.Pratt@cl.cam.ac.uk \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.