[En-Nut-Discussion] Re: What´s up with confnet?
Thiago A. Corrêa
thiago.correa at gmail.com
Mon Oct 17 20:39:47 CEST 2005
Ok, figured that the inet_ntoa() uses a shared buffer that if called
twice in the same argument list would make it overwrite the first
result.
Still, it seams like NutNetIfConfig never initializes confnet, is this
really indented? If I want to know which address I´m using the
recommended way would be thru the interface structure like the basemon
example?
On 10/14/05, Thiago A. Corrêa <thiago.correa at gmail.com> wrote:
> Hi,
>
> I can´t figure out the global variable confnet. It´s not
> initialized right after I do a call to NutNetIfConfig. Should I really
> initialize it myself? Even when I do initialize myself, another thread
> who needs the current IP address ( a CGI to change network settings )
> get it as 255.255.255 from: fprintf_P(stream, html_body,
> inet_ntoa( confnet.cdn_cip_addr ), inet_ntoa( confnet.cdn_ip_mask ) );
>
>
> Am I missing something? Or could this be an issue with fprintf?
> Size limits perhaps?
>
> Regards,
> Thiago A. Corrêa
>
>
More information about the En-Nut-Discussion
mailing list