This is the mail archive of the ecos-discuss@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: should i unload CYGPKG_NET_FREEBSD_SYSCTL?


On Thu, Mar 02, 2006 at 05:20:29PM +0100, Birahim Larou Fall wrote:
> I have two interfaces running (eth0 and eth1) and pakets can be fowarded 
> between interfaces. when an IP packet arrives, it is losed when calling 
> function ipflow_fastforward (this function return 0, when i make a break 
> point i see that ipflow_active is zero)
> eCos_sources_current\packages\net\bsd_tcpip\current\src\sys\netinet\ip_flow.c) 

I don't know IP forwarding too well in FreeBSD. 

>From quickly reading the code it looks like ip_input.c:ip_forward()
should work correctly without ipflow_active. 

The flow stuff just makes IP forwarding more efficient. Once it has
forwarded one packet using ip_forward() it creates a flow using the
source and destination address and TOS.
net/if_ethersub.c:ether_demux() then uses the flow to shortcut the IP
layer and just directs the packet out the destination interface. If a
flow does not exist the packet follows the normal IP processing and
will end up in ip_forward().

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]