From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18481 invoked by alias); 26 Sep 2007 09:29:59 -0000 Received: (qmail 18473 invoked by uid 22791); 26 Sep 2007 09:29:58 -0000 X-Spam-Check-By: sourceware.org Received: from rwcrmhc11.comcast.net (HELO rwcrmhc11.comcast.net) (216.148.227.151) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 26 Sep 2007 09:29:57 +0000 Received: from rickmce (c-68-55-175-129.hsd1.md.comcast.net[68.55.175.129]) by comcast.net (rwcrmhc11) with SMTP id <20070926092955m1100573ome>; Wed, 26 Sep 2007 09:29:55 +0000 From: "Rick Davis" To: =?iso-8859-1?Q?'Alperen_Co=FEkun'?= , References: In-Reply-To: Date: Wed, 26 Sep 2007 09:29:00 -0000 Message-ID: <008c01c80020$029790a0$07c6b1e0$@net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Content-Language: en-us Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] RE: Eth0/Eth1 Access Problem X-SW-Source: 2007-09/txt/msg00133.txt.bz2 You will have to modify httpd.c in packages/net/httpd Right now it binds to ANY interface. server_address.sin_family =3D AF_INET; server_address.sin_len =3D sizeof(server_address); * server_address.sin_addr.s_addr =3D INADDR_ANY; server_address.sin_port =3D htons(http_port); To bind to a specific interface you need to do this server_address.sin_family =3D AF_INET; server_address.sin_len =3D sizeof(server_address); server_address.sin_addr.s_addr =3D htonl (0x0a0a0a0a); or server_address.sin_addr.s_addr =3D htonl (inet_addr ("10.10.10.10")); server_address.sin_port =3D htons(http_port); Hope this helps, Rick Davis -----Original Message----- From: Alperen Co=FEkun [mailto:a_a_coskunoc@hotmail.com]=20 Sent: Tuesday, September 25, 2007 3:23 AM To: ecos-discuss@ecos.sourceware.org Subject: Eth0/Eth1 Access Problem Hi all, I have a board using 2 ethernet ports, Eth0 and Eth1. I want to use one of= =20 them for web user interface and other one for another purpose. But, I couldn't make this difference. Unfortunately, both of the ports are= =20 accessed by user interface. How can I avoid Eth1 being accessed by web user interface? What decides=20 which port to be accessed by user interface? Alperen _________________________________________________________________ Sohbet ve eglence, web kamera ve sesli sohbet Messenger'de.=20 http://messenger.msn.com/?mkt=3Dtr&DI=3D3490&XAPID=3D2584 -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss