Skip to content

Commit

Permalink
Fix suggested default address. Fix broken address/port lookup
Browse files Browse the repository at this point in the history
  • Loading branch information
ruck314 committed Feb 14, 2024
1 parent 8073050 commit 010cf61
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions axi/simlink/src/RogueSideBand.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ void RogueSideBandRestart(RogueSideBandData *data, portDataT *portData) {

vhpi_printf("RogueSideBand: Listening on ports %i & %i\n",data->port, data->port+1);

sprintf(buffer,"tcp://*:%i",data->port+1);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port+1);
if ( zmq_bind(data->zmqPull,buffer) ) {
vhpi_assert("RogueSideBand: Failed to bind sideband port",vhpiFatal);
return;
}

sprintf(buffer,"tcp://*:%i",data->port);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port);
if ( zmq_bind(data->zmqPush,buffer) ) {
vhpi_assert("RogueSideBand: Failed to bind push port",vhpiFatal);
return;
Expand Down
4 changes: 2 additions & 2 deletions axi/simlink/src/RogueTcpMemory.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ void RogueTcpMemoryRestart(RogueTcpMemoryData *data, portDataT *portData) {

vhpi_printf("RogueTcpMemory: Listening on ports %i & %i\n",data->port,data->port+1);

sprintf(buffer,"tcp://*:%i",data->port);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port);
if ( zmq_bind(data->zmqPull,buffer) ) {
vhpi_assert("RogueTcpMemory: Failed to bind pull port",vhpiFatal);
return;
}

sprintf(buffer,"tcp://*:%i",data->port+1);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port+1);
if ( zmq_bind(data->zmqPush,buffer) ) {
vhpi_assert("RogueTcpMemory: Failed to bind push port",vhpiFatal);
return;
Expand Down
4 changes: 2 additions & 2 deletions axi/simlink/src/RogueTcpStream.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,13 @@ void RogueTcpStreamRestart(RogueTcpStreamData *data, portDataT *portData) {

vhpi_printf("RogueTcpStream: Listening on ports %i & %i\n",data->port,data->port+1);

sprintf(buffer,"tcp://*:%i",data->port);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port);
if ( zmq_bind(data->zmqPull,buffer) ) {
vhpi_assert("RogueTcpStream: Failed to bind pull port",vhpiFatal);
return;
}

sprintf(buffer,"tcp://*:%i",data->port+1);
sprintf(buffer,"tcp://127.0.0.1:%i",data->port+1);
if ( zmq_bind(data->zmqPush,buffer) ) {
vhpi_assert("RogueTcpStream: Failed to bind push port",vhpiFatal);
return;
Expand Down

0 comments on commit 010cf61

Please sign in to comment.