Tue Jan 4 11:02:12 EST 2005 rsc
My problem with this the last time was that it did ndbipinfo
itself, which is always going to cause problems. What if cs
is running on a different machine and you don't even have
access to the network databases it is using? I realize this
is uncommon but Dave did work hard to make remote network
stacks work.
It turns out that /net/cs already does what you want,
almost. It has a magic query
!ipinfo sys=you smtp
which will return
smtp=your.smtp.server
The only problem is what to say as sys=you. Really you
want the IP address that cs is using. So I changed cs
to use ip=its.ip.address when you omit the attr=val.
So now
!ipinfo smtp
will return
smtp=your.smtp.server
which is what you're looking for. You'll need to look
at the network address being dialed for any net prefixes.
That is, if the address being dialed is /net.alt/tcp!$auth!smtp
then you need to ask /net.alt/cs not /net/cs.
If you change the patch to use this mechanism to figure out
how to translate $smtp then I'll gladly apply it.
Russ
|