mirror of
https://github.com/Hamlib/Hamlib.git
synced 2024-09-21 18:37:18 +00:00
parent
6c6b1799f9
commit
95375a5587
@ -45,6 +45,7 @@
|
||||
|
||||
/* Rig list is in a separate file so as not to mess up w/ this one */
|
||||
#include <hamlib/riglist.h>
|
||||
#include <hamlib/config.h>
|
||||
|
||||
/**
|
||||
* \addtogroup rig
|
||||
@ -2479,6 +2480,8 @@ struct multicast_s
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
struct ip_mreq mreq; // = {0};
|
||||
struct sockaddr_in dest_addr; // = {0};
|
||||
#else
|
||||
#warning NO ARPA_INET
|
||||
#endif
|
||||
};
|
||||
|
||||
|
@ -246,6 +246,8 @@ int multicast_init(RIG *rig, char *addr, int port)
|
||||
}
|
||||
else if (rig->state.multicast->multicast_running) { return RIG_OK; } // we only need one port
|
||||
|
||||
//rig->state.multicast->mreq = {0};
|
||||
|
||||
if (addr == NULL) { addr = RIG_MULTICAST_ADDR; }
|
||||
|
||||
if (port == 0) { port = RIG_MULTICAST_PORT; }
|
||||
|
@ -24,8 +24,11 @@ struct multicast_s
|
||||
int runflag; // = 0;
|
||||
pthread_t threadid;
|
||||
#ifdef HAVE_ARPA_INET_H
|
||||
#warn HAVE_ARPA_INET
|
||||
struct ip_mreq mreq; // = {0};
|
||||
struct sockaddr_in dest_addr; // = {0};
|
||||
#else
|
||||
#warn DO NOT HAVE ARPA_INET_H
|
||||
#endif
|
||||
};
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user