PAM Programming Manual
Link-Level Interfaces
PAM Programming Manual—142482
3-29
Error Codes (Token Ring)
User^Data^Size^B (INT(32) .EXT)
Optional output that returns the size, in bytes, of the user data associated with the
SDU, if any. If there is no user data, a value of zero is returned.
The syntax for C programs is
Error Codes (Token Ring)
All of the primitives described previously return an integer that indicates either a
successful completion or a reason for failure. The possible completion codes are
ZL2TR^Err^Frmt^Ok
Operation was successful.
ZL2TR^Err^Frmt^Inv^Params
One or more of the parameter values passed to the primitive were not in the valid
set. Correct the invalid parameter value(s) and repeat the primitive.
ZL2TR^Err^Frmt^Incomp^Params
ZL2TR^Frmt^SDU^Hdr^ or ZL2TR^Frmt^Aggr^SDU^n^SDU^Hdr^ was called
with an SDUType that is not supported for the Port^Type indicated. Correct the
invalid type specification and repeat the primitive.
ZL2TR^Err^Frmt^No^More^Room
ZL2TR^Frmt^SDU^Hdr^ was called to format an SDU within an aggregate SDU
buffer that did not have sufficient space remaining to hold the SDU header and the
associated user data. Create a new aggregate SDU buffer to contain the SDU.
ZL2TR^Err^Frmt^No^More^SDUs
ZL2TR^Get^SDU^ was issued against an aggregate SDU buffer that contains no
more SDUs. Obtain another inbound aggregate SDU buffer, if there is one.
ZL2TR^Err^Frmt^Not^Supp
The Port^Type specified in the L2TR^Type field is not supported.
ZL2TR^Err^Frmt^Intl
The L2TR Formatting Library has an unspecified internal error.
short ZL2TR_GET_SDU_
( char *Ag_SDU_Buff
,short *MAC_Frame_Offset
,long *SNAX_Id
,short *SDU_User_Data_Offset_B
,short *SDU_User_Data_Size_B)