9fans archive / 1997 / 07 / 8 /    prev next

From: beto@ncu... beto@ncu...
Subject: multiple ethernet interfaces, naming
Date: Thu, 3 Jul 97 16:05:13 PDT

I got another question about multiple ethernet interfaces.

If I do announce("/tcp/*/0",....) what would be the content of
/tcp/*/local if I have multiple ethernet/ip interfaces.

Normally It would return something like 

	My.ip.add.ress!nextport

but if we have multiple interfaces what should it return?

Some programs (bootp, arpd, ftpfs) use this trick to discover the
local ip address and to generate unique port numbers.

Maybe 0.0.0.0!nextport until there is a connection and it
knows which ip interface?

Any comments would be appreacited?