Commit 0094f7e4 authored by unknown's avatar unknown

config parameter changed

parent 9088cbea
...@@ -125,10 +125,8 @@ ...@@ -125,10 +125,8 @@
#define CFG_SCI_HOST1_ID_1 551 #define CFG_SCI_HOST1_ID_1 551
#define CFG_SCI_HOST2_ID_0 552 #define CFG_SCI_HOST2_ID_0 552
#define CFG_SCI_HOST2_ID_1 553 #define CFG_SCI_HOST2_ID_1 553
#define CFG_SCI_HOSTNAME_1 554 #define CFG_SCI_SEND_LIMIT 554
#define CFG_SCI_HOSTNAME_2 555 #define CFG_SCI_BUFFER_MEM 555
#define CFG_SCI_SEND_LIMIT 556
#define CFG_SCI_BUFFER_MEM 557
#define CFG_OSE_PRIO_A_SIZE 602 #define CFG_OSE_PRIO_A_SIZE 602
#define CFG_OSE_PRIO_B_SIZE 603 #define CFG_OSE_PRIO_B_SIZE 603
......
...@@ -398,18 +398,14 @@ IPCConfig::configureTransporters(Uint32 nodeId, ...@@ -398,18 +398,14 @@ IPCConfig::configureTransporters(Uint32 nodeId,
} }
case CONNECTION_TYPE_SCI:{ case CONNECTION_TYPE_SCI:{
SCI_TransporterConfiguration conf; SCI_TransporterConfiguration conf;
const char * host1, * host2;
conf.localNodeId = nodeId; conf.localNodeId = nodeId;
conf.remoteNodeId = remoteNodeId; conf.remoteNodeId = remoteNodeId;
conf.checksum = checksum; conf.checksum = checksum;
conf.signalId = sendSignalId; conf.signalId = sendSignalId;
conf.port= server_port; conf.port= server_port;
if(iter.get(CFG_SCI_HOSTNAME_1, &host1)) break; conf.localHostName = localHostName;
if(iter.get(CFG_SCI_HOSTNAME_2, &host2)) break; conf.remoteHostName = remoteHostName;
conf.localHostName = (nodeId == nodeId1 ? host1 : host2);
conf.remoteHostName = (nodeId == nodeId1 ? host2 : host1);
if(iter.get(CFG_SCI_SEND_LIMIT, &conf.sendLimit)) break; if(iter.get(CFG_SCI_SEND_LIMIT, &conf.sendLimit)) break;
if(iter.get(CFG_SCI_BUFFER_MEM, &conf.bufferSize)) break; if(iter.get(CFG_SCI_BUFFER_MEM, &conf.bufferSize)) break;
......
...@@ -1831,7 +1831,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -1831,7 +1831,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
STR_VALUE(MAX_INT_RNIL) }, STR_VALUE(MAX_INT_RNIL) },
{ {
CFG_SCI_HOSTNAME_1, CFG_CONNECTION_HOSTNAME_1,
"HostName1", "HostName1",
"SCI", "SCI",
"Name/IP of computer on one side of the connection", "Name/IP of computer on one side of the connection",
...@@ -1842,7 +1842,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = { ...@@ -1842,7 +1842,7 @@ const ConfigInfo::ParamInfo ConfigInfo::m_ParamInfo[] = {
0, 0 }, 0, 0 },
{ {
CFG_SCI_HOSTNAME_2, CFG_CONNECTION_HOSTNAME_2,
"HostName2", "HostName2",
"SCI", "SCI",
"Name/IP of computer on one side of the connection", "Name/IP of computer on one side of the connection",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment