public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
From: "Vivek-Kumar Gupta" <vgupta@marvell.com>
To: "Rick Davis" <rickdavisjr@comcast.net>,
	"Alperen Coþkun" <a_a_coskunoc@hotmail.com>,
	ecos-discuss@ecos.sourceware.org
Subject: RE: [ECOS] RE: Eth0/Eth1 Access Problem
Date: Wed, 26 Sep 2007 09:44:00 -0000	[thread overview]
Message-ID: <8920A90850EFAA4C81A6785342AB530D384000@sc-exch02.marvell.com> (raw)
In-Reply-To: <008c01c80020$029790a0$07c6b1e0$@net>

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


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

  reply	other threads:[~2007-09-26  9:44 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-25  7:22 [ECOS] " Alperen Coþkun
2007-09-26  9:29 ` [ECOS] " Rick Davis
2007-09-26  9:44   ` Vivek-Kumar Gupta [this message]
2007-09-26 17:35     ` Rick Davis
2007-09-27 12:29       ` Alperen Coskun
2007-10-08 11:38       ` [ECOS] SSL (HTTPS) support for ecos Alperen Coskun
2007-10-08 18:07         ` Tales Toledo
2007-10-09  9:22           ` Alperen Coskun
2007-10-01 13:50     ` [ECOS] Flash Write Problem Alperen Coskun

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8920A90850EFAA4C81A6785342AB530D384000@sc-exch02.marvell.com \
    --to=vgupta@marvell.com \
    --cc=a_a_coskunoc@hotmail.com \
    --cc=ecos-discuss@ecos.sourceware.org \
    --cc=rickdavisjr@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).