lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] 2 different network number


From: Simon Goldschmidt
Subject: Re: [lwip-users] 2 different network number
Date: Thu, 30 Apr 2009 13:26:16 +0200

Then Kieran's answer is correct, I guess: you'd need a router to communicate in 
that situation: Even if you would disable the check on receiving, the response 
packets (ACK etc.) would be sent to lwIP's default gateway (instead of the 
windows PC's IP) since the outgoint IP (192.168.1.x in your case) wouldn't 
match any netif's network.

Simon


> Yes, Simon. that's what i mean.
> I want packet transfer across 192.168.0.x (lwip device) and 192.168.1.x
> (other PCs).
> 
> for example, from PC, i can use 'Route add' and "arp -s' commands to
> direct
> packet to my lwip device. but I think LWIP dropping the incoming packet
> from
> 192.168.1.x because they got different network number.
> 
> Regards
> 
> On Thu, Apr 30, 2009 at 12:01 PM, Simon Goldschmidt
> <address@hidden>wrote:
> 
> > I don't get it: Do you mean your lwIP device has to have 2 IP addresses,
> or
> > do you want the device to have 192.168.0.x and accept packets from
> > 192.168.1.x??
> >
> > Simon
> >
> >
> > > Hi,
> > >
> > > I need to sent & receive data between 2 different network address. One
> is
> > > 192.168.0.x and another is 192.168.1.x
> > >
> > > In etharp.c, etharp_ip_input() and etharp_ip_output(), it check
> > > 'ip_addr_netcmp'
> > > macro and drop the packet if the network number is not the same
> between 2
> > > different IP address.
> > >
> > > Would that be violate TCP/IP protocol if I commented out that checking
> to
> > > enable 192.168.0.x and 192.168.1.x to communicate across?
> > >
> > > Regards
> > >
> > > --
> > > Bandu
> > > address@hidden
> >
> > --
> > Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit
> allen:
> > http://www.gmx.net/de/go/multimessenger01
> >
> >
> > _______________________________________________
> > lwip-users mailing list
> > address@hidden
> > http://lists.nongnu.org/mailman/listinfo/lwip-users
> >
> 
> 
> 
> -- 
> Bandu
> address@hidden

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* 
http://dslspecial.gmx.de/freedsl-surfflat/?ac=OM.AD.PD003K11308T4569a




reply via email to

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