[En-Nut-Discussion] Gateway Problems

Thiago A. Corrêa thiago.correa at gmail.com
Mon Apr 10 17:17:07 CEST 2006


Looking at the sources of NutIpRouteAdd, it doesn't update the confnet
struct at all. I would consider this to be a bug, but don't know what
the devs think of the issue.
NutNetIfSetup does update confnet.

On 4/5/06, SK2209 <steve at planetcontrols.com.au> wrote:
>
> Hey All
>
> I am having a problem adding a gateway address when not using DHCP.
>
> I use NutIpRouteAdd( 0, 0, gateway, &DEV_ETHER)
> It returns 0 indicating it has worked but when i check the gateway address
> using
> printf("\n IP Gateway: %s", inet_ntoa(confnet.cdn_gateway));
> it prints only 0.0.0.0.
> If i use DHCP the gateway address prints as expected.
>
> Does anyone know why this might not be working for me?
>
> Regards
>
> Steve
> --
> View this message in context: http://www.nabble.com/Gateway-Problems-t1397492.html#a3758444
> Sent from the MicroControllers - Ethernut forum at Nabble.com.
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
>



More information about the En-Nut-Discussion mailing list