-
Notifications
You must be signed in to change notification settings - Fork 368
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prov/tcp: Add support for active TCP port range
There is a need (e.g. firewall rule) to limit TCP ports used for active connections. The use case is DOAS clients started by MPI accessing DAOS servers behind firewall. Since MPI and DAOS may not want to share the same port restriction, add active port range support under domain object using fi_set_val. Define FI_TCP_DOMAIN_ACTIVE_PORT_RANGE to take a string argument of "<low port number>-<high port number>". Here is a sample call to use port range 5000 to 6000, inclusively: fi_set_val(&domain->fid, FI_TCP_DOMAIN_ACTIVE_PORT_RANGE, "5000-6000"); To disable the range, set it to "0-0" fi_set_val(&domain->fid, FI_TCP_DOMAIN_ACTIVE_PORT_RANGE, "0-0"); If the source address for an active connection contains a port number, it will be used over a defined port range. Signed-off-by: Chien Tin Tung <chien.tin.tung@intel.com>
- Loading branch information
1 parent
a34268e
commit 8d5834e
Showing
6 changed files
with
110 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters