From 27bd74516ad2387825c690599d1da2f667523e85 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 28 Jun 2019 09:17:12 -0700 Subject: [PATCH] added XLX reflectors --- QnetGateway.cpp | 9 +++++---- qnadmin | 3 ++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 5ba614e..341d9e8 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -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); diff --git a/qnadmin b/qnadmin index dffd7ba..daeed91 100755 --- a/qnadmin +++ b/qnadmin @@ -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