Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: Re: [OMPI devel] oob/btl tcp port range - missing htons?
From: George Bosilca (bosilca_at_[hidden])
Date: 2009-07-07 13:21:56


Mariusz,

You're absolutely right. I pushed your patch into the trunk (revision
21610). I'll make sure it get included in the next release.

   Thanks,
     george.

On Jul 6, 2009, at 10:31 , Mariusz Mamoński wrote:

> Hi,
>
> Recently i was testing OMPI in the multi-cluster, heterogeneous
> environment. Because of the firewall presence between the two test
> machines i wanted to restrict port used by the OMPI daemons by setting
> following mca parameters:
>
> oob_tcp_port_min_v4 = 5000
> oob_tcp_port_range_v4 = 100
> btl_tcp_port_min_v4 = 5000
> btl_tcp_port_range_v4 = 100
>
> Unfortunately it didn't work. After looking into source code of the
> oob and btl tcp components i noticed that the sin_port member was
> initialized without the conversion from host to network byte order.
> After adding of the htons call (sample patch attached), the
> cross-cluster run start working.
>
> Regards,
> --
> Mariusz
> <htons.patch>_______________________________________________
> devel mailing list
> devel_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/devel