From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8973 invoked by alias); 27 Sep 2007 12:29:10 -0000 Received: (qmail 8922 invoked by uid 22791); 27 Sep 2007 12:29:08 -0000 X-Spam-Check-By: sourceware.org Received: from bay0-omc3-s25.bay0.hotmail.com (HELO bay0-omc3-s25.bay0.hotmail.com) (65.54.246.225) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 27 Sep 2007 12:29:04 +0000 Received: from hotmail.com ([207.46.10.109]) by bay0-omc3-s25.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 27 Sep 2007 05:29:03 -0700 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Thu, 27 Sep 2007 05:29:03 -0700 Message-ID: Received: from 207.46.10.123 by by121fd.bay121.hotmail.msn.com with HTTP; Thu, 27 Sep 2007 12:28:58 GMT X-Sender: a_a_coskunoc@hotmail.com In-Reply-To: <009601c80063$dcba0540$962e0fc0$@net> From: "Alperen Coskun" To: rickdavisjr@comcast.net, vgupta@marvell.com, ecos-discuss@ecos.sourceware.org Bcc: Date: Thu, 27 Sep 2007 12:29:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; format=flowed 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: RE: [ECOS] RE: Eth0/Eth1 Access Problem X-SW-Source: 2007-09/txt/msg00143.txt.bz2 Hi, I tried what you described below as; server_address.sin_family = AF_INET; server_address.sin_len = sizeof(server_address); server_address.sin_addr.s_addr = htonl (inet_addr ("X.X.X.X")); server_address.sin_port = htons(http_port); where X is a valid IP address in the network. But, nothing changed. Let me explain what I want to do. May be you can help again: I'm giving a default IP to both ETH interfaces in ecos configuration tool. Then, ecos sets these IP addresses for web interface.(I think it does it with; server_address.sin_addr.s_addr = INADDR_ANY) I want to change these default values to other specific values manually. (As Mr. Rick explained, I want to change IP address within the program) Thank you very much for your response, explanations are very helpful. Alperen >From: "Rick Davis" >To: "'Vivek-Kumar Gupta'" ,'Alperen Coþkun' >, >Subject: RE: [ECOS] RE: Eth0/Eth1 Access Problem >Date: Wed, 26 Sep 2007 13:37:07 -0400 > >The IP address you assign to > >server_address.sin_addr.s_addr > >is the IP address of the interface eth0 or eth1. You will have to set this >yourself. It you are changing the IP address on the fly, you will have to >create a variable, say httpd_bind_address, and set this to the address of >either eth0 or eth1. Then restart or manually start httpd. Make sure the >address you use is in network (big endian) order. > >Rick > > > >-----Original Message----- >From: Vivek-Kumar Gupta [mailto:vgupta@marvell.com] >Sent: Wednesday, September 26, 2007 5:44 AM >To: Rick Davis; Alperen Coþkun; ecos-discuss@ecos.sourceware.org >Subject: RE: [ECOS] RE: Eth0/Eth1 Access Problem > >Interface eth0 or eth1 will have a separate IP address. >Server will be bind to IP Address and Port no. >This way they are separate. >So give some IP Address for binding it to Server. > >Regards, >Vivek:- > -----Original Message----- >From: ecos-discuss-owner@ecos.sourceware.org >[mailto:ecos-discuss-owner@ecos.sourceware.org] On Behalf Of Rick Davis >Sent: Wednesday, September 26, 2007 3:01 PM >To: 'Alperen Coþkun'; ecos-discuss@ecos.sourceware.org >Subject: [ECOS] RE: Eth0/Eth1 Access Problem > >You will have to modify httpd.c in packages/net/httpd > >Right now it binds to ANY interface. > > server_address.sin_family = AF_INET; > server_address.sin_len = sizeof(server_address); >* server_address.sin_addr.s_addr = INADDR_ANY; > server_address.sin_port = htons(http_port); > > >To bind to a specific interface you need to do this > > server_address.sin_family = AF_INET; > server_address.sin_len = sizeof(server_address); > server_address.sin_addr.s_addr = htonl (0x0a0a0a0a); >or > server_address.sin_addr.s_addr = htonl (inet_addr ("10.10.10.10")); > server_address.sin_port = htons(http_port); > > >Hope this helps, >Rick Davis > > >-----Original Message----- >From: Alperen Coþkun [mailto:a_a_coskunoc@hotmail.com] >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 >them for web user interface and other one for another purpose. >But, I couldn't make this difference. Unfortunately, both of the ports are >accessed by user interface. >How can I avoid Eth1 being accessed by web user interface? What decides >which port to be accessed by user interface? > >Alperen > >_________________________________________________________________ >Sohbet ve eglence, web kamera ve sesli sohbet Messenger'de. >http://messenger.msn.com/?mkt=tr&DI=3490&XAPID=2584 > > > >-- >Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos >and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss > _________________________________________________________________ En etkili ve güvenilir PC Korumayi tercih edin, rahat edin! http://www.msn.com.tr/security/ -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss