Re: [Nbd] Specifying interface to listen on
- To: Tefnet Developers <developers@...136...>
- Cc: nbd-general@lists.sourceforge.net
- Subject: Re: [Nbd] Specifying interface to listen on
- From: Wouter Verhelst <w@...112...>
- Date: Thu, 27 Sep 2007 13:06:07 +0200
- Message-id: <20070927110607.GC31306@...39...>
- In-reply-to: <20070927104128.GB31306@...39...>
- References: <1190887834.3295.21.camel@...137...> <20070927104128.GB31306@...39...>
On Thu, Sep 27, 2007 at 12:41:28PM +0200, Wouter Verhelst wrote:
> On Thu, Sep 27, 2007 at 12:10:34PM +0200, Tefnet Developers wrote:
> > @@ -1443,7 +1457,12 @@
> > DEBUG("Waiting for connections... bind, ");
> > addrin.sin_family = AF_INET;
> > addrin.sin_port = htons(serve->port);
> > - addrin.sin_addr.s_addr = 0;
> > +
> > + hen=gethostbyname(serve->host);
Thinking a bit further about this patch, I'm also not entirely convinced
that "host" is an appropriate name for this concept. I associate that
with things like "the remote host we're listening to", rather than "the
local IP address we're listening on". Please also consider that in an
updated patch.
--
<Lo-lan-do> Home is where you have to wash the dishes.
-- #debian-devel, Freenode, 2004-09-22
Reply to: