PAM Programming Manual

Link-Level Interfaces
PAM Programming Manual142482
3-12
Formatting an SDU Header (Ethernet)
Rsp^Flag (INT)
An optional input that designates whether this PDU is a command (false) or a
response (true). The default value is false (command).
P^F^Flag (INT)
Optional input that allows applications to set or reset the Poll (P) bit in command
PDUs to solicit a response from the addressed peer or the Final (F) bit in response
PDUs to indicate a response to a solicitation (poll). The default value is false (not
set).
Foreign^Addr^ptr (STRING .EXT)
Required input that references the buffer holding the address (DLSAP) of the peer
entity to which this particular SDU is to be sent.
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.
Service^Class (INT)
PAM does not support Service^Class. PAM ignores this field.
The syntax for C programs is
short ZL2S_FRMT_SDU_HDR_
( char *Ag_SDU_Buff_Ptr
,short L2S_Type
,short L2S_SDU_Type
,short P_F_Flag
,short Resp_Flag
,char *Foreign_Adr_Ptr
,short *SDU_User_Data_Offset_B
,short SDU_User_Data_Size_B
,short Service_Class)