ADC Home > Reference Library > Technical Notes > Legacy Documents > Networking >

Legacy Documentclose button

Important: This document is part of the Legacy section of the ADC Reference Library. This information should not be used for new development.

Current information on this Reference Library topic can be found here:

Token Ring Q&As

CONTENTS

This Technical Note contains a collection of archived Q&As relating to a specific topic--questions sent the Developer Support Center (DSC) along with answers from the DSC engineers. Current Q&A's can be found on the Macintosh Technical Q&A's web site.

[Oct 01 1990]






NetCopy procedure replaces TokenTalk CopyNuBus

Date Written: 9/23/92

Last reviewed: 6/14/93

The TokenTalk Programmer's Guide describes a routine called CopyNuBus. This routine is not in the IPCGlue.o file dated 3/4/92 that I got off a Developer CD. Has this routine been replaced by something else, and if so, what is the calling sequence of the new routine?

The TokenTalk Programmer's Guide hasn't been updated to reflect the fact that the CopyNuBus routine has been replaced by the more robust NetCopy procedure. The prototype for the NetCopy routine is:

short NetCopy(tid_type srcTID,
              void *srcAddress,
              tid_type dstTID,
              void *dstAddress,
              unsigned long bytecount);

Note the addition of the source and the destination TIDs. NetCopy will copy from a source virtual address to a target virtual address and is a safe way to move data across the NuBus. Both the source and destination virtual addresses can be paged out to disk in a VM environment. NetCopy will cause these pages to be brought back into memory before the copy is performed. A result of zero is returned if NetCopy is successful.

This information comes from the A/ROSE Programmer's Guide. You should get a copy of this guide and referring to it regarding A/ROSE programming questions instead of referencing the TokenTalk Programmer's Guide. A/ROSE has been a fast evolving piece of software. Always refer to the latest Developer CD for the latest revision.

Back to top

TokenTalk LLCBadList and LLCTruncated

Date Written: 9/24/91

Last reviewed: 6/14/93

When a list-directed receive is queued to TokenTalk's implementation of Logical Link Control (LLC) with a total data size less than the active frame size, LLCBadList is returned when the receive completes. If a nonlist-directed receive is used, and the buffer size is less than a frame size, LLCTruncated is returned. Why aren't the same error codes (LLCTruncated) returned as the condition is the same?

The LLCBadList error results because of an undocumented limitation imposed on the number of lists allowed in a list-directed receive. It's likely that you've specified a list array with greater than eight elements. When the list is passed to LLCReceive, a check is made on the list array if one is used. If more than eight elements are in the list, the LLCBadList error is returned immediately with no processing of the incoming data.

On the other hand, if a nonlist-directed receive is used, the LLCReceive call is queued into the task list. The present TokenTalk LLC implementation doesn't support partial reads of large data frames, so if it turns out that the buffer size is smaller than the frame size, only the information that fits into the buffer is returned. The remaining information is discarded. The error condition LLCTruncated is returned to indicate that this event occurred.

Back to top

How to get burned-in & locally administered Token Ring addresses

Date Written: 12/11/91

Last reviewed: 12/12/91

How can I read the "burned-in" address from the TokenTalk NB card? How about for the locally administered address?

To access the burned-in address, use the TTGetDefaultParms selector when calling the TTUtil function pointer. On return, the record structure, TRInit, will contain the value of the "burned-in" address in the field NodeAddr. Use the TTGetBootParms selector to obtain the equivalent information from the TokenTalk Prefs file, that information which has been locally set.

Note the following #defines to include in your TTUtil.h header file:

#define  TTGetDefaultParms  10  /* Return default TRInit parameters */
#define  TTGetBootParms  11 /* Return TRInit parameters to use on next boot */

/*
 *  The TTGetDefaultParms and TTGetBootParms returns a pointer to the
 * parameter structure, or zero if no parameters could be returned. The
 * parameter structure returned should be released by the caller by calling
 * DisposPtr when done.

Back to top

TokenRing NB 4/16 Card and "promiscuous" mode support

Date Written: 12/6/91

Last reviewed: 6/14/93

Can the IBM chipset which is on Apple's new TokenRing NB 4/16 Card be programmed to go into "promiscuous" mode? I would like to write a Sniffer application which runs on the new card.

At present, the present design of the IBM mini-card is such that the chipset cannot be programmed to run in promiscuous mode. A request has been submitted to IBM to allow the chipset to be placed into this mode. There is no date as to when such functionality will become available.

Back to top

TokenTalk maximum transmit buffer size

Date Written: 12/19/91

Last reviewed: 6/14/93

In reviewing the 'llcp' resource for the new TokenTalk 4/16 NuBus card, I noticed that the maximum receive frames size has been changed to 0x1170 or 4464 bytes. If this is correct, what is the maximum transmit size (used to be 1509 bytes)?

The change is for real. It was implemented at the request of developers like yourself. The change affects all Apple's TokenTalk products provided that TokenTalk Prep 2.4 is present.

The maximum transmit buffer size depends on the 'llcp' resource in the TokenTalk Prep or (TokenTalk Prefs file if one is available). Within the 'llcp' resource is a buffer size value used to initialize the size of the receive/transmit buffers. For file versions 2.2 and earlier, the factory limit was 1509 bytes. For TokenTalk Prep version 2.4, the buffer size is set to 4464 bytes.

Back to top

Downloadables

Acrobat gif

Acrobat version of this Note (52K)

Download


Back to top


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.