From bb67c9db2fbdff67aff81d0b41c61b6d6ee9f5ed Mon Sep 17 00:00:00 2001 From: Michael Davidsaver Date: Mon, 11 Jan 2016 20:59:07 -0500 Subject: [PATCH] rsrv: UDP listener on more than one iface --- src/ioc/rsrv/online_notify.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ioc/rsrv/online_notify.c b/src/ioc/rsrv/online_notify.c index ea60d9b1d..10a8d9492 100644 --- a/src/ioc/rsrv/online_notify.c +++ b/src/ioc/rsrv/online_notify.c @@ -71,6 +71,7 @@ void rsrv_online_notify_task(void *pParm) char * pStr; int autoBeaconAddr; ELLLIST autoAddrList; + ELLNODE *cur; char buf[16]; unsigned priorityOfUDP; epicsThreadBooleanStatus tbs; @@ -222,13 +223,14 @@ void rsrv_online_notify_task(void *pParm) casudp_startStopEvent = epicsEventMustCreate(epicsEventEmpty); casudp_ctl = ctlPause; + for (cur=ellFirst(&casIntfAddrList); cur; cur=ellNext(cur)) { /* casudp_startStopEvent ensures that this struct * lives until the cast_server thread(s) are done with it. */ cast_config config; - config.pAddr = ((osiSockAddrNode *) ellFirst ( &casIntfAddrList ))->addr; + config.pAddr = ((osiSockAddrNode *)cur)->addr; config.reply_sock = INVALID_SOCKET; epicsThreadMustCreate ( "CAS-UDP", priorityOfUDP,