PAM Programming Manual
Link-Level Interfaces
PAM Programming Manual—142482
3-26
Formatting an SDU Header (Token Ring)
mac^frame (STRING .EXT)
For LLC1 frames, this required input points to an array of bytes that are formatted
by mac^frame structure.
mux^id (INT(32))
For LLC2 type aggregates, this input indicates the mux^id of the session. The
results are unpredictable if a file-system application sends these SDU types.
The SDU type ZLATR^VAL^SDUTYPE^LLC2 is not supported for file-system
applications. The results are unpredictable if a file-system application attempts to
use LLC2 aggregate types.
SDU^User^Data^Offset^B (INT .EXT)
Conditional output returns the byte offset from the beginning of the aggregate SDU
buffer where the application should begin placing data associated with an outbound
SDU. If the SDU^User^Data^Size^B parameter (described below) is passed, and is
nonzero, then this parameter must be passed. Otherwise it is not required.
SDU^User^Data^Size^B (INT)
Optional input that declares how many bytes of user data the application wants to
put in the user data portion of the SDU. If no user data is to be added to the SDU,
then this parameter does not need to be included.
The syntax for C programs is
short ZL2TR_FRMT_SDU_HDR_
( char *Ag_SDU_Buff_Ptr
,char *Mac_Frame
,long Mux_Id
,short *SDU_User_Data_Offset_B
,short SDU_User_Data_Size_B)