lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] RE: [lwip] ip_route and ip_addr_isbroadcast


From: Ivarsson Magnus
Subject: [lwip-users] RE: [lwip] ip_route and ip_addr_isbroadcast
Date: Wed, 08 Jan 2003 23:19:43 -0000

> > Second question:
> >  In ip_route (see below) we are searching for a subnet 
> >  which is matching our destination IP adress. To support 
> >  the PPP specific behaivor without subnets I would like 
> >  to compare with &(netif->gw) instead. 
> >  Is it safe to assume that gw always is set to something 
> >  useful (like an adress within the subnet)?
> 
> No. In simple Network installations with only one subnet
> the gw is not set at all, or set to 0.0.0.0

Ok, but what if netif_add always sets gw == ip_addr when it 
is called with gw=0.0.0.0? Would this be restricting in any 
way?

Or have I overlooked any simpler solotion to the problem?

/Magnus
[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]