Open MPI logo

Open MPI Development Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all Development mailing list

Subject: [OMPI devel] oob/btl tcp port range - missing htons?
From: Mariusz Mamoński (mamonski_at_[hidden])
Date: 2009-07-06 10:31:33


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