Mike Black W9MDB 2023-05-07 09:45:27 -05:00
rodzic 6c6b1799f9
commit 95375a5587
3 zmienionych plików z 8 dodań i 0 usunięć

Wyświetl plik

@ -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
};

Wyświetl plik

@ -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; }

Wyświetl plik

@ -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