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?


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) 

int
ipflow_fastforward(
        struct mbuf *m)
{
        struct ip *ip;
        struct ipflow *ipf;
        struct rtentry *rt;
        struct sockaddr *dst;
        int error;

        /*
         * Are we forwarding packets?  Big enough for an IP packet?
         */
        if (!ipforwarding || !ipflow_active || m->m_len < sizeof(struct 
ip))
                return 0;
        /*



Andrew Lunn <andrew@lunn.ch> 
02/03/2006 16:54

To
Birahim Larou Fall <BLFall@scmmicro.fr>
cc
Disuss <ecos-discuss@ecos.sourceware.org>
Subject
Re: [ECOS] should i unload CYGPKG_NET_FREEBSD_SYSCTL?






On Thu, Mar 02, 2006 at 03:40:12PM +0100, Birahim Larou Fall wrote:
> is it a good idea to unload CYGPKG_NET_FREEBSD_SYSCTL when using 
freebsd.

It is disabled by default. 

> I have ported an ethernet driver in ecos. During my test, i see that my 
IP 
> packets are discared because ipflow_active is zero ( 
> 
C:\DEV\CASPER\eCos_sources_current\packages\net\bsd_tcpip\current\src\sys\netinet\ip_floc.c) 

>  if someone can explain me please!

Is your device multi homed and forwarding packets between interfaces?

Where exactly if the packet discarded? 

        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]