> After expending all this time and energy, it turns out I was just  
> getting the srv command wrong. And even after typing the command  
> about 1000 times, hoping it would work, it never occurred to me that  
> I should be using the port number. What a dope.

i didn't see a mistake in what you were typing.  this works
for me

        srv il!buda!9fs buda

however, if i do this

        ; 9fs sources
        ; bind -a '#I' /net.alt
        ; bind -a '#l0' /net.alt
        ; mount -a '#s/dns' /net.alt 
        ; /n/sources/plan9/386/bin/cs -f $ndbfile -x /net.alt
        ; echo $ndbfile
        /lib/ndb/local
        ; /n/sources/plan9/386/bin/ndb/cs -f $ndbfile -x /net.alt
        ; srv /net.alt/il!192.168.0.139!9fs budacon
        srv: dial /net.alt/il!192.168.0.139!9fs: connection rejected

i think the problem is that ndb/cs has forgotten how to il.

add this back into cs, and you'll be good to go:

- erik

----

enum
{
        Nilfast,
        Ntcp,
        Nil,
        Nudp,
        Nicmp,
        Nicmpv6,
        Nrudp,
        Ntelco,
};

/*
 *  net doesn't apply to (r)udp, icmp(v6), or telco (for speed)
 */
Network network[] = {
[Ntcp]          { "tcp",        iplookup,       iptrans,        0, 0 },
[Nilfast]       { "il",         iplookup,       iptrans,        0, 1 },
[Nil]           { "il",         iplookup,       iptrans,        0, 0 },
[Nudp]          { "udp",        iplookup,       iptrans,        1, 0 },
[Nicmp]         { "icmp",       iplookup,       iptrans,        1, 0 },
[Nicmpv6]       { "icmpv6",     iplookup,       iptrans,        1, 0 },
[Nrudp]         { "rudp",       iplookup,       iptrans,        1, 0 },
[Ntelco]        { "telco",      telcolookup,    telcotrans,     1, 0 },
                { 0 },
};


Reply via email to