Binding to an IP but using anonymous ports

2007-07-27 Thread Shachar Shemesh
Hi all,

Is it possible to conduct initiated TCP communication while binding to a
certain IP address, but still use the anonymous port range?

At the moment, I know of two modes of work:
1. Bind to a specific port, whether on a specific IP the machine has or
all IPs (IPADDR_ANY)
2. Do not bind - let the machine automatically pick a random port for
you. The IP is determined by picking the interface closest to the
gateway determined by the routing table to be the one you will need to
use to connect.

What I'm looking for is to allocate an IP specifically for a certain
application's use. I want all communications generated by that
application to carry that IP, but other applications should use the
default IP the machine has. Is it possible?

I know I can do a strange combination of letting the machine pick a
port, and then binding the socket to that same port on the other IP. I'm
looking for something less  hackish.

Shachar

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: good docs about writing apache 2.2 modules?

2007-07-27 Thread Amos Shapira
On 27/07/07, ik [EMAIL PROTECTED] wrote:

 Hi,

 While the following link is not what you would expect, it might give
 you a way to start...
 http://wiki.lazarus.freepascal.org/FPC_and_Apache_Modules


Thanks - but the book it mentions is circa 1999, Apache 2 alpha was release
at 2000 with final release at 2002. I don't suppose this book covers that,
does it?

Another place that maybe will help you (I say maybe because some of
 the pages are 404, and some are old) is:
 http://modules.apache.org/reference


That's  what I expect to be the authoritative source but as I mentioned in
my original question it isn't up to date. The Apache API Notes page was
last touched on October 2003 (from the HTTP headers). Do you have any idea
which version it tries to cover and whether this information is relevant for
2.2?

If you will follow the first link, you will find some more links,
 including a recommendation to use the apache malling lists.


Thanks for the highlight. I didn't notice the recommendation for the mailing
lists. I might try there.

Cheers,

--Amos


Help with Linux on sparc64

2007-07-27 Thread Nadav Shemer
Hi. I have a Sun Ultra 45 and I've tried (unsuccessfully) to install
some kind of Linux distribution on it.
I've tried Debian netinst (both stable and testing) and Gentoo (stage2)
CDs, but after boot the keyboard stops working (It only has USB
keyboardmouse).
Booting from the serial console, It hangs with the following message:
su: Cannot register IRQ 1

Has anyone had any luck with this particular machine?
What binary distribution has the best support for Sun machines?
Can anyone help me?

Nadav Shemer
Tehuti Networks
[EMAIL PROTECTED]




=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Binding to an IP but using anonymous ports

2007-07-27 Thread Amos Shapira
On 27/07/07, Shachar Shemesh [EMAIL PROTECTED] wrote:

 Hi all,

 Is it possible to conduct initiated TCP communication while binding to a
 certain IP address, but still use the anonymous port range?


In the sockaddr_in struct you pass to bind(2), specify the IP address you
want and leave the port number as 0,
from both looking at the kernel source and running a little experiment it
seems to work.

--Amos


Re: How do I change e-mail address?

2007-07-27 Thread Uri Even-Chen
Dear Guy  Hetz,

Thanks for all your suggestions!

Uri.

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Binding to an IP but using anonymous ports

2007-07-27 Thread guy keren

Shachar Shemesh wrote:

Hi all,

Is it possible to conduct initiated TCP communication while binding to a
certain IP address, but still use the anonymous port range?

At the moment, I know of two modes of work:
1. Bind to a specific port, whether on a specific IP the machine has or
all IPs (IPADDR_ANY)
2. Do not bind - let the machine automatically pick a random port for
you. The IP is determined by picking the interface closest to the
gateway determined by the routing table to be the one you will need to
use to connect.

What I'm looking for is to allocate an IP specifically for a certain
application's use. I want all communications generated by that
application to carry that IP, but other applications should use the
default IP the machine has. Is it possible?

I know I can do a strange combination of letting the machine pick a
port, and then binding the socket to that same port on the other IP. I'm
looking for something less  hackish.


here is something interesting: man 7 socket
   and look for 'SO_BINDTODEVICE'

it doesn't say which IP address will be used when _sending_ the data 
outside - but i guess a simple test could tell you what's going on.


try out combination of using this before or after a call to 'listen' (if 
this is a server), and before or after calling 'connect' (if this is a 
client - as you implied above).


--guy


=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Help with Linux on sparc64

2007-07-27 Thread Nadav Shemer

Hi. I have a Sun Ultra 45 and I've tried (unsuccessfully) to install
some kind of Linux distribution on it.
I've tried Debian netinst (both stable and testing) and Gentoo (stage2)
CDs, but after boot the keyboard stops working (It only has USB
keyboardmouse).
Booting from the serial console, It hangs with the following message:
su: Cannot register IRQ 1

Has anyone had any luck with this particular machine?
What binary distribution has the best support for Sun machines?
Can anyone help me?

Nadav Shemer
Tehuti Networks
[EMAIL PROTECTED]


Re: Help with Linux on sparc64

2007-07-27 Thread Geoffrey S. Mendelson
On Thu, Jul 26, 2007 at 07:19:53PM +0300, Nadav Shemer wrote:
 Hi. I have a Sun Ultra 45 and I've tried (unsuccessfully) to install
 some kind of Linux distribution on it.
 I've tried Debian netinst (both stable and testing) and Gentoo (stage2)
 CDs, but after boot the keyboard stops working (It only has USB
 keyboardmouse).
 Booting from the serial console, It hangs with the following message:
 su: Cannot register IRQ 1
 
 Has anyone had any luck with this particular machine?
 What binary distribution has the best support for Sun machines?
 Can anyone help me?


What happens when you boot with Solaris? Before you attempt to get
Linux to run on it, it would be a good idea to make sure there
is not a hardware problem.

Geoff.
-- 
Geoffrey S. Mendelson, Jerusalem, Israel [EMAIL PROTECTED]  N3OWJ/4X1GM
IL Voice: (07)-7424-1667 U.S. Voice: 1-215-821-1838 
Visit my 'blog at http://geoffstechno.livejournal.com/

=
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word unsubscribe in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]



Re: Help with Linux on sparc64

2007-07-27 Thread Nadav Shemer
Thank you for your comments. I'll definitely try stage 3.

On 7/27/07, Geoffrey S. Mendelson [EMAIL PROTECTED] wrote:

 Before you attempt to get
 Linux to run on it, it would be a good idea to make sure there
 is not a hardware problem.


I started the process with a machine running Solaris. I cleared out a slice,
intending on installing linux on it.

Nadav