Route out of zone/region netmail to the ZC if we are the RC.

This commit is contained in:
Andrew Leary 2017-03-20 02:59:42 -04:00
parent b57c169ee5
commit 691744836f
4 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
v1.0.6.16 20-Mar-2017 - Andrew Leary
1. Default routing for hosts will now route out of zone and
region netmail to the ZC if we are the RC.
v1.0.6.15 06-Mar-2017 - Andrew Leary v1.0.6.15 06-Mar-2017 - Andrew Leary
1. Fixed the ability to designate a file echo area as a 1. Fixed the ability to designate a file echo area as a

2
configure vendored
View File

@ -2309,7 +2309,7 @@ SUBDIRS="lib mbcico mbfido mbmon mbsebbs mbutils mbnntp mbtask mbsetup unix lang
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="1" MAJOR="1"
MINOR="0" MINOR="0"
REVISION="6.15" REVISION="6.16"
VERSION="$MAJOR.$MINOR.$REVISION" VERSION="$MAJOR.$MINOR.$REVISION"
COPYRIGHT="Copyright (C) 1997-2017 MBSE Development Team, All Rights Reserved" COPYRIGHT="Copyright (C) 1997-2017 MBSE Development Team, All Rights Reserved"
SHORTRIGHT="Copyright (C) 1997-2017 MBSE DevTm" SHORTRIGHT="Copyright (C) 1997-2017 MBSE DevTm"

View File

@ -12,7 +12,7 @@ AC_SUBST(SUBDIRS)
PACKAGE="mbsebbs" PACKAGE="mbsebbs"
MAJOR="1" MAJOR="1"
MINOR="0" MINOR="0"
REVISION="6.15" REVISION="6.16"
VERSION="$MAJOR.$MINOR.$REVISION" VERSION="$MAJOR.$MINOR.$REVISION"
COPYRIGHT="Copyright (C) 1997-2017 MBSE Development Team, All Rights Reserved" COPYRIGHT="Copyright (C) 1997-2017 MBSE Development Team, All Rights Reserved"
SHORTRIGHT="Copyright (C) 1997-2017 MBSE DevTm" SHORTRIGHT="Copyright (C) 1997-2017 MBSE DevTm"

View File

@ -551,6 +551,7 @@ int GetRoute(char *ftn, fidoaddr *res)
/* /*
* This is default routing for hosts: * This is default routing for hosts:
* 1. Out of zone and region mail goes to the myzone:myregion/0 * 1. Out of zone and region mail goes to the myzone:myregion/0
* 1a. If we are the RC, mail goes to the myzone:myzone/0
* 2. Out of net mail goes to host myzone:destnet/0 * 2. Out of net mail goes to host myzone:destnet/0
* 3. Nodes without hub are my downlinks, no route. * 3. Nodes without hub are my downlinks, no route.
* 4. The rest goes to the hubs. * 4. The rest goes to the hubs.
@ -561,6 +562,10 @@ int GetRoute(char *ftn, fidoaddr *res)
if (((myregion != dnlent->region) && (!(dnlent->pflag & NL_DUMMY))) || (CFG.aka[me_host].zone != dest->zone)) { if (((myregion != dnlent->region) && (!(dnlent->pflag & NL_DUMMY))) || (CFG.aka[me_host].zone != dest->zone)) {
res->zone = CFG.aka[me_host].zone; res->zone = CFG.aka[me_host].zone;
res->net = myregion; res->net = myregion;
for (i = 0; i < 40; i++) {
if (CFG.akavalid[i] && (CFG.aka[i].zone == res->zone) && (CFG.aka[i].net == myregion) && (CFG.aka[i].node == 0))
res->net = res->zone;
}
Syslog('+', "R: %s => Region %s", ascfnode(dest, 0x0f), aka2str(*res)); Syslog('+', "R: %s => Region %s", ascfnode(dest, 0x0f), aka2str(*res));
free(dnlent); free(dnlent);
if (bnlent->addr.domain) if (bnlent->addr.domain)