PAM Programming Manual

Link-Level Interfaces
PAM Programming Manual142482
3-15
Getting an SDU (Ethernet)
The syntax for this primitive is
The parameters for this primitive are defined as follows:
Aggr^SDU^Buff^ptr (STRING .EXT)
Required input used to reference the buffer used for the inbound aggregate SDU.
L2S^Type (INT)
Required input L2S^Type is used to determine how to interpret the SDU header and
DSAP of the inbound SDU. Currently defined values for this parameter are
ZPAM^Val^Port^Type^Enet
ZPAM^Val^Port^Type^LLC1
For backward compatibility with TLAM applications, these literals have the same
value as ZLAM^Val^Port^Type^Enet and ZLAM^Val^Port^Type^LLC1.
L2S^SDU^Type (INT .EXT)
This value is passed back to the application as an optional output parameter. It is
used to return the type of PDU that this SDU represents. The values for this
parameter are:
ZL2S^Val^SDUType^UI
ZL2S^Val^SDUType^Test
ZL2S^Val^SDUType^XID
Rsp^Flag (INT .EXT)
Optional output that designates whether this PDU is a command (false) or a
response (true).
P^F^Flag (INT .EXT)
Optional output that conveys the setting of the poll/final bit of the inbound PDU. If
the PDU is a command, the poll (P) bit is set to solicit a response from the addressed
peer. If the PDU is a response, the final (F) bit is set to indicate that it is a response
to a previous solicitation (poll).
INT PROC ZL2S^Get^SDU^
( Aggr^SDU^Buff^ptr,
,L2S^Type
,L2S^SDU^Type
,P^F^Flag
,Rsp^Flag
,Foreign^Addr^Offset^B
,User^Data^Offset^B
,User^Data^Size^B
,Service^Class ) EXTENSIBLE;