From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21298 invoked by alias); 24 May 2005 18:26:30 -0000 Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Received: (qmail 21226 invoked by uid 22791); 24 May 2005 18:26:24 -0000 Received: from smtp2.iitb.ac.in (HELO smtp1.iitb.ac.in) (203.199.51.149) by sourceware.org (qpsmtpd/0.30-dev) with SMTP; Tue, 24 May 2005 18:26:24 +0000 Received: (qmail 24612 invoked from network); 24 May 2005 23:43:43 +0530 Received: from unknown (HELO ldns2.iitb.ac.in) (10.200.12.2) by smtp1.iitb.ac.in with SMTP; 24 May 2005 23:43:43 +0530 Received: (qmail 27088 invoked by uid 780); 24 May 2005 18:13:43 -0000 Received: from 10.129.1.2 by ldns2 (envelope-from , uid 502) with qmail-scanner-1.23 (spamassassin: 2.64. Clear:RC:1(10.129.1.2):. Processed in 0.020167 secs); 24 May 2005 18:13:43 -0000 Received: from unknown (HELO www.it.iitb.ac.in) (10.129.1.2) by ldns2.iitb.ac.in with SMTP; 24 May 2005 18:13:43 -0000 Received: from 10.129.11.162 (SquirrelMail authenticated user rpai) by www.it.iitb.ac.in with HTTP; Tue, 24 May 2005 23:43:43 +0530 (IST) Message-ID: <33253.10.129.11.162.1116958423.squirrel@www.it.iitb.ac.in> Date: Wed, 25 May 2005 07:53:00 -0000 From: rpai@it.iitb.ac.in To: ecos-discuss@sources.redhat.com User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit Subject: [ECOS] lwip eth doubt........ X-SW-Source: 2005-05/txt/msg00324.txt.bz2 hello... we are in way of creating a firewall application... we are doing with lwip stack.. .as there is no routing support we are way to make it.. we are unable to find , how the 2 eths are to be initalized as done in bsd .. can u tell me is there any flag to b removed to get 2 eths initalized .. this came into mind when we were looking this function in init.c file in net/lwip/src directory... the code is as........ ************************* static void init_hw_drivers(void) { cyg_netdevtab_entry_t *t; for (t = &__NETDEVTAB__[0]; t != &__NETDEVTAB_END__; t++) { diag_printf("H/W device name:%s\n",t->name); if (t->init(t)) { t->status = CYG_NETDEVTAB_STATUS_AVAIL; } else { // What to do if device init fails? t->status = 0; // Device not [currently] available } } } *************8 this loop is executing only once..... can u tlell me the logic behind and wht to do to get it move 2 times to detect eth1 also... if this is also over the routing part my project will b over.... some doucmentation also will b usefule to us plze....... do help.. Regards Pai -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss