Re: [gnet] gnet_inetaddr_list_interfaces() inconsistency
- From: David Helder <dhelder umich edu>
- To: Tim Muller <tpm101 gmx net>
- Cc: gnet gnetlibrary org
- Subject: Re: [gnet] gnet_inetaddr_list_interfaces() inconsistency
- Date: Thu, 31 Oct 2002 16:10:46 -0500 (EST)
Tim,
I agree, it should include the loopback address. I will fix this in both
branches this weekend. I deliberately leave out the non-internet
addresses - I don't think they're useful.
David
On Thu, 31 Oct 2002, Tim Muller wrote:
> Hi,
>
> from gnet-1.1.7, inetaddr.c:
>
> * gnet_inetaddr_list_interfaces:
> *
> * Get a list of #GInetAddr interfaces's on this host. This list
> * includes all "up" Internet interfaces and the loopback interface,
> * if it exists.
>
> however, in gnet_inetaddr_list_interfaces() it reads:
>
> /* Ignore entries that aren't up or loopback. Someday we'll
> write an interface structure and include this stuff. */
> if (!(ifr->ifr_flags & IFF_UP) ||
> (ifr->ifr_flags & IFF_LOOPBACK))
> continue;
>
> ... and thus doesn't list my 127.0.0.1 loopback interface in spite of what it
> says in the documentation/description.
>
> Did I misunderstand something here?
>
> If not, I'd suggest changing one or the other. I tend to say the function
> should list loopback interfaces as well, but I'm not sure how much sense this
> makes if we have IMQ interfaces or something similar.
>
> Just thought I'd mention it.
--
__ _ __ David Helder - dhelder umich edu
___/ /__ __ __(_)__/ / <http://www.eecs.umich.edu/~dhelder>
/ _ / _ `/ |/ / / _ / Jungle Monkey: <http://www.junglemonkey.net>
|_,_/|_,_/|___/_/|_,_/ Paper CD Case: <http://www.papercdcase.com>
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]