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:

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.