[comp.protocols.appletalk] Some difficult questions about EtherTalk hardware...

news@caen.engin.umich.edu (CAEN Netnews) (08/27/89)

I have four tough questions...

If ANYONE can help me with any of these four please respond VIA EMAIL (no
posts, please)  If I get any enlightening help, I'll post to the appropriate
newsgroup.

I am trying to write bootpd for the Macintosh.  I would ideally like to write
it under MacTCP.  The problem is that MacTCP will not pay any attention to
a broadcast response to a bootp request.  The reply must be sent directly to
the bootp requester.  This is, of course, not possible to do because the host
can not answer ARP request for its IP address, since it doesn't know it.

There are two ways to get around this... One, add the hardware address I
received and the IP address I determined to Mac TCP's ARP cache.  There is no
documented way to do this in the docs I have.  Or... bypass Mac TCP when
responding with the bootp reply.  The problem with this is that my program
must run on machines with multiple Ether cards.  So I must know which card
is the one currently selected to run AppleTalk (the 'home' network if running
Apple's Internet Router) since this seems to be the one MacTCP uses.  There
are no calls to do this that I can find.  However, due to a little infomation
I stumbled across, I know that is is stored in byte $E0 of the Mac II/IIx/IIcx
PRAM.  but I know no way to get this extra PRAM.  The calls which read the
PRAM on the Mac 512, etc only read the first $20 bytes.

Here are my questions in short form:

1.	Is there any way to add to MacTCP's ARP cache? and how?

2.	How do I read all $100 bytes of the PRAM?

3.	Or how do I otherwise determine the Ether card currently being used
	for AppleTalk?

4.	Is there any other way to accomplish my goal?

AGAIN, PLEASE, NO POSTINGS (especially to comp.protocols.appletalk)

+----------------------+----------------------------------------------------+
| Steve Bollinger      | Internet: billkatt@caen.engin.umich.edu            |
| 909 Church St, Apt C +------+---------------------------------------------+
| Ann Arbor, Mi 48109         | "My employer doesn't take my opinion any    |
+-----------------------------+  more seriously than you do."               |
| "You remember the IIe, it   +---------------------------------------------+
| was the machine Apple made before they decided people didn't need         |
| machines with big screens, color, or slots."                              |
|                                 - Harry Anderson (from NBC's Night Court) |
+---------------------------------------------------------------------------+