[openib-general] RE: Re: [PATCH] CMA: allow/require bind beforeconnect

Sean Hefty sean.hefty at intel.com
Wed Mar 29 11:40:31 PST 2006


>Sorry. I attach a code snippet as an example.
>Assume I bind to IP 127.0.0.1 and port number 1289.
>
>Connection source port then gets put in hello message local port field.

If you bind to 127.0.0.1, can you ever connect off of the local system?

My assumption is that if you bind to 127.0.0.1, then any connection must be to a
local address.

>When you actually connect and resolve the route we need to put the
>IP address of the IB device in there, since that the only way the passive side
>will know what our IP address is.
>
>> And you're reserving ... the specified port number?
>
>Yes, in the sense that another bind to this same port on
>same IP address will fail.

This is the important piece that's missing, and should be integrated with port
assignment.

- Sean



More information about the general mailing list