Legacy Documentclose button

Important: The information in this document is obsolete and should not be used for new development.

Previous Book Contents Book Index Next

Inside Macintosh: Networking /
Chapter 10 - Link-Access Protocol (LAP) Manager / LAP Manager Reference
Routines / Attaching and Detaching 802.2 Protocol Handlers


L802Detach

The L802Detach routine detaches from the LAP Manager a protocol handler for a specific IEEE 802.2 protocol type.

DESCRIPTION
You use the L802Detach routine to remove a protocol handler that you have written and attached using the L802Attach routine. You call the L802Detach routine from assembly language by placing the routine selector of 22 in the D0 register and the reference number of the Ethernet, token ring, or FDDI driver in the D2 register that the OpenSlot or OpenDriver function returns. Then, you execute a JSR instruction to an offset 2 bytes past the start of the LAP Manager. The start of the LAP Manager is contained in the global variable LAPMgrPtr ($B18).

Here are the register contents that you supply on entry and the value that is returned
to you.
Registers on entry
D022
D2Reference number of the hardware device driver
A1Pointer to protocol specification
Registers on exit
D0Nonzero if error

You must put a pointer to the protocol-type specification for this protocol handler in the A1 register. You must specify exactly the same protocol type as you specified for the L802Attach routine when you attached the protocol handler.

RESULT CODES
L802Detach routine returns a nonzero value in the D0 register if there is an error.

SEE ALSO
See Inside Macintosh: Devices for information on the OpenSlot and
OpenDriver functions.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996