; ; File: 802Equ.a ; ; Contains: xxx put contents here (or delete the whole line) xxx ; ; Written by: xxx put name of writer here (or delete the whole line) xxx ; ; Copyright: © 1989-1991 by Apple Computer, Inc., all rights reserved. ; ; Change History (most recent first): ; ; <1> 10/14/91 JSM first checked in ; <1.1> 9/8/89 jhl Phase 2 AppleTalk with final mods and VM rolled in. ; <1.0> 6/14/89 WTO Adding AppleTalk 2.0 for first time. ; ; ;EASE$$$ READ ONLY COPY of file “802Equ.a” ; 1.1 jhl 09/08/1989 Phase 2 AppleTalk with final mods and VM rolled in. ; 1.0 WTO 06/14/1989 Adding AppleTalk 2.0 for first time. ; END EASE MODIFICATION HISTORY ;-----------=-----------=-------------------------------=--------------------------------------- ; 802Equ.a - Equates for IEEE network standards ; ; Kerry E. Lynn ; Feb 1989 ; ; Copyright (C) 1989 by: ; ; Apple Computer, Inc. ; 20525 Mariani Ave. ; Cupertino, CA 95014 ; ; All Rights Reserved. ;-----------=-----------=-------------------------------=--------------------------------------- ; 24-bit quantities, left justified AppleCode EQU $08000700 ; Apple's vendor code for 802.2 Individual addr MultiCode EQU $09000700 ; Apple's vendor code for 802.2 Group addr ; Size of a MAC addr MACAddrSz EQU 6 ; max size (in bytes) for data link addr MaxMCastSz EQU MACAddrSz ; max size (in bytes) for multicast addr ;--------------------------------------- ; 802.3 MAC packet header ;--------------------------------------- MDstAddr EQU 0 ; Offset to destination address MSrcAddr EQU MDstAddr+MACAddrSz ; Offset to source address MLength EQU MSrcAddr+MACAddrSz ; Offset to LLC length MHdrSize EQU MLength+2 ; 802.3 MAC header size ;--------------------------------------- ; 802.2 LLC (Type 1) packet header ;--------------------------------------- LDSAP EQU 0 ; Offset to destination Service Access Point (SAP) IGBIT EQU 0 ; I/G = 0 if Individual DSAP, = 1 if Group DSAP LSSAP EQU LDSAP+1 ; Offset to source SAP CRBIT EQU 0 ; C/R = 0 if Command, = 1 if Response LCtrl EQU LSSAP+1 ; Offset to LLC CONTROL field (see below) LHdrSize EQU LCtrl+1 LInfo EQU LHdrSize ; Offset to LLC Information GlobalSAP EQU $FF NullSAP EQU 0 ;--------------------------------------- ; CONTROL field bits for 802.2 Type 1 LLC Protocol Data Units (PDUs) ;--------------------------------------- UI EQU %00000011 ; value for "Unnumbered Information" (P/F bit must be 0) XID EQU %10101111 ; mask for "Exchange Identification" (P/F bit may be 0 or 1) TEST EQU %11100011 ; mask for "Test" (P/F bit may be 0 or 1) PFBIT EQU 4 ; P/F = 0 if Poll (command), = 1 if Final (response) ;--------------------------------------- ; XID information field ;--------------------------------------- XIDformat EQU %10000001 ; indicates IEEE basic format XIDinfo1 EQU %00000001 ; indicates Type 1 AND Class I LLC XIDinfo2 EQU %00000000 ; receive window size = N/A XIDinfoSz EQU 3 ; number of bytes in an XID response ;--------------------------------------- ; Sub-Network Access Protocol (SNAP) packet header ;--------------------------------------- SType EQU 0 ; 5-byte protocol discriminator SHdrSize EQU SType+5