added XLX reflectors

pull/14/head
Tom Early 7 years ago
parent ba3f57fdb2
commit 27bd74516a

@ -49,7 +49,7 @@
#include "QnetConfigure.h"
#include "QnetGateway.h"
const std::string IRCDDB_VERSION("QnetGateway-9.0");
const std::string IRCDDB_VERSION("QnetGateway-9.1");
extern void dstar_dv_init();
extern int dstar_dv_decode(const unsigned char *d, int data[3]);
@ -633,7 +633,7 @@ int CQnetGateway::get_yrcall_rptr(const std::string &call, std::string &arearp_c
} else if (rc == 2)
return 0;
}
for (int i=0; i<2; i++) {
if (NULL == ii[i])
continue;
@ -1365,7 +1365,8 @@ void CQnetGateway::ProcessModem()
printf("MYCALL [%s] failed IRC expression validation\n", temp_radio_user);
if ( mycall_valid &&
memcmp(dsvt.hdr.urcall, "XRF", 3) && // not a reflector
memcmp(dsvt.hdr.urcall, "XLX", 3) && // not a reflector
memcmp(dsvt.hdr.urcall, "XRF", 3) &&
memcmp(dsvt.hdr.urcall, "REF", 3) &&
memcmp(dsvt.hdr.urcall, "DCS", 3) &&
dsvt.hdr.urcall[0]!=' ' && // must have something
@ -1465,7 +1466,7 @@ void CQnetGateway::ProcessModem()
to_remote_g2[i].streamid = dsvt.streamid;
if (ip.npos == ip.find(':') && af_family[Index[i]] == AF_INET6)
fprintf(stderr, "ERROR: IP returned from cache is IPV4 but family is AF_INET6!\n");
to_remote_g2[i].toDstar.Initialize(af_family[Index[i]], (uint16_t)((af_family[Index[i]]==AF_INET6) ? g2_ipv6_external.port : g2_external.port), ip.c_str());
to_remote_g2[i].toDstar.Initialize(af_family[Index[i]], (uint16_t)((af_family[Index[i]]==AF_INET6) ? g2_ipv6_external.port : g2_external.port), ip.c_str());
/* set rpt1 */
memset(dsvt.hdr.rpt1, ' ', 8);

@ -471,9 +471,10 @@ GatewayMenu () {
/usr/bin/wget http://www.pistar.uk/downloads/DCS_Hosts.txt
/bin/rm -f gwys.txt
echo "# Downloaded from www.pistar.uk `date`" > gwys.txt
awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt
awk '$1 ~ /^XLX/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt
awk '$1 ~ /^XRF/ { printf "%s %s 30001\n", $1, $2 }' DExtra_Hosts.txt >> gwys.txt
awk '$1 ~ /^DCS/ { printf "%s %s 30051\n", $1, $2 }' DCS_Hosts.txt >> gwys.txt
awk '$1 ~ /^REF/ { printf "%s %s 20001\n", $1, $2 }' DPlus_Hosts.txt >> gwys.txt
/bin/rm -f D{Extra,Plus,CS}_Hosts.txt
elif [[ "$ans" == iv* ]]; then
/bin/rm -f gwys.txt

Loading…
Cancel
Save

Powered by TurnKey Linux.