diff --git a/sim_ether.c b/sim_ether.c index 5231793b..64182cf5 100644 --- a/sim_ether.c +++ b/sim_ether.c @@ -3840,7 +3840,7 @@ else /* test reflections. This is done early in this routine since eth_reflect */ /* calls eth_filter recursively and thus changes the state of the device. */ if (dev->reflections == -1) - eth_reflect(dev); + status = eth_reflect(dev); /* set new filter addresses */ for (i = 0; i < addr_count; i++) diff --git a/sim_ether.h b/sim_ether.h index ecada302..598f8b89 100644 --- a/sim_ether.h +++ b/sim_ether.h @@ -381,6 +381,11 @@ t_stat ethq_destroy(ETH_QUE* que); /* release FIFO queue */ const char *eth_capabilities(void); t_stat sim_ether_test (DEVICE *dptr); /* unit test routine */ +#if !defined(SIM_TEST_INIT) /* Need stubs for test APIs */ +#define SIM_TEST_INIT +#define SIM_TEST(xxx) +#endif + #ifdef __cplusplus } #endif