9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: G. David Butler gdb@dbSystems.com
Subject: multiple ethernet interfaces, naming
Date: Thu, 10 Jul 1997 00:17:53 -0500	[thread overview]
Message-ID: <19970710051753.dFfx1issufuIp4iR2BjbFFF-zUg9m7UlyshY8bmrlLE@z> (raw)

I hate replying to my own messages...

Multiple ethernet interfaces are now working.

>From: "G. David Butler" <gdb@dbSystems.com>
>Subject: re: multiple ethernet interfaces, naming
>
>>From: presotto@plan9.bell-labs.com
>>Date: Mon, 7 Jul 1997 10:53:20 -0400
>>Subject: re: multiple ethernet interfaces, naming
>>
>We?  Our source says local is *always* the address of the first
>interface.  I assume you now use cp->src in iplocalfill()?

This was needed.

>>Arpd doesn't matter since it is listening to a specific ethernet.
>>We actually gave up and moved it into the stack.  It made the
>>booting checken/egg stuff a lot easier.
>
>Whoa!  That is a faily big change.  Isn't there another way to fix
>arpd's problems?  (See below)

I had to take another tact with arpd, but I didn't have to put it
in the stack.

>>However, I decided that the udp connection oriented stuff was
>>too much of a pain for things like bootp and added a 'headers'

[snip]

>>That way, we can reply from the same address the message was sent to.
>
>I see that code.  I also see the code in ipconfig that adds a secondary
>address by pushing internet again.  So the headers allow you to
>handle secondary addresses correctly, since c->src would be the first
>address on an interface.  Of course, it would help if arpd worked
>correctly. (See below)

The secondary code is to handle multiple interfaces, not aliases;
even though it could do that.

>So far the changes I'm planning look like:
>
>    Change devip.c and make iplocalfill use c->src and deal with the
>    consequences (i.e. the problems that crop up).

Needed.  There were no consequences.

>    Change ipconfig to use "look internet" to see if the interface has
>    ever been configured instead of looking for a local address on the
>    ip stack.

Boy was that off base!  "look internet" doesn't help much on a chan
that you are trying to create.  Used #P/ipifc instead.

>    Work on arpd (a lot) to use #P/ipifc data to do the right things.

I didn't do this all the way yet.  Right now I use the digits at the
end of ether* to target the interface and ip number.  Works OK if there
is only one ip per interface.

>Can anyone think of any other problems?

How about the big one?  The kernel only will pass arp requests to one
arpd and an arpd will only sit on one interface.  Fixed that.

>David Butler
>gdb@dbSystems.com

dito.




             reply	other threads:[~1997-07-10  5:17 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-07-10  5:17 G.David [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-07-08 19:03 forsyth
1997-07-08 14:15 Lucio
1997-07-08 13:59 G.David
1997-07-07 15:14 jmk
1997-07-07 14:53 presotto
1997-07-07 13:03 G.David
1997-07-03 23:40 Rich
1997-07-03 23:05 beto
1997-07-03 20:32 presotto
1997-07-03 17:39 David
1997-07-03 16:32 G.David
1997-07-03 14:19 presotto
1997-07-03 13:34 G.David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19970710051753.dFfx1issufuIp4iR2BjbFFF-zUg9m7UlyshY8bmrlLE@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).