home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 2 BBS
/
02-BBS.zip
/
hbrt110.zip
/
hubroute.doc
< prev
next >
Wrap
Text File
|
1996-12-02
|
5KB
|
163 lines
HubRoute 1.10 (c) Copyright 1996 Alberto Pasquale
F R E E W A R E
LICENSE
You may copy, distribute and use this program freely, provided you
do not modify the original archive and Copyrights.
DISCLAIMER
You are entitled to use this freeware program "as is". No guarantee
can be given on the performance of the program. The author will not
be liable for any damage or loss related to the use of this program.
OVERVIEW
This program allows to expand the Hub definitions in the Route.Cfg of
Squish (*).
Fidonet (**) coordinators usually have to route netmail through some
Hubs, while Squish only allows wildcards for the entire net (e.g.
2:332/All is possible, 2:332/5?? is not).
Problem:
Let's suppose that I need to send netmail for the Hub 2:332/6?? and
2:332/8?? to the respective HCs.
In route.cfg I will use a couple of defines and routing commands:
DEFINE Hub600 2:332/600 601 602 606 608 609 610 617
DEFINE Hub800 2:332/800 801 804 805 806 807 809 811 812 813 831 836
ROUTE hold Hub600
ROUTE hold Hub800
Now, I have to check the nodelist weekly, in order to maintain the
DEFINEs updated with the real situation of the hubs, or list a lot of
nonexistent nodes, in the hope the new ones will be already covered.
Solution:
Each time a new nodelist is received and compiled, just execute
HubRoute: it will update the Route.Cfg defines for you.
See below for further details.
Command line:
HubRoute <route.cfg> <NODEX>
<route.cfg> is the full path to the Squish route configuration file
<NODEX> is the full path to the Version 7 nodelist "base" name
Operation:
HubRoute looks for DEFINEs named "HUB*" and re-writes them taking the
information from the V7 nodelist (the addresses listed in the DEFINE
line are ignored, except for the first one which must be the HC).
For this purpose HubRoute:
- looks for the first address in <NODEX>.NDX (V7 index) and checks
that it is a HC;
- copies this same address to the new DEFINE line;
- appends to the HC address all the following Hub entries, as per
<NODEX>.DAT (V7 data);
- skips points;
- the expansion is suspended when the length exceeds 200 characters
(excluding the HC address): it may resume in the following DEFINE if
it uses the same HC address.
Example:
To solve the Problem described above, you write in the Route.Cfg:
DEFINE Hub600 2:332/600
DEFINE Hub800 2:332/800
ROUTE hold Hub600
ROUTE hold Hub800
Then you must add a call to HubRoute in the batch file that compiles
the new nodelists:
fastlst
hubroute \bbs\squish\route.cfg \bbs\v7\nodex
The DEFINE HUB* lines will be expanded and always kept up to date.
IMPORTANT:
Since Squish has a limit of 255 characters in the lines of route.cfg
(after define substitution), HubRoute must divide very long hub
definitions into multiple defines.
If you have such a problem, you must write something like:
DEFINE Hub1000P1 2:332/1000
DEFINE Hub1000P2 2:332/1000
DEFINE Hub1000P3 2:332/1000
ROUTE hold Hub1000P1
ROUTE hold Hub1000P2
ROUTE hold Hub1000P3
HubRoute will fill-in the first DEFINE, then, if necessary, it will
continue with the second and third ones etc.
Notes:
- Please note that any complete line of Route.Cfg (after define
substitutions) must not exceed the length of 255 characters.
So you have about 49 characters left for "DEFINE <name> <HCadr>" and
"ROUTE <flavour> <modifier> <HCadr>", including heading space.
- Please don't forget to call HubRoute manually the first time, or the
DEFINEs will remain undefined until hubroute is invoked by the
maintenance batch file :-)
How to contact the author:
Alberto Pasquale
Viale Verdi 106
41100 Modena
Italy
alberto.pasquale@interbusiness.it
2:332/504@fidonet 2:332/524@fidonet
81:439/501@OS2Net 81:439/502@OS2Net
+39-59-246112 V34+ 2 line ring-down
+39-59-246113 X75 2 line ring-down, G3 FAX
Credits
* Squish is a trademark of Lanius Corporation
** Fidonet and Fido are registered marks of Tom Jennings and Fido
Software